Functions are JavaScript Node.js code that execute at a particular domain.
The steps to create Functions are as follows:
serverless.twilio.com
We will need the Function Version SID to include this Function in a Build.
The unique string that we created to identify the Function resource.
^ZH[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Account that created the Function resource.
^AC[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The SID of the Service that the Function resource is associated with.
^ZS[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
The string that you assigned to describe the Function resource. It can be a maximum of 255 characters.
The date and time in GMT when the Function resource was created specified in ISO 8601 format.
The date and time in GMT when the Function resource was last updated specified in ISO 8601 format.
The URLs of nested resources of the Function resource.
POST https://serverless.twilio.com/v1/Services/{ServiceSid}/Functions
The SID of the Service to create the Function resource under.
A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters.
GET https://serverless.twilio.com/v1/Services/{ServiceSid}/Functions/{Sid}
The SID of the Function resource to fetch.
^ZH[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
GET https://serverless.twilio.com/v1/Services/{ServiceSid}/Functions
The SID of the Service to read the Function resources from.
How many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Maximum: 1000
The page token. This is provided by the API.
POST https://serverless.twilio.com/v1/Services/{ServiceSid}/Functions/{Sid}
A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters.
DELETE https://serverless.twilio.com/v1/Services/{ServiceSid}/Functions/{Sid}
The SID of the Function resource to delete.
^ZH[0-9a-fA-F]{32}$
Min length: 34
Max length: 34