Services are containers for your environments. You may only need one Service with many environments. When you begin working on a new application, you will likely want to create a new Service.
The unique name of your service forms the first part of your Serverless domain and cannot be updated.
sid
type: SID<ZS>The unique string that we created to identify the Service resource.
^ZS[0-9a-fA-F]{32}$
34
34
account_sid
type: SID<AC>The SID of the Account that created the Service resource.
^AC[0-9a-fA-F]{32}$
34
34
friendly_name
type: stringThe string that you assigned to describe the Service resource.
unique_name
type: stringA user-defined string that uniquely identifies the Service resource. It can be used in place of the Service resource's sid
in the URL to address the Service resource.
include_credentials
type: booleanWhether to inject Account credentials into a function invocation context.
ui_editable
type: booleanWhether the Service resource's properties and subresources can be edited via the UI.
domain_base
type: stringThe base domain name for this Service, which is a combination of the unique name and a randomly generated string.
date_created
type: string<date-time>The date and time in GMT when the Service resource was created specified in ISO 8601 format.
date_updated
type: string<date-time>The date and time in GMT when the Service resource was last updated specified in ISO 8601 format.
POST https://serverless.twilio.com/v1/Services
UniqueName
type: stringRequiredA user-defined string that uniquely identifies the Service resource. It can be used as an alternative to the sid
in the URL path to address the Service resource. This value must be 50 characters or less in length and be unique.
FriendlyName
type: stringRequiredA descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters.
IncludeCredentials
type: booleanWhether to inject Account credentials into a function invocation context. The default value is true
.
UiEditable
type: booleanWhether the Service's properties and subresources can be edited via the UI. The default value is false
.
GET https://serverless.twilio.com/v1/Services/{Sid}
GET https://serverless.twilio.com/v1/Services
PageSize
type: integerHow many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Page
type: integerThe page index. This value is simply for client state.
0
POST https://serverless.twilio.com/v1/Services/{Sid}
IncludeCredentials
type: booleanWhether to inject Account credentials into a function invocation context.
FriendlyName
type: stringA descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters.
UiEditable
type: booleanWhether the Service resource's properties and subresources can be edited via the UI. The default value is false
.
DELETE https://serverless.twilio.com/v1/Services/{Sid}