Create service

POST /v2/Services

TODO: Resource-level docs

Body

  • FriendlyName string Required

Responses

  • 201

    Created

    Hide response attributes Show response attributes object
    • account_sid string | null

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • consumption_report_interval integer | null
    • date_created string(date-time) | null
    • date_updated string(date-time) | null
    • default_channel_creator_role_sid string | null

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^RL[0-9a-fA-F]{32}$.

    • default_channel_role_sid string | null

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^RL[0-9a-fA-F]{32}$.

    • default_service_role_sid string | null

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^RL[0-9a-fA-F]{32}$.

    • friendly_name string | null
    • limits
    • media
    • notifications
    • post_webhook_retry_count integer | null
    • post_webhook_url string | null
    • pre_webhook_retry_count integer | null
    • pre_webhook_url string | null
    • reachability_enabled boolean | null
    • read_status_enabled boolean | null
    • sid string | null

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^IS[0-9a-fA-F]{32}$.

    • typing_indicator_timeout integer | null
    • url string(uri) | null
    • webhook_filters array[string] | null
    • webhook_method string | null
POST /v2/Services
curl \
 -X POST https://ip-messaging.twilio.com/v2/Services \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'FriendlyName=string'
Request example
{
  "FriendlyName": "string"
}
Request examples
{
  "FriendlyName": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "consumption_report_interval": 42,
  "date_created": "2023-05-04T09:42:00+00:00",
  "date_updated": "2023-05-04T09:42:00+00:00",
  "default_channel_creator_role_sid": "string",
  "default_channel_role_sid": "string",
  "default_service_role_sid": "string",
  "friendly_name": "string",
  "links": {},
  "post_webhook_retry_count": 42,
  "post_webhook_url": "string",
  "pre_webhook_retry_count": 42,
  "pre_webhook_url": "string",
  "reachability_enabled": true,
  "read_status_enabled": true,
  "sid": "string",
  "typing_indicator_timeout": 42,
  "url": "https://example.com",
  "webhook_filters": [
    "string"
  ],
  "webhook_method": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "consumption_report_interval": 42,
  "date_created": "2025-05-04T09:42:00Z",
  "date_updated": "2025-05-04T09:42:00Z",
  "default_channel_creator_role_sid": "string",
  "default_channel_role_sid": "string",
  "default_service_role_sid": "string",
  "friendly_name": "string",
  "links": {},
  "post_webhook_retry_count": 42,
  "post_webhook_url": "string",
  "pre_webhook_retry_count": 42,
  "pre_webhook_url": "string",
  "reachability_enabled": true,
  "read_status_enabled": true,
  "sid": "string",
  "typing_indicator_timeout": 42,
  "url": "https://example.com",
  "webhook_filters": [
    "string"
  ],
  "webhook_method": "string"
}