Twilio - Api
1.29.1

Base URL
https://api.twilio.com


⚠️ This is an unofficial public Twilio REST API documentation generated from an OpenAPI contract.

The source file was taken from https://github.com/twilio/twilio-oai/blob/main/spec/json/twilio_api_v2010.json as a demonstration of the Bump.sh product.

This is the public Twilio REST API.

This is version 1.29.1 of this API documentation. Last update on May 24, 2022.

This API is provided under license Apache 2.0.

Authentication

Account sid auth token (http)

Basic auth tokens are constructed with the Basic keyword, followed by a space, followed by a base64-encoded string of your username:password (separated by a : colon).

Example: send a Authorization: Basic aGVsbG86aGVsbG8= HTTP header with your requests to authenticate with the API.

Create a new Twilio Subaccount from the account making the request

POST /2010-04-01/Accounts.json

Twilio accounts (aka Project) or subaccounts

Create a new Twilio Subaccount from the account making the request

Body

  • A human readable description of the account to create, defaults to SubAccount Created at {YYYY-MM-DD HH:MM meridian}

Responses

  • Created

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

      The authorization token for this account

    • date_created string(date-time-rfc-2822) | null

      The date this account was created

    • date_updated string(date-time-rfc-2822) | null

      The date this account was last updated

    • friendly_name string | null

      A human readable description of this account

    • owner_account_sid string | null

      The unique 34 character id representing the parent of this account

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

    • sid string | null

      A 34 character string that uniquely identifies this resource.

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

    • status string | null

      The status of this account

      Values are active, suspended, or closed.

    • subresource_uris object(uri-map) | null

      Account Instance Subresources

    • type string | null

      The type of this account

      Values are Trial or Full.

    • uri string(uri) | null

      The URI for this resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts.json \
 --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)
{
  "auth_token": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "owner_account_sid": "string",
  "sid": "string",
  "status": "active",
  "subresource_uris": {},
  "type": "Trial",
  "uri": "https://example.com"
}
Response examples (201)
{
  "auth_token": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "owner_account_sid": "string",
  "sid": "string",
  "status": "active",
  "subresource_uris": {},
  "type": "Trial",
  "uri": "https://example.com"
}

List address

GET /2010-04-01/Accounts/{AccountSid}/Addresses.json

An Address instance resource represents your or your customer's physical location within a country. Around the world, some local authorities require the name and address of the user to be on file with Twilio to purchase and own a phone number.

Path parameters

  • AccountSid string Required

    The SID of the Account that is responsible for the Address resource to read.

Query parameters

  • The customer_name of the Address resources to read.

  • The string that identifies the Address resources to read.

  • IsoCountry string(iso-country-code)

    The ISO country code of the Address resources to read.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • addresses array[object]
      Hide addresses attributes Show addresses attributes array[object]
      • account_sid string | null

        The SID of the Account that is responsible for the resource

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

      • city string | null

        The city in which the address is located

      • customer_name string | null

        The name associated with the address

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • emergency_enabled boolean | null

        Whether emergency calling has been enabled on this number

      • friendly_name string | null

        The string that you assigned to describe the resource

      • iso_country string(iso-country-code) | null

        The ISO country code of the address

      • postal_code string | null

        The postal code of the address

      • region string | null

        The state or region of the address

      • sid string | null

        The unique string that identifies the resource

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

      • street string | null

        The number and street address of the address

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

      • validated boolean | null

        Whether the address has been validated to comply with local regulation

      • verified boolean | null

        Whether the address has been verified to comply with regulation

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Addresses.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Addresses.json \
 --user "username:password"
Response examples (200)
{
  "addresses": [
    {
      "account_sid": "string",
      "city": "string",
      "customer_name": "string",
      "date_created": "string",
      "date_updated": "string",
      "emergency_enabled": true,
      "friendly_name": "string",
      "iso_country": "string",
      "postal_code": "string",
      "region": "string",
      "sid": "string",
      "street": "string",
      "uri": "https://example.com",
      "validated": true,
      "verified": true
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "addresses": [
    {
      "account_sid": "string",
      "city": "string",
      "customer_name": "string",
      "date_created": "string",
      "date_updated": "string",
      "emergency_enabled": true,
      "friendly_name": "string",
      "iso_country": "string",
      "postal_code": "string",
      "region": "string",
      "sid": "string",
      "street": "string",
      "uri": "https://example.com",
      "validated": true,
      "verified": true
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Create address

POST /2010-04-01/Accounts/{AccountSid}/Addresses.json

An Address instance resource represents your or your customer's physical location within a country. Around the world, some local authorities require the name and address of the user to be on file with Twilio to purchase and own a phone number.

Path parameters

  • AccountSid string Required

    The SID of the Account that will be responsible for the new Address resource.

Body

  • Whether we should automatically correct the address. Can be: true or false and the default is true. If empty or true, we will correct the address you provide if necessary. If false, we won't alter the address you provide.

  • City string Required

    The city of the new address.

  • CustomerName string Required

    The name to associate with the new address.

  • Whether to enable emergency calling on the new address. Can be: true or false.

  • A descriptive string that you create to describe the new address. It can be up to 64 characters long.

  • IsoCountry string(iso-country-code) Required

    The ISO country code of the new address.

  • PostalCode string Required

    The postal code of the new address.

  • Region string Required

    The state or region of the new address.

  • Street string Required

    The number and street address of the new address.

Responses

  • Created

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

      The SID of the Account that is responsible for the resource

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

    • city string | null

      The city in which the address is located

    • customer_name string | null

      The name associated with the address

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • emergency_enabled boolean | null

      Whether emergency calling has been enabled on this number

    • friendly_name string | null

      The string that you assigned to describe the resource

    • iso_country string(iso-country-code) | null

      The ISO country code of the address

    • postal_code string | null

      The postal code of the address

    • region string | null

      The state or region of the address

    • sid string | null

      The unique string that identifies the resource

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

    • street string | null

      The number and street address of the address

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • validated boolean | null

      Whether the address has been validated to comply with local regulation

    • verified boolean | null

      Whether the address has been verified to comply with regulation

POST /2010-04-01/Accounts/{AccountSid}/Addresses.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Addresses.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'AutoCorrectAddress=true&City=string&CustomerName=string&EmergencyEnabled=true&FriendlyName=string&IsoCountry=string&PostalCode=string&Region=string&Street=string'
Request example
{
  "AutoCorrectAddress": true,
  "City": "string",
  "CustomerName": "string",
  "EmergencyEnabled": true,
  "FriendlyName": "string",
  "IsoCountry": "string",
  "PostalCode": "string",
  "Region": "string",
  "Street": "string"
}
Request examples
{
  "AutoCorrectAddress": true,
  "City": "string",
  "CustomerName": "string",
  "EmergencyEnabled": true,
  "FriendlyName": "string",
  "IsoCountry": "string",
  "PostalCode": "string",
  "Region": "string",
  "Street": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "city": "string",
  "customer_name": "string",
  "date_created": "string",
  "date_updated": "string",
  "emergency_enabled": true,
  "friendly_name": "string",
  "iso_country": "string",
  "postal_code": "string",
  "region": "string",
  "sid": "string",
  "street": "string",
  "uri": "https://example.com",
  "validated": true,
  "verified": true
}
Response examples (201)
{
  "account_sid": "string",
  "city": "string",
  "customer_name": "string",
  "date_created": "string",
  "date_updated": "string",
  "emergency_enabled": true,
  "friendly_name": "string",
  "iso_country": "string",
  "postal_code": "string",
  "region": "string",
  "sid": "string",
  "street": "string",
  "uri": "https://example.com",
  "validated": true,
  "verified": true
}

List dependent phone number

GET /2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json

Phone numbers dependent on an Address resource

Path parameters

  • AccountSid string Required

    The SID of the Account that created the DependentPhoneNumber resources to read.

  • AddressSid string Required

    The SID of the Address resource associated with the phone number.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • Hide dependent_phone_numbers attributes Show dependent_phone_numbers attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • Whether the phone number requires an Address registered with Twilio

        Values are none, any, local, or foreign.

      • api_version string | null

        The API version used to start a new TwiML session

      • Indicate if a phone can receive calls or messages

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • The emergency address configuration to use for emergency calling

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

      • emergency_status string | null

        Whether the phone number is enabled for emergency calling

        Values are Active or Inactive.

      • friendly_name string(phone-number) | null

        The string that you assigned to describe the resource

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • sid string | null

        The unique string that identifies the resource

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

      • sms_application_sid string | null

        The SID of the application that handles SMS messages sent to the phone number

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

      • sms_fallback_method string(http-method) | null

        The HTTP method used with sms_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • sms_fallback_url string(uri) | null

        The URL that we call when an error occurs while retrieving or executing the TwiML

      • sms_method string(http-method) | null

        The HTTP method to use with sms_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • sms_url string(uri) | null

        The URL we call when the phone number receives an incoming SMS message

      • status_callback string(uri) | null

        The URL to send status information to your application

      • status_callback_method string(http-method) | null

        The HTTP method we use to call status_callback

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • trunk_sid string | null

        The SID of the Trunk that handles calls to the phone number

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

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

      • The SID of the application that handles calls to the phone number

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

      • Whether to lookup the caller's name

      • voice_fallback_method string(http-method) | null

        The HTTP method used with voice_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_fallback_url string(uri) | null

        The URL we call when an error occurs in TwiML

      • voice_method null | string(http-method)

        The HTTP method used with the voice_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_url string(uri) | null

        The URL we call when the phone number receives a call

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json \
 --user "username:password"
Response examples (200)
{
  "dependent_phone_numbers": [
    {
      "account_sid": "string",
      "address_requirements": "none",
      "api_version": "string",
      "date_created": "string",
      "date_updated": "string",
      "emergency_address_sid": "string",
      "emergency_status": "Active",
      "friendly_name": "string",
      "phone_number": "string",
      "sid": "string",
      "sms_application_sid": "string",
      "sms_fallback_method": "HEAD",
      "sms_fallback_url": "https://example.com",
      "sms_method": "HEAD",
      "sms_url": "https://example.com",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "trunk_sid": "string",
      "uri": "https://example.com",
      "voice_application_sid": "string",
      "voice_caller_id_lookup": true,
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_url": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "dependent_phone_numbers": [
    {
      "account_sid": "string",
      "address_requirements": "none",
      "api_version": "string",
      "date_created": "string",
      "date_updated": "string",
      "emergency_address_sid": "string",
      "emergency_status": "Active",
      "friendly_name": "string",
      "phone_number": "string",
      "sid": "string",
      "sms_application_sid": "string",
      "sms_fallback_method": "HEAD",
      "sms_fallback_url": "https://example.com",
      "sms_method": "HEAD",
      "sms_url": "https://example.com",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "trunk_sid": "string",
      "uri": "https://example.com",
      "voice_application_sid": "string",
      "voice_caller_id_lookup": true,
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_url": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Fetch address

GET /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json

An Address instance resource represents your or your customer's physical location within a country. Around the world, some local authorities require the name and address of the user to be on file with Twilio to purchase and own a phone number.

Path parameters

  • AccountSid string Required

    The SID of the Account that is responsible for the Address resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Address resource to fetch.

Responses

  • OK

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

      The SID of the Account that is responsible for the resource

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

    • city string | null

      The city in which the address is located

    • customer_name string | null

      The name associated with the address

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • emergency_enabled boolean | null

      Whether emergency calling has been enabled on this number

    • friendly_name string | null

      The string that you assigned to describe the resource

    • iso_country string(iso-country-code) | null

      The ISO country code of the address

    • postal_code string | null

      The postal code of the address

    • region string | null

      The state or region of the address

    • sid string | null

      The unique string that identifies the resource

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

    • street string | null

      The number and street address of the address

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • validated boolean | null

      Whether the address has been validated to comply with local regulation

    • verified boolean | null

      Whether the address has been verified to comply with regulation

GET /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "city": "string",
  "customer_name": "string",
  "date_created": "string",
  "date_updated": "string",
  "emergency_enabled": true,
  "friendly_name": "string",
  "iso_country": "string",
  "postal_code": "string",
  "region": "string",
  "sid": "string",
  "street": "string",
  "uri": "https://example.com",
  "validated": true,
  "verified": true
}
Response examples (200)
{
  "account_sid": "string",
  "city": "string",
  "customer_name": "string",
  "date_created": "string",
  "date_updated": "string",
  "emergency_enabled": true,
  "friendly_name": "string",
  "iso_country": "string",
  "postal_code": "string",
  "region": "string",
  "sid": "string",
  "street": "string",
  "uri": "https://example.com",
  "validated": true,
  "verified": true
}

Update address

POST /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json

An Address instance resource represents your or your customer's physical location within a country. Around the world, some local authorities require the name and address of the user to be on file with Twilio to purchase and own a phone number.

Path parameters

  • AccountSid string Required

    The SID of the Account that is responsible for the Address resource to update.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Address resource to update.

Body

  • Whether we should automatically correct the address. Can be: true or false and the default is true. If empty or true, we will correct the address you provide if necessary. If false, we won't alter the address you provide.

  • City string

    The city of the address.

  • The name to associate with the address.

  • Whether to enable emergency calling on the address. Can be: true or false.

  • A descriptive string that you create to describe the address. It can be up to 64 characters long.

  • The postal code of the address.

  • Region string

    The state or region of the address.

  • Street string

    The number and street address of the address.

Responses

  • OK

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

      The SID of the Account that is responsible for the resource

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

    • city string | null

      The city in which the address is located

    • customer_name string | null

      The name associated with the address

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • emergency_enabled boolean | null

      Whether emergency calling has been enabled on this number

    • friendly_name string | null

      The string that you assigned to describe the resource

    • iso_country string(iso-country-code) | null

      The ISO country code of the address

    • postal_code string | null

      The postal code of the address

    • region null | string

      The state or region of the address

    • sid string | null

      The unique string that identifies the resource

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

    • street string | null

      The number and street address of the address

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • validated boolean | null

      Whether the address has been validated to comply with local regulation

    • verified boolean | null

      Whether the address has been verified to comply with regulation

POST /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'AutoCorrectAddress=true&City=string&CustomerName=string&EmergencyEnabled=true&FriendlyName=string&PostalCode=string&Region=string&Street=string'
Request example
{
  "AutoCorrectAddress": true,
  "City": "string",
  "CustomerName": "string",
  "EmergencyEnabled": true,
  "FriendlyName": "string",
  "PostalCode": "string",
  "Region": "string",
  "Street": "string"
}
Request examples
{
  "AutoCorrectAddress": true,
  "City": "string",
  "CustomerName": "string",
  "EmergencyEnabled": true,
  "FriendlyName": "string",
  "PostalCode": "string",
  "Region": "string",
  "Street": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "city": "string",
  "customer_name": "string",
  "date_created": "string",
  "date_updated": "string",
  "emergency_enabled": true,
  "friendly_name": "string",
  "iso_country": "string",
  "postal_code": "string",
  "region": "string",
  "sid": "string",
  "street": "string",
  "uri": "https://example.com",
  "validated": true,
  "verified": true
}
Response examples (200)
{
  "account_sid": "string",
  "city": "string",
  "customer_name": "string",
  "date_created": "string",
  "date_updated": "string",
  "emergency_enabled": true,
  "friendly_name": "string",
  "iso_country": "string",
  "postal_code": "string",
  "region": null,
  "sid": "string",
  "street": "string",
  "uri": "https://example.com",
  "validated": true,
  "verified": true
}

Delete address

DELETE /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json

An Address instance resource represents your or your customer's physical location within a country. Around the world, some local authorities require the name and address of the user to be on file with Twilio to purchase and own a phone number.

Path parameters

  • AccountSid string Required

    The SID of the Account that is responsible for the Address resource to delete.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Address resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json \
 --user "username:password"

Retrieve a list of applications representing an application within the requesting account

GET /2010-04-01/Accounts/{AccountSid}/Applications.json

An Application instance resource represents an application that you have created with Twilio. An application inside of Twilio is just a set of URLs and other configuration data that tells Twilio how to behave when one of your Twilio numbers receives a call or SMS message.

Retrieve a list of applications representing an application within the requesting account

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Application resources to read.

Query parameters

  • The string that identifies the Application resources to read.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • applications array[object]
      Hide applications attributes Show applications attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • api_version string | null

        The API version used to start a new TwiML session

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • friendly_name string | null

        The string that you assigned to describe the resource

      • message_status_callback string(uri) | null

        The URL to send message status information to your application

      • sid string | null

        The unique string that identifies the resource

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

      • sms_fallback_method string(http-method) | null

        The HTTP method used with sms_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • sms_fallback_url string(uri) | null

        The URL that we call when an error occurs while retrieving or executing the TwiML

      • sms_method string(http-method) | null

        The HTTP method to use with sms_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • sms_status_callback string(uri) | null

        The URL to send status information to your application

      • sms_url string(uri) | null

        The URL we call when the phone number receives an incoming SMS message

      • status_callback string(uri) | null

        The URL to send status information to your application

      • status_callback_method string(http-method) | null

        The HTTP method we use to call status_callback

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

      • Whether to lookup the caller's name

      • voice_fallback_method string(http-method) | null

        The HTTP method used with voice_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_fallback_url string(uri) | null

        The URL we call when a TwiML error occurs

      • voice_method string(http-method) | null

        The HTTP method used with the voice_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_url string(uri) | null

        The URL we call when the phone number receives a call

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Applications.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Applications.json \
 --user "username:password"
Response examples (200)
{
  "applications": [
    {
      "account_sid": "string",
      "api_version": "string",
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "message_status_callback": "https://example.com",
      "sid": "string",
      "sms_fallback_method": "HEAD",
      "sms_fallback_url": "https://example.com",
      "sms_method": "HEAD",
      "sms_status_callback": "https://example.com",
      "sms_url": "https://example.com",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "uri": "https://example.com",
      "voice_caller_id_lookup": true,
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_url": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "applications": [
    {
      "account_sid": "string",
      "api_version": "string",
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "message_status_callback": "https://example.com",
      "sid": "string",
      "sms_fallback_method": "HEAD",
      "sms_fallback_url": "https://example.com",
      "sms_method": "HEAD",
      "sms_status_callback": "https://example.com",
      "sms_url": "https://example.com",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "uri": "https://example.com",
      "voice_caller_id_lookup": true,
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_url": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Create a new application within your account

POST /2010-04-01/Accounts/{AccountSid}/Applications.json

An Application instance resource represents an application that you have created with Twilio. An application inside of Twilio is just a set of URLs and other configuration data that tells Twilio how to behave when one of your Twilio numbers receives a call or SMS message.

Create a new application within your account

Path parameters

Body

  • The API version to use to start a new TwiML session. Can be: 2010-04-01 or 2008-08-01. The default value is the account's default API version.

  • A descriptive string that you create to describe the new application. It can be up to 64 characters long.

  • The URL we should call using a POST method to send message status information to your application.

  • SmsFallbackMethod string(http-method)

    The HTTP method we should use to call sms_fallback_url. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • SmsFallbackUrl string(uri)

    The URL that we should call when an error occurs while retrieving or executing the TwiML from sms_url.

  • SmsMethod string(http-method)

    The HTTP method we should use to call sms_url. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • The URL we should call using a POST method to send status information about SMS messages sent by the application.

  • SmsUrl string(uri)

    The URL we should call when the phone number receives an incoming SMS message.

  • StatusCallback string(uri)

    The URL we should call using the status_callback_method to send status information to your application.

  • StatusCallbackMethod string(http-method)

    The HTTP method we should use to call status_callback. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: true or false.

  • VoiceFallbackMethod string(http-method)

    The HTTP method we should use to call voice_fallback_url. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • VoiceFallbackUrl string(uri)

    The URL that we should call when an error occurs retrieving or executing the TwiML requested by url.

  • VoiceMethod string(http-method)

    The HTTP method we should use to call voice_url. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • VoiceUrl string(uri)

    The URL we should call when the phone number assigned to this application receives a call.

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to start a new TwiML session

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • friendly_name string | null

      The string that you assigned to describe the resource

    • message_status_callback string(uri) | null

      The URL to send message status information to your application

    • sid string | null

      The unique string that identifies the resource

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

    • sms_fallback_method string(http-method) | null

      The HTTP method used with sms_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_fallback_url string(uri) | null

      The URL that we call when an error occurs while retrieving or executing the TwiML

    • sms_method string(http-method) | null

      The HTTP method to use with sms_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_status_callback string(uri) | null

      The URL to send status information to your application

    • sms_url string(uri) | null

      The URL we call when the phone number receives an incoming SMS message

    • status_callback string(uri) | null

      The URL to send status information to your application

    • status_callback_method string(http-method) | null

      The HTTP method we use to call status_callback

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • Whether to lookup the caller's name

    • voice_fallback_method string(http-method) | null

      The HTTP method used with voice_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_fallback_url string(uri) | null

      The URL we call when a TwiML error occurs

    • voice_method string(http-method) | null

      The HTTP method used with the voice_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_url string(uri) | null

      The URL we call when the phone number receives a call

POST /2010-04-01/Accounts/{AccountSid}/Applications.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Applications.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'ApiVersion=string&FriendlyName=string&MessageStatusCallback=https%3A%2F%2Fexample.com&SmsFallbackMethod=HEAD&SmsFallbackUrl=https%3A%2F%2Fexample.com&SmsMethod=HEAD&SmsStatusCallback=https%3A%2F%2Fexample.com&SmsUrl=https%3A%2F%2Fexample.com&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD&VoiceCallerIdLookup=true&VoiceFallbackMethod=HEAD&VoiceFallbackUrl=https%3A%2F%2Fexample.com&VoiceMethod=HEAD&VoiceUrl=https%3A%2F%2Fexample.com'
Request example
{
  "ApiVersion": "string",
  "FriendlyName": "string",
  "MessageStatusCallback": "https://example.com",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsStatusCallback": "https://example.com",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceUrl": "https://example.com"
}
Request examples
{
  "ApiVersion": "string",
  "FriendlyName": "string",
  "MessageStatusCallback": "https://example.com",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsStatusCallback": "https://example.com",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceUrl": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "api_version": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "message_status_callback": "https://example.com",
  "sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_status_callback": "https://example.com",
  "sms_url": "https://example.com",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "uri": "https://example.com",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_url": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "api_version": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "message_status_callback": "https://example.com",
  "sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_status_callback": "https://example.com",
  "sms_url": "https://example.com",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "uri": "https://example.com",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_url": "https://example.com"
}

Fetch the application specified by the provided sid

GET /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json

An Application instance resource represents an application that you have created with Twilio. An application inside of Twilio is just a set of URLs and other configuration data that tells Twilio how to behave when one of your Twilio numbers receives a call or SMS message.

Fetch the application specified by the provided sid

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Application resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Application resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to start a new TwiML session

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • friendly_name string | null

      The string that you assigned to describe the resource

    • message_status_callback string(uri) | null

      The URL to send message status information to your application

    • sid string | null

      The unique string that identifies the resource

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

    • sms_fallback_method string(http-method) | null

      The HTTP method used with sms_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_fallback_url string(uri) | null

      The URL that we call when an error occurs while retrieving or executing the TwiML

    • sms_method string(http-method) | null

      The HTTP method to use with sms_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_status_callback string(uri) | null

      The URL to send status information to your application

    • sms_url string(uri) | null

      The URL we call when the phone number receives an incoming SMS message

    • status_callback string(uri) | null

      The URL to send status information to your application

    • status_callback_method string(http-method) | null

      The HTTP method we use to call status_callback

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • Whether to lookup the caller's name

    • voice_fallback_method string(http-method) | null

      The HTTP method used with voice_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_fallback_url string(uri) | null

      The URL we call when a TwiML error occurs

    • voice_method string(http-method) | null

      The HTTP method used with the voice_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_url string(uri) | null

      The URL we call when the phone number receives a call

GET /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "message_status_callback": "https://example.com",
  "sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_status_callback": "https://example.com",
  "sms_url": "https://example.com",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "uri": "https://example.com",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_url": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "message_status_callback": "https://example.com",
  "sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_status_callback": "https://example.com",
  "sms_url": "https://example.com",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "uri": "https://example.com",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_url": "https://example.com"
}

Updates the application's properties

POST /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json

An Application instance resource represents an application that you have created with Twilio. An application inside of Twilio is just a set of URLs and other configuration data that tells Twilio how to behave when one of your Twilio numbers receives a call or SMS message.

Updates the application's properties

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Application resources to update.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Application resource to update.

Body

  • The API version to use to start a new TwiML session. Can be: 2010-04-01 or 2008-08-01. The default value is your account's default API version.

  • A descriptive string that you create to describe the resource. It can be up to 64 characters long.

  • The URL we should call using a POST method to send message status information to your application.

  • SmsFallbackMethod string(http-method)

    The HTTP method we should use to call sms_fallback_url. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • SmsFallbackUrl string(uri)

    The URL that we should call when an error occurs while retrieving or executing the TwiML from sms_url.

  • SmsMethod string(http-method)

    The HTTP method we should use to call sms_url. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • Same as message_status_callback: The URL we should call using a POST method to send status information about SMS messages sent by the application. Deprecated, included for backwards compatibility.

  • SmsUrl string(uri)

    The URL we should call when the phone number receives an incoming SMS message.

  • StatusCallback string(uri)

    The URL we should call using the status_callback_method to send status information to your application.

  • StatusCallbackMethod string(http-method)

    The HTTP method we should use to call status_callback. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: true or false.

  • VoiceFallbackMethod string(http-method)

    The HTTP method we should use to call voice_fallback_url. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • VoiceFallbackUrl string(uri)

    The URL that we should call when an error occurs retrieving or executing the TwiML requested by url.

  • VoiceMethod string(http-method)

    The HTTP method we should use to call voice_url. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • VoiceUrl string(uri)

    The URL we should call when the phone number assigned to this application receives a call.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to start a new TwiML session

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • friendly_name string | null

      The string that you assigned to describe the resource

    • message_status_callback string(uri) | null

      The URL to send message status information to your application

    • sid string | null

      The unique string that identifies the resource

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

    • sms_fallback_method string(http-method) | null

      The HTTP method used with sms_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_fallback_url string(uri) | null

      The URL that we call when an error occurs while retrieving or executing the TwiML

    • sms_method string(http-method) | null

      The HTTP method to use with sms_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_status_callback string(uri) | null

      The URL to send status information to your application

    • sms_url string(uri) | null

      The URL we call when the phone number receives an incoming SMS message

    • status_callback string(uri) | null

      The URL to send status information to your application

    • status_callback_method string(http-method) | null

      The HTTP method we use to call status_callback

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • Whether to lookup the caller's name

    • voice_fallback_method string(http-method) | null

      The HTTP method used with voice_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_fallback_url string(uri) | null

      The URL we call when a TwiML error occurs

    • voice_method string(http-method) | null

      The HTTP method used with the voice_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_url string(uri) | null

      The URL we call when the phone number receives a call

POST /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'ApiVersion=string&FriendlyName=string&MessageStatusCallback=https%3A%2F%2Fexample.com&SmsFallbackMethod=HEAD&SmsFallbackUrl=https%3A%2F%2Fexample.com&SmsMethod=HEAD&SmsStatusCallback=https%3A%2F%2Fexample.com&SmsUrl=https%3A%2F%2Fexample.com&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD&VoiceCallerIdLookup=true&VoiceFallbackMethod=HEAD&VoiceFallbackUrl=https%3A%2F%2Fexample.com&VoiceMethod=HEAD&VoiceUrl=https%3A%2F%2Fexample.com'
Request example
{
  "ApiVersion": "string",
  "FriendlyName": "string",
  "MessageStatusCallback": "https://example.com",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsStatusCallback": "https://example.com",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceUrl": "https://example.com"
}
Request examples
{
  "ApiVersion": "string",
  "FriendlyName": "string",
  "MessageStatusCallback": "https://example.com",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsStatusCallback": "https://example.com",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceUrl": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "message_status_callback": "https://example.com",
  "sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_status_callback": "https://example.com",
  "sms_url": "https://example.com",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "uri": "https://example.com",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_url": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "message_status_callback": "https://example.com",
  "sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_status_callback": "https://example.com",
  "sms_url": "https://example.com",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "uri": "https://example.com",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_url": "https://example.com"
}

Delete the application by the specified application sid

DELETE /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json

An Application instance resource represents an application that you have created with Twilio. An application inside of Twilio is just a set of URLs and other configuration data that tells Twilio how to behave when one of your Twilio numbers receives a call or SMS message.

Delete the application by the specified application sid

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Application resources to delete.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Application resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json \
 --user "username:password"

Retrieve a list of authorized-connect-apps belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json

Authorized Twilio Connect apps

Retrieve a list of authorized-connect-apps belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the AuthorizedConnectApp resources to read.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

GET /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json \
 --user "username:password"
Response examples (200)
{
  "authorized_connect_apps": [
    {
      "account_sid": "string",
      "connect_app_company_name": "string",
      "connect_app_description": "string",
      "connect_app_friendly_name": "string",
      "connect_app_homepage_url": "https://example.com",
      "connect_app_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "permissions": [
        "get-all"
      ],
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "authorized_connect_apps": [
    {
      "account_sid": "string",
      "connect_app_company_name": "string",
      "connect_app_description": "string",
      "connect_app_friendly_name": "string",
      "connect_app_homepage_url": "https://example.com",
      "connect_app_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "permissions": [
        "get-all"
      ],
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Fetch an instance of an authorized-connect-app

GET /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json

Authorized Twilio Connect apps

Fetch an instance of an authorized-connect-app

Path parameters

  • AccountSid string Required

    The SID of the Account that created the AuthorizedConnectApp resource to fetch.

  • ConnectAppSid string Required

    The SID of the Connect App to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • The company name set for the Connect App

    • A detailed description of the app

    • The name of the Connect App

    • connect_app_homepage_url string(uri) | null

      The public URL for the Connect App

    • connect_app_sid string | null

      The SID that we assigned to the Connect App

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • permissions array[string] | null

      Permissions authorized to the app

      Values are get-all or post-all.

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "connect_app_company_name": "string",
  "connect_app_description": "string",
  "connect_app_friendly_name": "string",
  "connect_app_homepage_url": "https://example.com",
  "connect_app_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "permissions": [
    "get-all"
  ],
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "connect_app_company_name": "string",
  "connect_app_description": "string",
  "connect_app_friendly_name": "string",
  "connect_app_homepage_url": "https://example.com",
  "connect_app_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "permissions": [
    "get-all"
  ],
  "uri": "https://example.com"
}

List available phone number country

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json

Country codes with available phone numbers

Path parameters

  • AccountSid string Required

    The SID of the Account requesting the available phone number Country resources.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json \
 --user "username:password"
Response examples (200)
{
  "countries": [
    {
      "beta": true,
      "country": "string",
      "country_code": "string",
      "subresource_uris": {},
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "countries": [
    {
      "beta": true,
      "country": "string",
      "country_code": "string",
      "subresource_uris": {},
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Fetch available phone number country

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json

Country codes with available phone numbers

Path parameters

  • AccountSid string Required

    The SID of the Account requesting the available phone number Country resource.

  • CountryCode string(iso-country-code) Required

    The ISO-3166-1 country code of the country to fetch available phone number information about.

Responses

  • OK

    Hide response attributes Show response attributes object
    • beta boolean | null

      Whether all phone numbers available in the country are new to the Twilio platform.

    • country string | null

      The name of the country

    • country_code string(iso-country-code) | null

      The ISO-3166-1 country code of the country.

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

    • uri string(uri) | null

      The URI of the Country resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json \
 --user "username:password"
Response examples (200)
{
  "beta": true,
  "country": "string",
  "country_code": "string",
  "subresource_uris": {},
  "uri": "https://example.com"
}
Response examples (200)
{
  "beta": true,
  "country": "string",
  "country_code": "string",
  "subresource_uris": {},
  "uri": "https://example.com"
}

List available phone number local

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json

Available local phone numbers

Path parameters

  • AccountSid string Required

    The SID of the Account requesting the AvailablePhoneNumber resources.

  • CountryCode string(iso-country-code) Required

    The ISO-3166-1 country code of the country from which to read phone numbers.

Query parameters

  • AreaCode integer

    The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.

  • Contains string

    The pattern on which to match phone numbers. Valid characters are *, 0-9, a-z, and A-Z. The * character matches any single digit. For examples, see Example 2 and Example 3. If specified, this value must have at least two characters.

  • SmsEnabled boolean

    Whether the phone numbers can receive text messages. Can be: true or false.

  • MmsEnabled boolean

    Whether the phone numbers can receive MMS messages. Can be: true or false.

  • Whether the phone numbers can receive calls. Can be: true or false.

  • Whether to exclude phone numbers that require an Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a local Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a foreign Address. Can be: true or false and the default is false.

  • Beta boolean

    Whether to read phone numbers that are new to the Twilio platform. Can be: true or false and the default is true.

  • NearNumber string(phone-number)

    Given a phone number, find a geographically close number within distance miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada.

  • Given a latitude/longitude pair lat,long find geographically close numbers within distance miles. Applies to only phone numbers in the US and Canada.

  • Distance integer

    The search radius, in miles, for a near_ query. Can be up to 500 and the default is 25. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada.

  • InRegion string

    Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires in_lata to be set as well. Applies to only phone numbers in the US and Canada.

  • InLata string

    Limit results to a specific local access and transport area (LATA). Given a phone number, search within the same LATA as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number.

  • FaxEnabled boolean

    Whether the phone numbers can receive faxes. Can be: true or false.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • Hide available_phone_numbers attributes Show available_phone_numbers attributes array[object]
      • The type of Address resource the phone number requires

      • beta boolean | null

        Whether the phone number is new to the Twilio platform

      • capabilities object(phone-number-capabilities) | null

        Whether a phone number can receive calls or messages

        Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
      • friendly_name string(phone-number) | null

        A formatted version of the phone number

      • iso_country string(iso-country-code) | null

        The ISO country code of this phone number

      • lata string | null

        The LATA of this phone number

      • latitude string | null

        The latitude of this phone number's location

      • locality string | null

        The locality or city of this phone number's location

      • longitude string | null

        The longitude of this phone number's location

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • postal_code string | null

        The postal or ZIP code of this phone number's location

      • rate_center string | null

        The rate center of this phone number

      • region string | null

        The two-letter state or province abbreviation of this phone number's location

    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json \
 --user "username:password"
Response examples (200)
{
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": "string",
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": "string",
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

List available phone number machine to machine

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json

Available machine-to-machine phone numbers

Path parameters

  • AccountSid string Required

    The SID of the Account requesting the AvailablePhoneNumber resources.

  • CountryCode string(iso-country-code) Required

    The ISO-3166-1 country code of the country from which to read phone numbers.

Query parameters

  • AreaCode integer

    The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.

  • Contains string

    The pattern on which to match phone numbers. Valid characters are *, 0-9, a-z, and A-Z. The * character matches any single digit. For examples, see Example 2 and Example 3. If specified, this value must have at least two characters.

  • SmsEnabled boolean

    Whether the phone numbers can receive text messages. Can be: true or false.

  • MmsEnabled boolean

    Whether the phone numbers can receive MMS messages. Can be: true or false.

  • Whether the phone numbers can receive calls. Can be: true or false.

  • Whether to exclude phone numbers that require an Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a local Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a foreign Address. Can be: true or false and the default is false.

  • Beta boolean

    Whether to read phone numbers that are new to the Twilio platform. Can be: true or false and the default is true.

  • NearNumber string(phone-number)

    Given a phone number, find a geographically close number within distance miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada.

  • Given a latitude/longitude pair lat,long find geographically close numbers within distance miles. Applies to only phone numbers in the US and Canada.

  • Distance integer

    The search radius, in miles, for a near_ query. Can be up to 500 and the default is 25. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada.

  • InRegion string

    Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires in_lata to be set as well. Applies to only phone numbers in the US and Canada.

  • InLata string

    Limit results to a specific local access and transport area (LATA). Given a phone number, search within the same LATA as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number.

  • FaxEnabled boolean

    Whether the phone numbers can receive faxes. Can be: true or false.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • Hide available_phone_numbers attributes Show available_phone_numbers attributes array[object]
      • The type of Address resource the phone number requires

      • beta boolean | null

        Whether the phone number is new to the Twilio platform

      • capabilities object(phone-number-capabilities) | null

        Whether a phone number can receive calls or messages

        Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
      • friendly_name string(phone-number) | null

        A formatted version of the phone number

      • iso_country string(iso-country-code) | null

        The ISO country code of this phone number

      • lata string | null

        The LATA of this phone number

      • latitude string | null

        The latitude of this phone number's location

      • locality string | null

        The locality or city of this phone number's location

      • longitude string | null

        The longitude of this phone number's location

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • postal_code string | null

        The postal or ZIP code of this phone number's location

      • rate_center string | null

        The rate center of this phone number

      • region string | null

        The two-letter state or province abbreviation of this phone number's location

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json \
 --user "username:password"
Response examples (200)
{
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": "string",
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": "string",
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

List available phone number mobile

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json

Available mobile phone numbers

Path parameters

  • AccountSid string Required

    The SID of the Account requesting the AvailablePhoneNumber resources.

  • CountryCode string(iso-country-code) Required

    The ISO-3166-1 country code of the country from which to read phone numbers.

Query parameters

  • AreaCode integer

    The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.

  • Contains string

    The pattern on which to match phone numbers. Valid characters are *, 0-9, a-z, and A-Z. The * character matches any single digit. For examples, see Example 2 and Example 3. If specified, this value must have at least two characters.

  • SmsEnabled boolean

    Whether the phone numbers can receive text messages. Can be: true or false.

  • MmsEnabled boolean

    Whether the phone numbers can receive MMS messages. Can be: true or false.

  • Whether the phone numbers can receive calls. Can be: true or false.

  • Whether to exclude phone numbers that require an Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a local Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a foreign Address. Can be: true or false and the default is false.

  • Beta boolean

    Whether to read phone numbers that are new to the Twilio platform. Can be: true or false and the default is true.

  • NearNumber string(phone-number)

    Given a phone number, find a geographically close number within distance miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada.

  • Given a latitude/longitude pair lat,long find geographically close numbers within distance miles. Applies to only phone numbers in the US and Canada.

  • Distance integer

    The search radius, in miles, for a near_ query. Can be up to 500 and the default is 25. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada.

  • InRegion string

    Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires in_lata to be set as well. Applies to only phone numbers in the US and Canada.

  • InLata string

    Limit results to a specific local access and transport area (LATA). Given a phone number, search within the same LATA as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number.

  • FaxEnabled boolean

    Whether the phone numbers can receive faxes. Can be: true or false.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • Hide available_phone_numbers attributes Show available_phone_numbers attributes array[object]
      • beta boolean | null

        Whether the phone number is new to the Twilio platform

      • capabilities object(phone-number-capabilities) | null

        Whether a phone number can receive calls or messages

        Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
      • lata string | null

        The LATA of this phone number

      • latitude string | null

        The latitude of this phone number's location

      • friendly_name string(phone-number) | null

        A formatted version of the phone number

      • iso_country string(iso-country-code) | null

        The ISO country code of this phone number

      • The type of Address resource the phone number requires

      • locality string | null

        The locality or city of this phone number's location

      • longitude string | null

        The longitude of this phone number's location

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • postal_code string | null

        The postal or ZIP code of this phone number's location

      • rate_center string | null

        The rate center of this phone number

      • region string | null

        The two-letter state or province abbreviation of this phone number's location

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json \
 --user "username:password"
Response examples (200)
{
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": "string",
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "available_phone_numbers": [
    {
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "lata": "string",
      "latitude": "string",
      "friendly_name": "string",
      "iso_country": "string",
      "address_requirements": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Retrieves a collection of Accounts belonging to the account used to make the request

GET /2010-04-01/Accounts.json

Twilio accounts (aka Project) or subaccounts

Retrieves a collection of Accounts belonging to the account used to make the request

Query parameters

  • Only return the Account resources with friendly names that exactly match this name.

  • Status string

    Only return Account resources with the given status. Can be closed, suspended or active.

    Values are active, suspended, or closed.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • accounts array[object]
      Hide accounts attributes Show accounts attributes array[object]
      • auth_token string | null

        The authorization token for this account

      • date_created string(date-time-rfc-2822) | null

        The date this account was created

      • date_updated string(date-time-rfc-2822) | null

        The date this account was last updated

      • friendly_name string | null

        A human readable description of this account

      • owner_account_sid string | null

        The unique 34 character id representing the parent of this account

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

      • sid string | null

        A 34 character string that uniquely identifies this resource.

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

      • status string | null

        The status of this account

        Values are active, suspended, or closed.

      • subresource_uris object(uri-map) | null

        Account Instance Subresources

      • type string | null

        The type of this account

        Values are Trial or Full.

      • uri string(uri) | null

        The URI for this resource, relative to https://api.twilio.com

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts.json \
 --user "username:password"
Response examples (200)
{
  "accounts": [
    {
      "auth_token": "string",
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "owner_account_sid": "string",
      "sid": "string",
      "status": "active",
      "subresource_uris": {},
      "type": "Trial",
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "accounts": [
    {
      "auth_token": "string",
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "owner_account_sid": "string",
      "sid": "string",
      "status": "active",
      "subresource_uris": {},
      "type": "Trial",
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Delete usage trigger

DELETE /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json

Webhooks that notify you of usage thresholds

Path parameters

  • AccountSid string Required

    The SID of the Account that created the UsageTrigger resources to delete.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json \
 --user "username:password"

Fetch the account specified by the provided Account Sid

GET /2010-04-01/Accounts/{Sid}.json

Twilio accounts (aka Project) or subaccounts

Fetch the account specified by the provided Account Sid

Path parameters

  • Sid string Required

    The Account Sid that uniquely identifies the account to fetch

Responses

  • OK

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

      The authorization token for this account

    • date_created string(date-time-rfc-2822) | null

      The date this account was created

    • date_updated string(date-time-rfc-2822) | null

      The date this account was last updated

    • friendly_name string | null

      A human readable description of this account

    • owner_account_sid string | null

      The unique 34 character id representing the parent of this account

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

    • sid string | null

      A 34 character string that uniquely identifies this resource.

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

    • status string | null

      The status of this account

      Values are active, suspended, or closed.

    • subresource_uris object(uri-map) | null

      Account Instance Subresources

    • type string | null

      The type of this account

      Values are Trial or Full.

    • uri string(uri) | null

      The URI for this resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "auth_token": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "owner_account_sid": "string",
  "sid": "string",
  "status": "active",
  "subresource_uris": {},
  "type": "Trial",
  "uri": "https://example.com"
}
Response examples (200)
{
  "auth_token": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "owner_account_sid": "string",
  "sid": "string",
  "status": "active",
  "subresource_uris": {},
  "type": "Trial",
  "uri": "https://example.com"
}

Modify the properties of a given Account

POST /2010-04-01/Accounts/{Sid}.json

Twilio accounts (aka Project) or subaccounts

Modify the properties of a given Account

Path parameters

  • Sid string Required

    The Account Sid that uniquely identifies the account to update

Body

  • Update the human-readable description of this Account

  • Status string

    Alter the status of this account: use closed to irreversibly close this account, suspended to temporarily suspend it, or active to reactivate it.

    Values are active, suspended, or closed.

Responses

  • OK

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

      The authorization token for this account

    • date_created string(date-time-rfc-2822) | null

      The date this account was created

    • date_updated string(date-time-rfc-2822) | null

      The date this account was last updated

    • friendly_name string | null

      A human readable description of this account

    • owner_account_sid string | null

      The unique 34 character id representing the parent of this account

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

    • sid string | null

      A 34 character string that uniquely identifies this resource.

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

    • status string | null

      The status of this account

      Values are active, suspended, or closed.

    • subresource_uris object(uri-map) | null

      Account Instance Subresources

    • type string | null

      The type of this account

      Values are Trial or Full.

    • uri string(uri) | null

      The URI for this resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'FriendlyName=string&Status=active'
Request example
{
  "FriendlyName": "string",
  "Status": "active"
}
Request examples
{
  "FriendlyName": "string",
  "Status": "active"
}
Response examples (200)
{
  "auth_token": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "owner_account_sid": "string",
  "sid": "string",
  "status": "active",
  "subresource_uris": {},
  "type": "Trial",
  "uri": "https://example.com"
}
Response examples (200)
{
  "auth_token": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "owner_account_sid": "string",
  "sid": "string",
  "status": "active",
  "subresource_uris": {},
  "type": "Trial",
  "uri": "https://example.com"
}

List available phone number national

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json

Available national phone numbers

Path parameters

  • AccountSid string Required

    The SID of the Account requesting the AvailablePhoneNumber resources.

  • CountryCode string(iso-country-code) Required

    The ISO-3166-1 country code of the country from which to read phone numbers.

Query parameters

  • AreaCode integer

    The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.

  • Contains string

    The pattern on which to match phone numbers. Valid characters are *, 0-9, a-z, and A-Z. The * character matches any single digit. For examples, see Example 2 and Example 3. If specified, this value must have at least two characters.

  • SmsEnabled boolean

    Whether the phone numbers can receive text messages. Can be: true or false.

  • MmsEnabled boolean

    Whether the phone numbers can receive MMS messages. Can be: true or false.

  • Whether the phone numbers can receive calls. Can be: true or false.

  • Whether to exclude phone numbers that require an Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a local Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a foreign Address. Can be: true or false and the default is false.

  • Beta boolean

    Whether to read phone numbers that are new to the Twilio platform. Can be: true or false and the default is true.

  • NearNumber string(phone-number)

    Given a phone number, find a geographically close number within distance miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada.

  • Given a latitude/longitude pair lat,long find geographically close numbers within distance miles. Applies to only phone numbers in the US and Canada.

  • Distance integer

    The search radius, in miles, for a near_ query. Can be up to 500 and the default is 25. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada.

  • InRegion string

    Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires in_lata to be set as well. Applies to only phone numbers in the US and Canada.

  • InLata string

    Limit results to a specific local access and transport area (LATA). Given a phone number, search within the same LATA as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number.

  • FaxEnabled boolean

    Whether the phone numbers can receive faxes. Can be: true or false.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • Hide available_phone_numbers attributes Show available_phone_numbers attributes array[object]
      • The type of Address resource the phone number requires

      • beta boolean | null

        Whether the phone number is new to the Twilio platform

      • capabilities object(phone-number-capabilities) | null

        Whether a phone number can receive calls or messages

        Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
      • friendly_name string(phone-number) | null

        A formatted version of the phone number

      • iso_country string(iso-country-code) | null

        The ISO country code of this phone number

      • lata string | null

        The LATA of this phone number

      • latitude string | null

        The latitude of this phone number's location

      • locality string | null

        The locality or city of this phone number's location

      • longitude string | null

        The longitude of this phone number's location

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • postal_code string | null

        The postal or ZIP code of this phone number's location

      • rate_center string | null

        The rate center of this phone number

      • region string | null

        The two-letter state or province abbreviation of this phone number's location

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json \
 --user "username:password"
Response examples (200)
{
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": "string",
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": "string",
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

List available phone number shared cost

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json

Available shared cost numbers

Path parameters

  • AccountSid string Required

    The SID of the Account requesting the AvailablePhoneNumber resources.

  • CountryCode string(iso-country-code) Required

    The ISO-3166-1 country code of the country from which to read phone numbers.

Query parameters

  • AreaCode integer

    The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.

  • Contains string

    The pattern on which to match phone numbers. Valid characters are *, 0-9, a-z, and A-Z. The * character matches any single digit. For examples, see Example 2 and Example 3. If specified, this value must have at least two characters.

  • SmsEnabled boolean

    Whether the phone numbers can receive text messages. Can be: true or false.

  • MmsEnabled boolean

    Whether the phone numbers can receive MMS messages. Can be: true or false.

  • Whether the phone numbers can receive calls. Can be: true or false.

  • Whether to exclude phone numbers that require an Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a local Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a foreign Address. Can be: true or false and the default is false.

  • Beta boolean

    Whether to read phone numbers that are new to the Twilio platform. Can be: true or false and the default is true.

  • NearNumber string(phone-number)

    Given a phone number, find a geographically close number within distance miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada.

  • Given a latitude/longitude pair lat,long find geographically close numbers within distance miles. Applies to only phone numbers in the US and Canada.

  • Distance integer

    The search radius, in miles, for a near_ query. Can be up to 500 and the default is 25. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada.

  • InRegion string

    Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires in_lata to be set as well. Applies to only phone numbers in the US and Canada.

  • InLata string

    Limit results to a specific local access and transport area (LATA). Given a phone number, search within the same LATA as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number.

  • FaxEnabled boolean

    Whether the phone numbers can receive faxes. Can be: true or false.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • Hide available_phone_numbers attributes Show available_phone_numbers attributes array[object]
      • The type of Address resource the phone number requires

      • beta boolean | null

        Whether the phone number is new to the Twilio platform

      • capabilities object(phone-number-capabilities) | null

        Whether a phone number can receive calls or messages

        Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
      • friendly_name null | string(phone-number)

        A formatted version of the phone number

      • iso_country string(iso-country-code) | null

        The ISO country code of this phone number

      • lata string | null

        The LATA of this phone number

      • latitude string | null

        The latitude of this phone number's location

      • locality null | string

        The locality or city of this phone number's location

      • longitude string | null

        The longitude of this phone number's location

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • postal_code string | null

        The postal or ZIP code of this phone number's location

      • rate_center string | null

        The rate center of this phone number

      • region string | null

        The two-letter state or province abbreviation of this phone number's location

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json \
 --user "username:password"
Response examples (200)
{
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": "string",
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": null,
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": null,
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

List available phone number toll free

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json

Available toll free phone numbers

Path parameters

  • AccountSid string Required

    The SID of the Account requesting the AvailablePhoneNumber resources.

  • CountryCode string(iso-country-code) Required

    The ISO-3166-1 country code of the country from which to read phone numbers.

Query parameters

  • AreaCode integer

    The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.

  • Contains string

    The pattern on which to match phone numbers. Valid characters are *, 0-9, a-z, and A-Z. The * character matches any single digit. For examples, see Example 2 and Example 3. If specified, this value must have at least two characters.

  • SmsEnabled boolean

    Whether the phone numbers can receive text messages. Can be: true or false.

  • MmsEnabled boolean

    Whether the phone numbers can receive MMS messages. Can be: true or false.

  • Whether the phone numbers can receive calls. Can be: true or false.

  • Whether to exclude phone numbers that require an Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a local Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a foreign Address. Can be: true or false and the default is false.

  • Beta boolean

    Whether to read phone numbers that are new to the Twilio platform. Can be: true or false and the default is true.

  • NearNumber string(phone-number)

    Given a phone number, find a geographically close number within distance miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada.

  • Given a latitude/longitude pair lat,long find geographically close numbers within distance miles. Applies to only phone numbers in the US and Canada.

  • Distance integer

    The search radius, in miles, for a near_ query. Can be up to 500 and the default is 25. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada.

  • InRegion string

    Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires in_lata to be set as well. Applies to only phone numbers in the US and Canada.

  • InLata string

    Limit results to a specific local access and transport area (LATA). Given a phone number, search within the same LATA as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number.

  • FaxEnabled boolean

    Whether the phone numbers can receive faxes. Can be: true or false.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • Hide available_phone_numbers attributes Show available_phone_numbers attributes array[object]
      • The type of Address resource the phone number requires

      • beta boolean | null

        Whether the phone number is new to the Twilio platform

      • capabilities object(phone-number-capabilities) | null

        Whether a phone number can receive calls or messages

        Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
      • friendly_name string(phone-number) | null

        A formatted version of the phone number

      • iso_country string(iso-country-code) | null

        The ISO country code of this phone number

      • lata string | null

        The LATA of this phone number

      • latitude string | null

        The latitude of this phone number's location

      • locality string | null

        The locality or city of this phone number's location

      • longitude string | null

        The longitude of this phone number's location

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • postal_code string | null

        The postal or ZIP code of this phone number's location

      • rate_center string | null

        The rate center of this phone number

      • region string | null

        The two-letter state or province abbreviation of this phone number's location

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json \
 --user "username:password"
Response examples (200)
{
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": "string",
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": "string",
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

List available phone number voip

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json

Available VoIP phone numbers

Path parameters

  • AccountSid string Required

    The SID of the Account requesting the AvailablePhoneNumber resources.

  • CountryCode string(iso-country-code) Required

    The ISO-3166-1 country code of the country from which to read phone numbers.

Query parameters

  • AreaCode integer

    The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada.

  • Whether the phone numbers can receive calls. Can be: true or false.

  • Contains string

    The pattern on which to match phone numbers. Valid characters are *, 0-9, a-z, and A-Z. The * character matches any single digit. For examples, see Example 2 and Example 3. If specified, this value must have at least two characters.

  • SmsEnabled boolean

    Whether the phone numbers can receive text messages. Can be: true or false.

  • MmsEnabled boolean

    Whether the phone numbers can receive MMS messages. Can be: true or false.

  • Whether to exclude phone numbers that require an Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a local Address. Can be: true or false and the default is false.

  • Whether to exclude phone numbers that require a foreign Address. Can be: true or false and the default is false.

  • Beta boolean

    Whether to read phone numbers that are new to the Twilio platform. Can be: true or false and the default is true.

  • NearNumber string(phone-number)

    Given a phone number, find a geographically close number within distance miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada.

  • Given a latitude/longitude pair lat,long find geographically close numbers within distance miles. Applies to only phone numbers in the US and Canada.

  • Distance integer

    The search radius, in miles, for a near_ query. Can be up to 500 and the default is 25. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada.

  • InRegion string

    Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires in_lata to be set as well. Applies to only phone numbers in the US and Canada.

  • InLata string

    Limit results to a specific local access and transport area (LATA). Given a phone number, search within the same LATA as that number. Applies to only phone numbers in the US and Canada.

  • Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number.

  • FaxEnabled boolean

    Whether the phone numbers can receive faxes. Can be: true or false.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • Hide available_phone_numbers attributes Show available_phone_numbers attributes array[object]
      • The type of Address resource the phone number requires

      • beta boolean | null

        Whether the phone number is new to the Twilio platform

      • capabilities object(phone-number-capabilities) | null

        Whether a phone number can receive calls or messages

        Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
      • friendly_name string(phone-number) | null

        A formatted version of the phone number

      • iso_country string(iso-country-code) | null

        The ISO country code of this phone number

      • lata string | null

        The LATA of this phone number

      • latitude string | null

        The latitude of this phone number's location

      • locality string | null

        The locality or city of this phone number's location

      • longitude string | null

        The longitude of this phone number's location

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • postal_code string | null

        The postal or ZIP code of this phone number's location

      • rate_center string | null

        The rate center of this phone number

      • region string | null

        The two-letter state or province abbreviation of this phone number's location

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json \
 --user "username:password"
Response examples (200)
{
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": "string",
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "available_phone_numbers": [
    {
      "address_requirements": "string",
      "beta": true,
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "friendly_name": "string",
      "iso_country": "string",
      "lata": "string",
      "latitude": "string",
      "locality": "string",
      "longitude": "string",
      "phone_number": "string",
      "postal_code": "string",
      "rate_center": "string",
      "region": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Fetch the balance for an Account based on Account Sid

GET /2010-04-01/Accounts/{AccountSid}/Balance.json

Account balance

Fetch the balance for an Account based on Account Sid. Balance changes may not be reflected immediately. Child accounts do not contain balance information

Path parameters

  • AccountSid string Required

    The unique SID identifier of the Account.

Responses

  • OK

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

      Account Sid.

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

    • balance string | null

      Account balance

    • currency string | null

      Currency units

GET /2010-04-01/Accounts/{AccountSid}/Balance.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Balance.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "balance": "string",
  "currency": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "balance": "string",
  "currency": "string"
}

Retrieves a collection of calls made to and from your account

GET /2010-04-01/Accounts/{AccountSid}/Calls.json

A Call is an object that represents a connection between a telephone and Twilio.

Retrieves a collection of calls made to and from your account

Path parameters

Query parameters

  • To string(phone-number)

    Only show calls made to this phone number, SIP address, Client identifier or SIM SID.

  • From string(phone-number)

    Only include calls from this phone number, SIP address, Client identifier or SIM SID.

  • Only include calls spawned by calls with this SID.

  • Status string

    The status of the calls to include. Can be: queued, ringing, in-progress, canceled, completed, failed, busy, or no-answer.

    Values are queued, ringing, in-progress, completed, busy, failed, no-answer, or canceled.

  • StartTime string(date-time)

    Only include calls that started on this date. Specify a date as YYYY-MM-DD in GMT, for example: 2009-07-06, to read only calls that started on this date. You can also specify an inequality, such as StartTime<=YYYY-MM-DD, to read calls that started on or before midnight of this date, and StartTime>=YYYY-MM-DD to read calls that started on or after midnight of this date.

  • StartTime< string(date-time)

    Only include calls that started on this date. Specify a date as YYYY-MM-DD in GMT, for example: 2009-07-06, to read only calls that started on this date. You can also specify an inequality, such as StartTime<=YYYY-MM-DD, to read calls that started on or before midnight of this date, and StartTime>=YYYY-MM-DD to read calls that started on or after midnight of this date.

  • StartTime> string(date-time)

    Only include calls that started on this date. Specify a date as YYYY-MM-DD in GMT, for example: 2009-07-06, to read only calls that started on this date. You can also specify an inequality, such as StartTime<=YYYY-MM-DD, to read calls that started on or before midnight of this date, and StartTime>=YYYY-MM-DD to read calls that started on or after midnight of this date.

  • EndTime string(date-time)

    Only include calls that ended on this date. Specify a date as YYYY-MM-DD in GMT, for example: 2009-07-06, to read only calls that ended on this date. You can also specify an inequality, such as EndTime<=YYYY-MM-DD, to read calls that ended on or before midnight of this date, and EndTime>=YYYY-MM-DD to read calls that ended on or after midnight of this date.

  • EndTime< string(date-time)

    Only include calls that ended on this date. Specify a date as YYYY-MM-DD in GMT, for example: 2009-07-06, to read only calls that ended on this date. You can also specify an inequality, such as EndTime<=YYYY-MM-DD, to read calls that ended on or before midnight of this date, and EndTime>=YYYY-MM-DD to read calls that ended on or after midnight of this date.

  • EndTime> string(date-time)

    Only include calls that ended on this date. Specify a date as YYYY-MM-DD in GMT, for example: 2009-07-06, to read only calls that ended on this date. You can also specify an inequality, such as EndTime<=YYYY-MM-DD, to read calls that ended on or before midnight of this date, and EndTime>=YYYY-MM-DD to read calls that ended on or after midnight of this date.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • calls array[object]
      Hide calls attributes Show calls attributes array[object]
      • account_sid string | null

        The SID of the Account that created this resource

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

      • answered_by string | null

        Either human or machine if this call was initiated with answering machine detection. Empty otherwise.

      • api_version string | null

        The API Version used to create the call

      • caller_name string | null

        The caller's name if this call was an incoming call to a phone number with caller ID Lookup enabled. Otherwise, empty.

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that this resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that this resource was last updated

      • direction string | null

        A string describing the direction of the call. inbound for inbound calls, outbound-api for calls initiated via the REST API or outbound-dial for calls initiated by a Dial verb.

      • duration string | null

        The length of the call in seconds.

      • end_time string(date-time-rfc-2822) | null

        The end time of the call. Null if the call did not complete successfully.

      • forwarded_from string | null

        The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty.

      • from string | null

        The phone number, SIP address or Client identifier that made this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as name@company.com. Client identifiers are formatted client:name.

      • from_formatted string | null

        The calling phone number, SIP address, or Client identifier formatted for display.

      • group_sid string | null

        The Group SID associated with this call. If no Group is associated with the call, the field is empty.

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

      • parent_call_sid string | null

        The SID that identifies the call that created this leg.

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

      • phone_number_sid string | null

        If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed.

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

      • price string | null

        The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available.

      • price_unit string(currency) | null

        The currency in which Price is measured.

      • queue_time string | null

        The wait time in milliseconds before the call is placed.

      • sid string | null

        The unique string that identifies this resource

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

      • start_time string(date-time-rfc-2822) | null

        The start time of the call. Null if the call has not yet been dialed.

      • status string | null

        The status of this call.

        Values are queued, ringing, in-progress, completed, busy, failed, no-answer, or canceled.

      • subresource_uris object(uri-map) | null

        A list of related subresources identified by their relative URIs

      • to string | null

        The phone number, SIP address or Client identifier that received this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as name@company.com. Client identifiers are formatted client:name.

      • to_formatted string | null

        The phone number, SIP address or Client identifier that received this call. Formatted for display.

      • trunk_sid string | null

        The (optional) unique identifier of the trunk resource that was used for this call.

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

      • uri string(uri) | null

        The URI of this resource, relative to https://api.twilio.com

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Calls.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls.json \
 --user "username:password"
Response examples (200)
{
  "calls": [
    {
      "account_sid": "string",
      "answered_by": "string",
      "api_version": "string",
      "caller_name": "string",
      "date_created": "string",
      "date_updated": "string",
      "direction": "string",
      "duration": "string",
      "end_time": "string",
      "forwarded_from": "string",
      "from": "string",
      "from_formatted": "string",
      "group_sid": "string",
      "parent_call_sid": "string",
      "phone_number_sid": "string",
      "price": "string",
      "price_unit": "string",
      "queue_time": "string",
      "sid": "string",
      "start_time": "string",
      "status": "queued",
      "subresource_uris": {},
      "to": "string",
      "to_formatted": "string",
      "trunk_sid": "string",
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "calls": [
    {
      "account_sid": "string",
      "answered_by": "string",
      "api_version": "string",
      "caller_name": "string",
      "date_created": "string",
      "date_updated": "string",
      "direction": "string",
      "duration": "string",
      "end_time": "string",
      "forwarded_from": "string",
      "from": "string",
      "from_formatted": "string",
      "group_sid": "string",
      "parent_call_sid": "string",
      "phone_number_sid": "string",
      "price": "string",
      "price_unit": "string",
      "queue_time": "string",
      "sid": "string",
      "start_time": "string",
      "status": "queued",
      "subresource_uris": {},
      "to": "string",
      "to_formatted": "string",
      "trunk_sid": "string",
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Create a new outgoing call to phones

POST /2010-04-01/Accounts/{AccountSid}/Calls.json

A Call is an object that represents a connection between a telephone and Twilio.

Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections

Path parameters

Body

  • The SID of the Application resource that will handle the call, if the call will be handled by an application.

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

  • AsyncAmd string

    Select whether to perform answering machine detection in the background. Default, blocks the execution of the call until Answering Machine Detection is completed. Can be: true or false.

  • The URL that we should call using the async_amd_status_callback_method to notify customer application whether the call was answered by human, machine or fax.

  • AsyncAmdStatusCallbackMethod string(http-method)

    The HTTP method we should use when calling the async_amd_status_callback URL. Can be: GET or POST and the default is POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • Byoc string

    The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that byoc is only meaningful when to is a phone number; it will otherwise be ignored. (Beta)

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

  • The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta)

  • A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.

  • CallerId string

    The phone number, SIP address, or Client identifier that made this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as name@company.com.

  • FallbackMethod string(http-method)

    The HTTP method that we should use to request the fallback_url. Can be: GET or POST and the default is POST. If an application_sid parameter is present, this parameter is ignored.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • FallbackUrl string(uri)

    The URL that we call using the fallback_method if an error occurs when requesting or executing the TwiML at url. If an application_sid parameter is present, this parameter is ignored.

  • From string Required

    The phone number or client identifier to use as the caller id. If using a phone number, it must be a Twilio number or a Verified outgoing caller id for your account. If the to parameter is a phone number, From must also be a phone number.

  • Whether to detect if a human, answering machine, or fax has picked up the call. Can be: Enable or DetectMessageEnd. Use Enable if you would like us to return AnsweredBy as soon as the called party is identified. Use DetectMessageEnd, if you would like to leave a message on an answering machine. If send_digits is provided, this parameter is ignored. For more information, see Answering Machine Detection.

  • The number of milliseconds of initial silence after which an unknown AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000.

  • The URL that we call when the recording is available to be accessed.

  • The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200.

  • The number of milliseconds that is used as the measuring stick for the length of the speech activity, where durations lower than this value will be interpreted as a human and longer than this value as a machine. Possible Values: 1000-6000. Default: 2400.

  • The number of seconds that we should attempt to detect an answering machine before timing out and sending a voice request with AnsweredBy of unknown. The default timeout is 30 seconds.

  • Method string(http-method)

    The HTTP method we should use when calling the url parameter's value. Can be: GET or POST and the default is POST. If an application_sid parameter is present, this parameter is ignored.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • Record boolean

    Whether to record the call. Can be true to record the phone call, or false to not. The default is false. The recording_url is sent to the status_callback URL.

  • The number of channels in the final recording. Can be: mono or dual. The default is mono. mono records both legs of the call in a single channel of the recording file. dual records each leg to a separate channel of the recording file. The first channel of a dual-channel recording contains the parent call and the second channel contains the child call.

  • The recording status events that will trigger calls to the URL specified in recording_status_callback. Can be: in-progress, completed and absent. Defaults to completed. Separate multiple values with a space.

  • The HTTP method we should use when calling the recording_status_callback URL. Can be: GET or POST and the default is POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • The audio track to record for the call. Can be: inbound, outbound or both. The default is both. inbound records the audio that is received by Twilio. outbound records the audio that is generated from Twilio. both records the audio that is received and generated by Twilio.

  • A string of keys to dial after connecting to the number, maximum of 32 digits. Valid digits in the string include: any digit (0-9), '#', '*' and 'w', to insert a half second pause. For example, if you connected to a company phone number and wanted to pause for one second, and then dial extension 1234 followed by the pound key, the value of this parameter would be ww1234#. Remember to URL-encode this string, since the '#' character has special meaning in a URL. If both SendDigits and MachineDetection parameters are provided, then MachineDetection will be ignored.

  • The password required to authenticate the user account specified in sip_auth_username.

  • The username used to authenticate the caller making a SIP call.

  • StatusCallback string(uri)

    The URL we should call using the status_callback_method to send status information to your application. If no status_callback_event is specified, we will send the completed status. If an application_sid parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted).

  • StatusCallbackEvent array[string]

    The call progress events that we will send to the status_callback URL. Can be: initiated, ringing, answered, and completed. If no event is specified, we send the completed status. If you want to receive multiple events, specify each one in a separate status_callback_event parameter. See the code sample for monitoring call progress. If an application_sid is present, this parameter is ignored.

  • StatusCallbackMethod string(http-method)

    The HTTP method we should use when calling the status_callback URL. Can be: GET or POST and the default is POST. If an application_sid parameter is present, this parameter is ignored.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • TimeLimit integer

    The maximum duration of the call in seconds. Constraints depend on account and configuration.

  • Timeout integer

    The integer number of seconds that we should allow the phone to ring before assuming there is no answer. The default is 60 seconds and the maximum is 600 seconds. For some call flows, we will add a 5-second buffer to the timeout value you provide. For this reason, a timeout value of 10 seconds could result in an actual timeout closer to 15 seconds. You can set this to a short time, such as 15 seconds, to hang up before reaching an answering machine or voicemail.

  • To string Required

    The phone number, SIP address, or client identifier to call.

  • Trim string

    Whether to trim any leading and trailing silence from the recording. Can be: trim-silence or do-not-trim and the default is trim-silence.

  • Twiml string

    TwiML instructions for the call Twilio will use without fetching Twiml from url parameter. If both twiml and url are provided then twiml parameter will be ignored. Max 4000 characters.

  • Url string(uri)

    The absolute URL that returns the TwiML instructions for the call. We will call this URL using the method when the call connects. For more information, see the Url Parameter section in Making Calls.

Responses

  • Created

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

      The SID of the Account that created this resource

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

    • answered_by string | null

      Either human or machine if this call was initiated with answering machine detection. Empty otherwise.

    • api_version string | null

      The API Version used to create the call

    • caller_name string | null

      The caller's name if this call was an incoming call to a phone number with caller ID Lookup enabled. Otherwise, empty.

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • direction string | null

      A string describing the direction of the call. inbound for inbound calls, outbound-api for calls initiated via the REST API or outbound-dial for calls initiated by a Dial verb.

    • duration string | null

      The length of the call in seconds.

    • end_time string(date-time-rfc-2822) | null

      The end time of the call. Null if the call did not complete successfully.

    • forwarded_from string | null

      The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty.

    • from string | null

      The phone number, SIP address or Client identifier that made this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as name@company.com. Client identifiers are formatted client:name.

    • from_formatted string | null

      The calling phone number, SIP address, or Client identifier formatted for display.

    • group_sid string | null

      The Group SID associated with this call. If no Group is associated with the call, the field is empty.

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

    • parent_call_sid string | null

      The SID that identifies the call that created this leg.

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

    • phone_number_sid string | null

      If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed.

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

    • price string | null

      The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available.

    • price_unit string(currency) | null

      The currency in which Price is measured.

    • queue_time string | null

      The wait time in milliseconds before the call is placed.

    • sid string | null

      The unique string that identifies this resource

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

    • start_time string(date-time-rfc-2822) | null

      The start time of the call. Null if the call has not yet been dialed.

    • status string | null

      The status of this call.

      Values are queued, ringing, in-progress, completed, busy, failed, no-answer, or canceled.

    • subresource_uris object(uri-map) | null

      A list of related subresources identified by their relative URIs

    • to string | null

      The phone number, SIP address or Client identifier that received this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as name@company.com. Client identifiers are formatted client:name.

    • to_formatted string | null

      The phone number, SIP address or Client identifier that received this call. Formatted for display.

    • trunk_sid string | null

      The (optional) unique identifier of the trunk resource that was used for this call.

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

    • uri string(uri) | null

      The URI of this resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Calls.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'ApplicationSid=string&AsyncAmd=string&AsyncAmdStatusCallback=https%3A%2F%2Fexample.com&AsyncAmdStatusCallbackMethod=HEAD&Byoc=string&CallReason=string&CallToken=string&CallerId=string&FallbackMethod=HEAD&FallbackUrl=https%3A%2F%2Fexample.com&From=string&MachineDetection=string&MachineDetectionSilenceTimeout=42&MachineDetectionSpeechEndThreshold=42&MachineDetectionSpeechThreshold=42&MachineDetectionTimeout=42&Method=HEAD&Record=true&RecordingChannels=string&RecordingStatusCallback=string&RecordingStatusCallbackEvent=string&RecordingStatusCallbackMethod=HEAD&RecordingTrack=string&SendDigits=string&SipAuthPassword=string&SipAuthUsername=string&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackEvent=string&StatusCallbackMethod=HEAD&TimeLimit=42&Timeout=42&To=string&Trim=string&Twiml=string&Url=https%3A%2F%2Fexample.com'
Request example
{
  "ApplicationSid": "string",
  "AsyncAmd": "string",
  "AsyncAmdStatusCallback": "https://example.com",
  "AsyncAmdStatusCallbackMethod": "HEAD",
  "Byoc": "string",
  "CallReason": "string",
  "CallToken": "string",
  "CallerId": "string",
  "FallbackMethod": "HEAD",
  "FallbackUrl": "https://example.com",
  "From": "string",
  "MachineDetection": "string",
  "MachineDetectionSilenceTimeout": 42,
  "MachineDetectionSpeechEndThreshold": 42,
  "MachineDetectionSpeechThreshold": 42,
  "MachineDetectionTimeout": 42,
  "Method": "HEAD",
  "Record": true,
  "RecordingChannels": "string",
  "RecordingStatusCallback": "string",
  "RecordingStatusCallbackEvent": [
    "string"
  ],
  "RecordingStatusCallbackMethod": "HEAD",
  "RecordingTrack": "string",
  "SendDigits": "string",
  "SipAuthPassword": "string",
  "SipAuthUsername": "string",
  "StatusCallback": "https://example.com",
  "StatusCallbackEvent": [
    "string"
  ],
  "StatusCallbackMethod": "HEAD",
  "TimeLimit": 42,
  "Timeout": 42,
  "To": "string",
  "Trim": "string",
  "Twiml": "string",
  "Url": "https://example.com"
}
Request examples
{
  "ApplicationSid": "string",
  "AsyncAmd": "string",
  "AsyncAmdStatusCallback": "https://example.com",
  "AsyncAmdStatusCallbackMethod": "HEAD",
  "Byoc": "string",
  "CallReason": "string",
  "CallToken": "string",
  "CallerId": "string",
  "FallbackMethod": "HEAD",
  "FallbackUrl": "https://example.com",
  "From": "string",
  "MachineDetection": "string",
  "MachineDetectionSilenceTimeout": 42,
  "RecordingStatusCallback": "string",
  "MachineDetectionSpeechEndThreshold": 42,
  "MachineDetectionSpeechThreshold": 42,
  "MachineDetectionTimeout": 42,
  "Method": "HEAD",
  "Record": true,
  "RecordingChannels": "string",
  "RecordingStatusCallbackEvent": [
    "string"
  ],
  "RecordingStatusCallbackMethod": "HEAD",
  "RecordingTrack": "string",
  "SendDigits": "string",
  "SipAuthPassword": "string",
  "SipAuthUsername": "string",
  "StatusCallback": "https://example.com",
  "StatusCallbackEvent": [
    "string"
  ],
  "StatusCallbackMethod": "HEAD",
  "TimeLimit": 42,
  "Timeout": 42,
  "To": "string",
  "Trim": "string",
  "Twiml": "string",
  "Url": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "answered_by": "string",
  "api_version": "string",
  "caller_name": "string",
  "date_created": "string",
  "date_updated": "string",
  "direction": "string",
  "duration": "string",
  "end_time": "string",
  "forwarded_from": "string",
  "from": "string",
  "from_formatted": "string",
  "group_sid": "string",
  "parent_call_sid": "string",
  "phone_number_sid": "string",
  "price": "string",
  "price_unit": "string",
  "queue_time": "string",
  "sid": "string",
  "start_time": "string",
  "status": "queued",
  "subresource_uris": {},
  "to": "string",
  "to_formatted": "string",
  "trunk_sid": "string",
  "uri": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "answered_by": "string",
  "api_version": "string",
  "caller_name": "string",
  "date_created": "string",
  "date_updated": "string",
  "direction": "string",
  "duration": "string",
  "end_time": "string",
  "forwarded_from": "string",
  "from": "string",
  "from_formatted": "string",
  "group_sid": "string",
  "parent_call_sid": "string",
  "phone_number_sid": "string",
  "price": "string",
  "price_unit": "string",
  "queue_time": "string",
  "sid": "string",
  "start_time": "string",
  "status": "queued",
  "subresource_uris": {},
  "to": "string",
  "to_formatted": "string",
  "trunk_sid": "string",
  "uri": "https://example.com"
}

Create a FeedbackSummary resource for a call

POST /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json

Call FeedbackSummary resources provide an idea of how your end user's perceive the quality of their calls and the most common issues they have encountered in the context of all your voice traffic during a specific time frame.

Create a FeedbackSummary resource for a call

Path parameters

Body

  • EndDate string(date) Required

    Only include feedback given on or before this date. Format is YYYY-MM-DD and specified in UTC.

  • Whether to also include Feedback resources from all subaccounts. true includes feedback from all subaccounts and false, the default, includes feedback from only the specified account.

  • StartDate string(date) Required

    Only include feedback given on or after this date. Format is YYYY-MM-DD and specified in UTC.

  • StatusCallback string(uri)

    The URL that we will request when the feedback summary is complete.

  • StatusCallbackMethod string(http-method)

    The HTTP method (GET or POST) we use to make the request to the StatusCallback URL.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

Responses

  • Created

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

      The unique sid that identifies this account

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

    • call_count integer | null

      The total number of calls

    • call_feedback_count integer | null

      The total number of calls with a feedback entry

    • date_created string(date-time-rfc-2822) | null

      The date this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The date this resource was last updated

    • end_date string(date) | null

      The latest feedback entry date in the summary

    • include_subaccounts boolean | null

      Whether the feedback summary includes subaccounts

    • issues array | null

      Issues experienced during the call

    • The average QualityScore of the feedback entries

    • The median QualityScore of the feedback entries

    • The standard deviation of the quality scores

    • sid string | null

      A string that uniquely identifies this feedback entry

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

    • start_date string(date) | null

      The earliest feedback entry date in the summary

    • status string | null

      The status of the feedback summary

      Values are queued, in-progress, completed, or failed.

POST /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'EndDate=2023-05-04&IncludeSubaccounts=true&StartDate=2023-05-04&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD'
Request example
{
  "EndDate": "2023-05-04",
  "IncludeSubaccounts": true,
  "StartDate": "2023-05-04",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD"
}
Request examples
{
  "EndDate": "2025-05-04",
  "IncludeSubaccounts": true,
  "StartDate": "2025-05-04",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD"
}
Response examples (201)
{
  "account_sid": "string",
  "call_count": 42,
  "call_feedback_count": 42,
  "date_created": "string",
  "date_updated": "string",
  "end_date": "2023-05-04",
  "include_subaccounts": true,
  "issues": [],
  "quality_score_average": 42.0,
  "quality_score_median": 42.0,
  "quality_score_standard_deviation": 42.0,
  "sid": "string",
  "start_date": "2023-05-04",
  "status": "queued"
}
Response examples (201)
{
  "account_sid": "string",
  "call_count": 42,
  "call_feedback_count": 42,
  "date_created": "string",
  "date_updated": "string",
  "end_date": "2025-05-04",
  "include_subaccounts": true,
  "issues": [],
  "quality_score_average": 42.0,
  "quality_score_median": 42.0,
  "quality_score_standard_deviation": 42.0,
  "sid": "string",
  "start_date": "2025-05-04",
  "status": "queued"
}

Fetch a FeedbackSummary resource from a call

GET /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json

Call FeedbackSummary resources provide an idea of how your end user's perceive the quality of their calls and the most common issues they have encountered in the context of all your voice traffic during a specific time frame.

Fetch a FeedbackSummary resource from a call

Path parameters

  • AccountSid string Required

    The unique id of the Account responsible for this resource.

  • Sid string Required

    A 34 character string that uniquely identifies this resource.

Responses

  • OK

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

      The unique sid that identifies this account

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

    • call_count null | integer

      The total number of calls

    • call_feedback_count integer | null

      The total number of calls with a feedback entry

    • date_created string(date-time-rfc-2822) | null

      The date this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The date this resource was last updated

    • end_date string(date) | null

      The latest feedback entry date in the summary

    • include_subaccounts boolean | null

      Whether the feedback summary includes subaccounts

    • issues array | null

      Issues experienced during the call

    • The average QualityScore of the feedback entries

    • The median QualityScore of the feedback entries

    • The standard deviation of the quality scores

    • sid string | null

      A string that uniquely identifies this feedback entry

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

    • start_date string(date) | null

      The earliest feedback entry date in the summary

    • status string | null

      The status of the feedback summary

      Values are queued, in-progress, completed, or failed.

GET /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "call_count": 42,
  "call_feedback_count": 42,
  "date_created": "string",
  "date_updated": "string",
  "end_date": "2023-05-04",
  "include_subaccounts": true,
  "issues": [],
  "quality_score_average": 42.0,
  "quality_score_median": 42.0,
  "quality_score_standard_deviation": 42.0,
  "sid": "string",
  "start_date": "2023-05-04",
  "status": "queued"
}
Response examples (200)
{
  "account_sid": "string",
  "call_count": null,
  "call_feedback_count": 42,
  "date_created": "string",
  "date_updated": "string",
  "end_date": "2025-05-04",
  "include_subaccounts": true,
  "issues": [],
  "quality_score_average": 42.0,
  "quality_score_median": 42.0,
  "quality_score_standard_deviation": 42.0,
  "sid": "string",
  "start_date": "2025-05-04",
  "status": "queued"
}

Delete a FeedbackSummary resource from a call

DELETE /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json

Call FeedbackSummary resources provide an idea of how your end user's perceive the quality of their calls and the most common issues they have encountered in the context of all your voice traffic during a specific time frame.

Delete a FeedbackSummary resource from a call

Path parameters

  • AccountSid string Required

    The unique id of the Account responsible for this resource.

  • Sid string Required

    A 34 character string that uniquely identifies this resource.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json \
 --user "username:password"

Retrieve a list of all events for a call

GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json

TODO: Resource-level docs

Retrieve a list of all events for a call.

Path parameters

  • AccountSid string Required

    The unique SID identifier of the Account.

  • CallSid string Required

    The unique SID identifier of the Call.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "events": [
    {}
  ],
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "events": [
    {}
  ],
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Fetch a Feedback resource from a call

GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json

The call Feedback subresource describes the quality experienced during a phone call.

Fetch a Feedback resource from a call

Path parameters

  • AccountSid string Required

    The unique id of the Account responsible for this resource.

  • CallSid string Required

    The call sid that uniquely identifies the call

Responses

  • OK

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

      The unique sid that identifies this account

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

    • date_created string(date-time-rfc-2822) | null

      The date this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The date this resource was last updated

    • issues array[string] | null

      Issues experienced during the call

      Values are audio-latency, digits-not-captured, dropped-call, imperfect-audio, incorrect-caller-id, one-way-audio, post-dial-delay, or unsolicited-call.

    • quality_score integer | null

      1 to 5 quality score

    • sid string | null

      A string that uniquely identifies this feedback resource

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

GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "issues": [
    "audio-latency"
  ],
  "quality_score": 42,
  "sid": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "issues": [
    "audio-latency"
  ],
  "quality_score": 42,
  "sid": "string"
}

Update a Feedback resource for a call

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json

The call Feedback subresource describes the quality experienced during a phone call.

Update a Feedback resource for a call

Path parameters

  • AccountSid string Required

    The unique id of the Account responsible for this resource.

  • CallSid string Required

    The call sid that uniquely identifies the call

Body

  • Issue array[string]

    One or more issues experienced during the call. The issues can be: imperfect-audio, dropped-call, incorrect-caller-id, post-dial-delay, digits-not-captured, audio-latency, unsolicited-call, or one-way-audio.

    Values are audio-latency, digits-not-captured, dropped-call, imperfect-audio, incorrect-caller-id, one-way-audio, post-dial-delay, or unsolicited-call.

  • The call quality expressed as an integer from 1 to 5 where 1 represents very poor call quality and 5 represents a perfect call.

Responses

  • OK

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

      The unique sid that identifies this account

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

    • date_created string(date-time-rfc-2822) | null

      The date this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The date this resource was last updated

    • issues array[string] | null

      Issues experienced during the call

      Values are audio-latency, digits-not-captured, dropped-call, imperfect-audio, incorrect-caller-id, one-way-audio, post-dial-delay, or unsolicited-call.

    • quality_score integer | null

      1 to 5 quality score

    • sid string | null

      A string that uniquely identifies this feedback resource

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

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Issue=audio-latency&QualityScore=42'
Request example
{
  "Issue": [
    "audio-latency"
  ],
  "QualityScore": 42
}
Request examples
{
  "Issue": [
    "audio-latency"
  ],
  "QualityScore": 42
}
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "issues": [
    "audio-latency"
  ],
  "quality_score": 42,
  "sid": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "issues": [
    "audio-latency"
  ],
  "quality_score": 42,
  "sid": "string"
}

List call notification

GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json

Error notifications for calls

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Call Notification resources to read.

  • CallSid string Required

    The Call SID of the Call Notification resources to read.

Query parameters

  • Log integer

    Only read notifications of the specified log level. Can be: 0 to read only ERROR notifications or 1 to read only WARNING notifications. By default, all notifications are read.

  • MessageDate string(date)

    Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.

  • MessageDate< string(date)

    Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.

  • MessageDate> string(date)

    Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • notifications array[object]
      Hide notifications attributes Show notifications attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • api_version string | null

        The API version used to create the Call Notification resource

      • call_sid string | null

        The SID of the Call the resource is associated with

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

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • error_code string | null

        A unique error code corresponding to the notification

      • log string | null

        An integer log level

      • message_date string(date-time-rfc-2822) | null

        The date the notification was generated

      • message_text string | null

        The text of the notification

      • more_info string(uri) | null

        A URL for more information about the error code

      • request_method string(http-method) | null

        HTTP method used with the request url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • request_url null | string(uri)

        URL of the resource that generated the notification

      • sid string | null

        The unique string that identifies the resource

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

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "notifications": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "error_code": "string",
      "log": "string",
      "message_date": "string",
      "message_text": "string",
      "more_info": "https://example.com",
      "request_method": "HEAD",
      "request_url": "https://example.com",
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "notifications": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "error_code": "string",
      "log": "string",
      "message_date": "string",
      "message_text": "string",
      "more_info": "https://example.com",
      "request_method": "HEAD",
      "request_url": null,
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Fetch call notification

GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json

Error notifications for calls

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Call Notification resource to fetch.

  • CallSid string Required

    The Call SID of the Call Notification resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Call Notification resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to create the Call Notification resource

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • error_code string | null

      A unique error code corresponding to the notification

    • log string | null

      An integer log level

    • message_date string(date-time-rfc-2822) | null

      The date the notification was generated

    • message_text string | null

      The text of the notification

    • more_info string(uri) | null

      A URL for more information about the error code

    • request_method string(http-method) | null

      HTTP method used with the request url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • request_url string(uri) | null

      URL of the resource that generated the notification

    • request_variables string | null

      Twilio-generated HTTP variables sent to the server

    • response_body string | null

      The HTTP body returned by your server

    • response_headers string | null

      The HTTP headers returned by your server

    • sid string | null

      The unique string that identifies the resource

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "error_code": "string",
  "log": "string",
  "message_date": "string",
  "message_text": "string",
  "more_info": "https://example.com",
  "request_method": "HEAD",
  "request_url": "https://example.com",
  "request_variables": "string",
  "response_body": "string",
  "response_headers": "string",
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "error_code": "string",
  "log": "string",
  "message_date": "string",
  "message_text": "string",
  "more_info": "https://example.com",
  "request_method": "HEAD",
  "request_url": "https://example.com",
  "request_variables": "string",
  "response_body": "string",
  "response_headers": "string",
  "sid": "string",
  "uri": "https://example.com"
}

Create an instance of payments

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json

Twilio enabled secure payments solution for accepting credit and ACH payments over the phone.

create an instance of payments. This will start a new payments session

Path parameters

  • AccountSid string Required

    The SID of the Account that will create the resource.

  • CallSid string Required

    The SID of the call that will create the resource. Call leg associated with this sid is expected to provide payment information thru DTMF.

Body

  • Type of bank account if payment source is ACH. One of consumer-checking, consumer-savings, or commercial-checking. The default value is consumer-checking.

    Values are consumer-checking, consumer-savings, or commercial-checking.

  • A positive decimal value less than 1,000,000 to charge against the credit card or bank account. Default currency can be overwritten with currency field. Leave blank or set to 0 to tokenize.

  • Currency string

    The currency of the charge_amount, formatted as ISO 4127 format. The default value is USD and all values allowed from the Connector are accepted.

  • The description can be used to provide more details regarding the transaction. This information is submitted along with the payment details to the Payment Connector which are then posted on the transactions.

  • IdempotencyKey string Required

    A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated.

  • Input string

    A list of inputs that should be accepted. Currently only dtmf is supported. All digits captured during a pay session are redacted from the logs.

  • A positive integer that is used to validate the length of the PostalCode inputted by the user. User must enter this many digits.

  • A single-level JSON object used to pass custom parameters to payment processors. (Required for ACH payments). The information that has to be included here depends on the Connector. Read more.

  • This is the unique name corresponding to the Payment Gateway Connector installed in the Twilio Add-ons. Learn more about Connectors. The default value is Default.

  • Type of payment being captured. One of credit-card or ach-debit. The default value is credit-card.

    Values are credit-card or ach-debit.

  • PostalCode boolean

    Indicates whether the credit card postal code (zip code) is a required piece of payment information that must be provided by the caller. The default is true.

  • Indicates whether the credit card security code is a required piece of payment information that must be provided by the caller. The default is true.

  • StatusCallback string(uri) Required

    Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the expected StatusCallback values

  • Timeout integer

    The number of seconds that should wait for the caller to press a digit between each subsequent digit, after the first one, before moving on to validate the digits captured. The default is 5, maximum is 600.

  • Indicates whether the payment method should be tokenized as a one-time or reusable token. The default value is reusable. Do not enter a charge amount when tokenizing. If a charge amount is entered, the payment method will be charged and not tokenized.

    Values are one-time or reusable.

  • Credit card types separated by space that Pay should accept. The default value is visa mastercard amex

Responses

  • Created

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

      The SID of the Account that created the Payments resource.

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

    • call_sid string | null

      The SID of the Call the resource is associated with.

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • sid string | null

      The SID of the Payments resource.

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'BankAccountType=consumer-checking&ChargeAmount=42.0&Currency=string&Description=string&IdempotencyKey=string&Input=string&MinPostalCodeLength=42&PaymentConnector=string&PaymentMethod=credit-card&PostalCode=true&SecurityCode=true&StatusCallback=https%3A%2F%2Fexample.com&Timeout=42&TokenType=one-time&ValidCardTypes=string'
Request example
{
  "BankAccountType": "consumer-checking",
  "ChargeAmount": 42.0,
  "Currency": "string",
  "Description": "string",
  "IdempotencyKey": "string",
  "Input": "string",
  "MinPostalCodeLength": 42,
  "PaymentConnector": "string",
  "PaymentMethod": "credit-card",
  "PostalCode": true,
  "SecurityCode": true,
  "StatusCallback": "https://example.com",
  "Timeout": 42,
  "TokenType": "one-time",
  "ValidCardTypes": "string"
}
Request examples
{
  "BankAccountType": "consumer-checking",
  "ChargeAmount": 42.0,
  "Currency": "string",
  "Description": "string",
  "IdempotencyKey": "string",
  "Input": "string",
  "MinPostalCodeLength": 42,
  "PaymentConnector": "string",
  "PaymentMethod": "credit-card",
  "PostalCode": true,
  "SecurityCode": true,
  "StatusCallback": "https://example.com",
  "Timeout": 42,
  "TokenType": "one-time",
  "ValidCardTypes": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "call_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "call_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "sid": "string",
  "uri": "https://example.com"
}

Update an instance of payments with different phases of payment flows

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json

Twilio enabled secure payments solution for accepting credit and ACH payments over the phone.

update an instance of payments with different phases of payment flows.

Path parameters

  • AccountSid string Required

    The SID of the Account that will update the resource.

  • CallSid string Required

    The SID of the call that will update the resource. This should be the same call sid that was used to create payments resource.

  • Sid string Required

    The SID of Payments session that needs to be updated.

Body

  • Capture string

    The piece of payment information that you wish the caller to enter. Must be one of payment-card-number, expiration-date, security-code, postal-code, bank-routing-number, or bank-account-number.

    Values are payment-card-number, expiration-date, security-code, postal-code, bank-routing-number, or bank-account-number.

  • IdempotencyKey string Required

    A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated.

  • Status string

    Indicates whether the current payment session should be cancelled or completed. When cancel the payment session is cancelled. When complete, Twilio sends the payment information to the selected connector for processing.

    Values are complete or cancel.

  • StatusCallback string(uri) Required

    Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the Update and Complete/Cancel POST requests.

Responses

  • Accepted

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

      The SID of the Account that created the Payments resource.

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

    • call_sid string | null

      The SID of the Call the resource is associated with.

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • sid string | null

      The SID of the Payments resource.

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Capture=payment-card-number&IdempotencyKey=string&Status=complete&StatusCallback=https%3A%2F%2Fexample.com'
Request example
{
  "Capture": "payment-card-number",
  "IdempotencyKey": "string",
  "Status": "complete",
  "StatusCallback": "https://example.com"
}
Request examples
{
  "Capture": "payment-card-number",
  "IdempotencyKey": "string",
  "Status": "complete",
  "StatusCallback": "https://example.com"
}
Response examples (202)
{
  "account_sid": "string",
  "call_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (202)
{
  "account_sid": "string",
  "call_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "sid": "string",
  "uri": "https://example.com"
}

Retrieve a list of recordings belonging to the call used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json

A Recording resource represents the recording associated with a voice call, conference, or SIP Trunk.

Retrieve a list of recordings belonging to the call used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Recording resources to read.

  • CallSid string Required

    The Call SID of the resources to read.

Query parameters

  • DateCreated string(date)

    The date_created value, specified as YYYY-MM-DD, of the resources to read. You can also specify inequality: DateCreated<=YYYY-MM-DD will return recordings generated at or before midnight on a given date, and DateCreated>=YYYY-MM-DD returns recordings generated at or after midnight on a date.

  • DateCreated< string(date)

    The date_created value, specified as YYYY-MM-DD, of the resources to read. You can also specify inequality: DateCreated<=YYYY-MM-DD will return recordings generated at or before midnight on a given date, and DateCreated>=YYYY-MM-DD returns recordings generated at or after midnight on a date.

  • DateCreated> string(date)

    The date_created value, specified as YYYY-MM-DD, of the resources to read. You can also specify inequality: DateCreated<=YYYY-MM-DD will return recordings generated at or before midnight on a given date, and DateCreated>=YYYY-MM-DD returns recordings generated at or after midnight on a date.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • recordings array[object]
      Hide recordings attributes Show recordings attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • api_version string | null

        The API version used to make the recording

      • call_sid string | null

        The SID of the Call the resource is associated with

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

      • channels integer | null

        The number of channels in the final recording file

      • conference_sid string | null

        The Conference SID that identifies the conference associated with the recording

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

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • duration string | null

        The length of the recording in seconds

      • How to decrypt the recording.

      • error_code integer | null

        More information about why the recording is missing, if status is absent.

      • price number | null

        The one-time cost of creating the recording.

      • price_unit string(currency) | null

        The currency used in the price property.

      • sid string | null

        The unique string that identifies the resource

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

      • source string | null

        How the recording was created

        Values are DialVerb, Conference, OutboundAPI, Trunking, RecordVerb, StartCallRecordingAPI, or StartConferenceRecordingAPI.

      • start_time string(date-time-rfc-2822) | null

        The start time of the recording, given in RFC 2822 format

      • status string | null

        The status of the recording

        Values are in-progress, paused, stopped, processing, completed, or absent.

      • track string | null

        The recorded track. Can be: inbound, outbound, or both.

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "recordings": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid": "string",
      "channels": 42,
      "conference_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "duration": "string",
      "error_code": 42,
      "price": 42.0,
      "price_unit": "string",
      "sid": "string",
      "source": "DialVerb",
      "start_time": "string",
      "status": "in-progress",
      "track": "string",
      "uri": "https://example.com"
    }
  ],
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "recordings": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid": "string",
      "channels": 42,
      "conference_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "duration": "string",
      "error_code": 42,
      "price": 42.0,
      "price_unit": "string",
      "sid": "string",
      "source": "DialVerb",
      "start_time": "string",
      "status": "in-progress",
      "track": "string",
      "uri": "https://example.com"
    }
  ],
  "start": 42,
  "uri": "https://example.com"
}

Create a recording for the call

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json

A Recording resource represents the recording associated with a voice call, conference, or SIP Trunk.

Create a recording for the call

Path parameters

Body

  • The number of channels used in the recording. Can be: mono or dual and the default is mono. mono records all parties of the call into one channel. dual records each party of a 2-party call into separate channels.

  • The URL we should call using the recording_status_callback_method on each recording event specified in recording_status_callback_event. For more information, see RecordingStatusCallback parameters.

  • The recording status events on which we should call the recording_status_callback URL. Can be: in-progress, completed and absent and the default is completed. Separate multiple event values with a space.

  • The HTTP method we should use to call recording_status_callback. Can be: GET or POST and the default is POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • The audio track to record for the call. Can be: inbound, outbound or both. The default is both. inbound records the audio that is received by Twilio. outbound records the audio that is generated from Twilio. both records the audio that is received and generated by Twilio.

  • Trim string

    Whether to trim any leading and trailing silence in the recording. Can be: trim-silence or do-not-trim and the default is do-not-trim. trim-silence trims the silence from the beginning and end of the recording and do-not-trim does not.

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to make the recording

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • channels integer | null

      The number of channels in the final recording file

    • conference_sid string | null

      The Conference SID that identifies the conference associated with the recording

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • duration string | null

      The length of the recording in seconds

    • How to decrypt the recording.

    • error_code integer | null

      More information about why the recording is missing, if status is absent.

    • price number | null

      The one-time cost of creating the recording.

    • price_unit string(currency) | null

      The currency used in the price property.

    • sid string | null

      The unique string that identifies the resource

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

    • source string | null

      How the recording was created

      Values are DialVerb, Conference, OutboundAPI, Trunking, RecordVerb, StartCallRecordingAPI, or StartConferenceRecordingAPI.

    • start_time string(date-time-rfc-2822) | null

      The start time of the recording, given in RFC 2822 format

    • status string | null

      The status of the recording

      Values are in-progress, paused, stopped, processing, completed, or absent.

    • track null | string

      The recorded track. Can be: inbound, outbound, or both.

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'RecordingChannels=string&RecordingStatusCallback=https%3A%2F%2Fexample.com&RecordingStatusCallbackEvent=string&RecordingStatusCallbackMethod=HEAD&RecordingTrack=string&Trim=string'
Request example
{
  "RecordingChannels": "string",
  "RecordingStatusCallback": "https://example.com",
  "RecordingStatusCallbackEvent": [
    "string"
  ],
  "RecordingStatusCallbackMethod": "HEAD",
  "RecordingTrack": "string",
  "Trim": "string"
}
Request examples
{
  "RecordingChannels": "string",
  "RecordingStatusCallback": "https://example.com",
  "RecordingStatusCallbackEvent": [
    "string"
  ],
  "RecordingStatusCallbackMethod": "HEAD",
  "RecordingTrack": "string",
  "Trim": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "channels": 42,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "error_code": 42,
  "price": 42.0,
  "price_unit": "string",
  "sid": "string",
  "source": "DialVerb",
  "start_time": "string",
  "status": "in-progress",
  "track": "string",
  "uri": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "channels": 42,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "error_code": 42,
  "price": 42.0,
  "price_unit": "string",
  "sid": "string",
  "source": "DialVerb",
  "start_time": "string",
  "status": "in-progress",
  "track": null,
  "uri": "https://example.com"
}

Fetch an instance of a recording for a call

GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json

A Recording resource represents the recording associated with a voice call, conference, or SIP Trunk.

Fetch an instance of a recording for a call

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Recording resource to fetch.

  • CallSid string Required

    The Call SID of the resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Recording resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to make the recording

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • channels integer | null

      The number of channels in the final recording file

    • conference_sid string | null

      The Conference SID that identifies the conference associated with the recording

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • duration string | null

      The length of the recording in seconds

    • How to decrypt the recording.

    • error_code integer | null

      More information about why the recording is missing, if status is absent.

    • price number | null

      The one-time cost of creating the recording.

    • price_unit string(currency) | null

      The currency used in the price property.

    • sid string | null

      The unique string that identifies the resource

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

    • source string | null

      How the recording was created

      Values are DialVerb, Conference, OutboundAPI, Trunking, RecordVerb, StartCallRecordingAPI, or StartConferenceRecordingAPI.

    • start_time string(date-time-rfc-2822) | null

      The start time of the recording, given in RFC 2822 format

    • status string | null

      The status of the recording

      Values are in-progress, paused, stopped, processing, completed, or absent.

    • track string | null

      The recorded track. Can be: inbound, outbound, or both.

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "channels": 42,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "error_code": 42,
  "price": 42.0,
  "price_unit": "string",
  "sid": "string",
  "source": "DialVerb",
  "start_time": "string",
  "status": "in-progress",
  "track": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "channels": 42,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "error_code": 42,
  "price": 42.0,
  "price_unit": "string",
  "sid": "string",
  "source": "DialVerb",
  "start_time": "string",
  "status": "in-progress",
  "track": "string",
  "uri": "https://example.com"
}

Changes the status of the recording to paused

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json

A Recording resource represents the recording associated with a voice call, conference, or SIP Trunk.

Changes the status of the recording to paused, stopped, or in-progress. Note: Pass Twilio.CURRENT instead of recording sid to reference current active recording.

Path parameters

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Recording resource to update.

  • AccountSid string Required

    The SID of the Account that created the Recording resource to update.

  • CallSid string Required

    The Call SID of the resource to update.

Body

  • Whether to record during a pause. Can be: skip or silence and the default is silence. skip does not record during the pause period, while silence will replace the actual audio of the call with silence during the pause period. This parameter only applies when setting status is set to paused.

  • Status string Required

    The new status of the recording. Can be: stopped, paused, in-progress.

    Values are in-progress, paused, stopped, processing, completed, or absent.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to make the recording

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • channels integer | null

      The number of channels in the final recording file

    • conference_sid string | null

      The Conference SID that identifies the conference associated with the recording

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • duration string | null

      The length of the recording in seconds

    • How to decrypt the recording.

    • error_code integer | null

      More information about why the recording is missing, if status is absent.

    • price number | null

      The one-time cost of creating the recording.

    • price_unit string(currency) | null

      The currency used in the price property.

    • sid string | null

      The unique string that identifies the resource

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

    • source string | null

      How the recording was created

      Values are DialVerb, Conference, OutboundAPI, Trunking, RecordVerb, StartCallRecordingAPI, or StartConferenceRecordingAPI.

    • start_time string(date-time-rfc-2822) | null

      The start time of the recording, given in RFC 2822 format

    • status string | null

      The status of the recording

      Values are in-progress, paused, stopped, processing, completed, or absent.

    • track string | null

      The recorded track. Can be: inbound, outbound, or both.

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'PauseBehavior=string&Status=in-progress'
Request example
{
  "PauseBehavior": "string",
  "Status": "in-progress"
}
Request examples
{
  "PauseBehavior": "string",
  "Status": "in-progress"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "channels": 42,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "error_code": 42,
  "price": 42.0,
  "price_unit": "string",
  "sid": "string",
  "source": "DialVerb",
  "start_time": "string",
  "status": "in-progress",
  "track": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "channels": 42,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "error_code": 42,
  "price": 42.0,
  "price_unit": "string",
  "sid": "string",
  "source": "DialVerb",
  "start_time": "string",
  "status": "in-progress",
  "track": "string",
  "uri": "https://example.com"
}

Delete a recording from your account

DELETE /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json

A Recording resource represents the recording associated with a voice call, conference, or SIP Trunk.

Delete a recording from your account

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Recording resources to delete.

  • CallSid string Required

    The Call SID of the resources to delete.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Recording resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json \
 --user "username:password"

Create a Siprec

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec.json

TODO: Resource-level docs

Create a Siprec

Path parameters

  • AccountSid string Required

    The SID of the Account that created this Siprec resource.

  • CallSid string Required

    The SID of the Call the Siprec resource is associated with.

Body

Responses

  • Created

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

      The SID of the Account that created this resource

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

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • name string | null

      The name of this resource

    • sid string | null

      The SID of the Siprec resource.

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

    • status string | null

      The status - one of stopped, in-progress

      Values are in-progress or stopped.

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'ConnectorName=string&Name=string&Parameter1.Name=string&Parameter1.Value=string&Parameter10.Name=string&Parameter10.Value=string&Parameter11.Name=string&Parameter11.Value=string&Parameter12.Name=string&Parameter12.Value=string&Parameter13.Name=string&Parameter13.Value=string&Parameter14.Name=string&Parameter14.Value=string&Parameter15.Name=string&Parameter15.Value=string&Parameter16.Name=string&Parameter16.Value=string&Parameter17.Name=string&Parameter17.Value=string&Parameter18.Name=string&Parameter18.Value=string&Parameter19.Name=string&Parameter19.Value=string&Parameter2.Name=string&Parameter2.Value=string&Parameter20.Name=string&Parameter20.Value=string&Parameter21.Name=string&Parameter21.Value=string&Parameter22.Name=string&Parameter22.Value=string&Parameter23.Name=string&Parameter23.Value=string&Parameter24.Name=string&Parameter24.Value=string&Parameter25.Name=string&Parameter25.Value=string&Parameter26.Name=string&Parameter26.Value=string&Parameter27.Name=string&Parameter27.Value=string&Parameter28.Name=string&Parameter28.Value=string&Parameter29.Name=string&Parameter29.Value=string&Parameter3.Name=string&Parameter3.Value=string&Parameter30.Name=string&Parameter30.Value=string&Parameter31.Name=string&Parameter31.Value=string&Parameter32.Name=string&Parameter32.Value=string&Parameter33.Name=string&Parameter33.Value=string&Parameter34.Name=string&Parameter34.Value=string&Parameter35.Name=string&Parameter35.Value=string&Parameter36.Name=string&Parameter36.Value=string&Parameter37.Name=string&Parameter37.Value=string&Parameter38.Name=string&Parameter38.Value=string&Parameter39.Name=string&Parameter39.Value=string&Parameter4.Name=string&Parameter4.Value=string&Parameter40.Name=string&Parameter40.Value=string&Parameter41.Name=string&Parameter41.Value=string&Parameter42.Name=string&Parameter42.Value=string&Parameter43.Name=string&Parameter43.Value=string&Parameter44.Name=string&Parameter44.Value=string&Parameter45.Name=string&Parameter45.Value=string&Parameter46.Name=string&Parameter46.Value=string&Parameter47.Name=string&Parameter47.Value=string&Parameter48.Name=string&Parameter48.Value=string&Parameter49.Name=string&Parameter49.Value=string&Parameter5.Name=string&Parameter5.Value=string&Parameter50.Name=string&Parameter50.Value=string&Parameter51.Name=string&Parameter51.Value=string&Parameter52.Name=string&Parameter52.Value=string&Parameter53.Name=string&Parameter53.Value=string&Parameter54.Name=string&Parameter54.Value=string&Parameter55.Name=string&Parameter55.Value=string&Parameter56.Name=string&Parameter56.Value=string&Parameter57.Name=string&Parameter57.Value=string&Parameter58.Name=string&Parameter58.Value=string&Parameter59.Name=string&Parameter59.Value=string&Parameter6.Name=string&Parameter6.Value=string&Parameter60.Name=string&Parameter60.Value=string&Parameter61.Name=string&Parameter61.Value=string&Parameter62.Name=string&Parameter62.Value=string&Parameter63.Name=string&Parameter63.Value=string&Parameter64.Name=string&Parameter64.Value=string&Parameter65.Name=string&Parameter65.Value=string&Parameter66.Name=string&Parameter66.Value=string&Parameter67.Name=string&Parameter67.Value=string&Parameter68.Name=string&Parameter68.Value=string&Parameter69.Name=string&Parameter69.Value=string&Parameter7.Name=string&Parameter7.Value=string&Parameter70.Name=string&Parameter70.Value=string&Parameter71.Name=string&Parameter71.Value=string&Parameter72.Name=string&Parameter72.Value=string&Parameter73.Name=string&Parameter73.Value=string&Parameter74.Name=string&Parameter74.Value=string&Parameter75.Name=string&Parameter75.Value=string&Parameter76.Name=string&Parameter76.Value=string&Parameter77.Name=string&Parameter77.Value=string&Parameter78.Name=string&Parameter78.Value=string&Parameter79.Name=string&Parameter79.Value=string&Parameter8.Name=string&Parameter8.Value=string&Parameter80.Name=string&Parameter80.Value=string&Parameter81.Name=string&Parameter81.Value=string&Parameter82.Name=string&Parameter82.Value=string&Parameter83.Name=string&Parameter83.Value=string&Parameter84.Name=string&Parameter84.Value=string&Parameter85.Name=string&Parameter85.Value=string&Parameter86.Name=string&Parameter86.Value=string&Parameter87.Name=string&Parameter87.Value=string&Parameter88.Name=string&Parameter88.Value=string&Parameter89.Name=string&Parameter89.Value=string&Parameter9.Name=string&Parameter9.Value=string&Parameter90.Name=string&Parameter90.Value=string&Parameter91.Name=string&Parameter91.Value=string&Parameter92.Name=string&Parameter92.Value=string&Parameter93.Name=string&Parameter93.Value=string&Parameter94.Name=string&Parameter94.Value=string&Parameter95.Name=string&Parameter95.Value=string&Parameter96.Name=string&Parameter96.Value=string&Parameter97.Name=string&Parameter97.Value=string&Parameter98.Name=string&Parameter98.Value=string&Parameter99.Name=string&Parameter99.Value=string&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD&Track=inbound_track'
Request example
{
  "ConnectorName": "string",
  "Name": "string",
  "Parameter1.Name": "string",
  "Parameter1.Value": "string",
  "Parameter10.Name": "string",
  "Parameter10.Value": "string",
  "Parameter11.Name": "string",
  "Parameter11.Value": "string",
  "Parameter12.Name": "string",
  "Parameter12.Value": "string",
  "Parameter13.Name": "string",
  "Parameter13.Value": "string",
  "Parameter14.Name": "string",
  "Parameter14.Value": "string",
  "Parameter15.Name": "string",
  "Parameter15.Value": "string",
  "Parameter16.Name": "string",
  "Parameter16.Value": "string",
  "Parameter17.Name": "string",
  "Parameter17.Value": "string",
  "Parameter18.Name": "string",
  "Parameter18.Value": "string",
  "Parameter19.Name": "string",
  "Parameter19.Value": "string",
  "Parameter2.Name": "string",
  "Parameter2.Value": "string",
  "Parameter20.Name": "string",
  "Parameter20.Value": "string",
  "Parameter21.Name": "string",
  "Parameter21.Value": "string",
  "Parameter22.Name": "string",
  "Parameter22.Value": "string",
  "Parameter23.Name": "string",
  "Parameter23.Value": "string",
  "Parameter24.Name": "string",
  "Parameter24.Value": "string",
  "Parameter25.Name": "string",
  "Parameter25.Value": "string",
  "Parameter26.Name": "string",
  "Parameter26.Value": "string",
  "Parameter27.Name": "string",
  "Parameter27.Value": "string",
  "Parameter28.Name": "string",
  "Parameter28.Value": "string",
  "Parameter29.Name": "string",
  "Parameter29.Value": "string",
  "Parameter3.Name": "string",
  "Parameter3.Value": "string",
  "Parameter30.Name": "string",
  "Parameter30.Value": "string",
  "Parameter31.Name": "string",
  "Parameter31.Value": "string",
  "Parameter32.Name": "string",
  "Parameter32.Value": "string",
  "Parameter33.Name": "string",
  "Parameter33.Value": "string",
  "Parameter34.Name": "string",
  "Parameter34.Value": "string",
  "Parameter35.Name": "string",
  "Parameter35.Value": "string",
  "Parameter36.Name": "string",
  "Parameter36.Value": "string",
  "Parameter37.Name": "string",
  "Parameter37.Value": "string",
  "Parameter38.Name": "string",
  "Parameter38.Value": "string",
  "Parameter39.Name": "string",
  "Parameter39.Value": "string",
  "Parameter4.Name": "string",
  "Parameter4.Value": "string",
  "Parameter40.Name": "string",
  "Parameter40.Value": "string",
  "Parameter41.Name": "string",
  "Parameter41.Value": "string",
  "Parameter42.Name": "string",
  "Parameter42.Value": "string",
  "Parameter43.Name": "string",
  "Parameter43.Value": "string",
  "Parameter44.Name": "string",
  "Parameter44.Value": "string",
  "Parameter45.Name": "string",
  "Parameter45.Value": "string",
  "Parameter46.Name": "string",
  "Parameter46.Value": "string",
  "Parameter47.Name": "string",
  "Parameter47.Value": "string",
  "Parameter48.Name": "string",
  "Parameter48.Value": "string",
  "Parameter49.Name": "string",
  "Parameter49.Value": "string",
  "Parameter5.Name": "string",
  "Parameter5.Value": "string",
  "Parameter50.Name": "string",
  "Parameter50.Value": "string",
  "Parameter51.Name": "string",
  "Parameter51.Value": "string",
  "Parameter52.Name": "string",
  "Parameter52.Value": "string",
  "Parameter53.Name": "string",
  "Parameter53.Value": "string",
  "Parameter54.Name": "string",
  "Parameter54.Value": "string",
  "Parameter55.Name": "string",
  "Parameter55.Value": "string",
  "Parameter56.Name": "string",
  "Parameter56.Value": "string",
  "Parameter57.Name": "string",
  "Parameter57.Value": "string",
  "Parameter58.Name": "string",
  "Parameter58.Value": "string",
  "Parameter59.Name": "string",
  "Parameter59.Value": "string",
  "Parameter6.Name": "string",
  "Parameter6.Value": "string",
  "Parameter60.Name": "string",
  "Parameter60.Value": "string",
  "Parameter61.Name": "string",
  "Parameter61.Value": "string",
  "Parameter62.Name": "string",
  "Parameter62.Value": "string",
  "Parameter63.Name": "string",
  "Parameter63.Value": "string",
  "Parameter64.Name": "string",
  "Parameter64.Value": "string",
  "Parameter65.Name": "string",
  "Parameter65.Value": "string",
  "Parameter66.Name": "string",
  "Parameter66.Value": "string",
  "Parameter67.Name": "string",
  "Parameter67.Value": "string",
  "Parameter68.Name": "string",
  "Parameter68.Value": "string",
  "Parameter69.Name": "string",
  "Parameter69.Value": "string",
  "Parameter7.Name": "string",
  "Parameter7.Value": "string",
  "Parameter70.Name": "string",
  "Parameter70.Value": "string",
  "Parameter71.Name": "string",
  "Parameter71.Value": "string",
  "Parameter72.Name": "string",
  "Parameter72.Value": "string",
  "Parameter73.Name": "string",
  "Parameter73.Value": "string",
  "Parameter74.Name": "string",
  "Parameter74.Value": "string",
  "Parameter75.Name": "string",
  "Parameter75.Value": "string",
  "Parameter76.Name": "string",
  "Parameter76.Value": "string",
  "Parameter77.Name": "string",
  "Parameter77.Value": "string",
  "Parameter78.Name": "string",
  "Parameter78.Value": "string",
  "Parameter79.Name": "string",
  "Parameter79.Value": "string",
  "Parameter8.Name": "string",
  "Parameter8.Value": "string",
  "Parameter80.Name": "string",
  "Parameter80.Value": "string",
  "Parameter81.Name": "string",
  "Parameter81.Value": "string",
  "Parameter82.Name": "string",
  "Parameter82.Value": "string",
  "Parameter83.Name": "string",
  "Parameter83.Value": "string",
  "Parameter84.Name": "string",
  "Parameter84.Value": "string",
  "Parameter85.Name": "string",
  "Parameter85.Value": "string",
  "Parameter86.Name": "string",
  "Parameter86.Value": "string",
  "Parameter87.Name": "string",
  "Parameter87.Value": "string",
  "Parameter88.Name": "string",
  "Parameter88.Value": "string",
  "Parameter89.Name": "string",
  "Parameter89.Value": "string",
  "Parameter9.Name": "string",
  "Parameter9.Value": "string",
  "Parameter90.Name": "string",
  "Parameter90.Value": "string",
  "Parameter91.Name": "string",
  "Parameter91.Value": "string",
  "Parameter92.Name": "string",
  "Parameter92.Value": "string",
  "Parameter93.Name": "string",
  "Parameter93.Value": "string",
  "Parameter94.Name": "string",
  "Parameter94.Value": "string",
  "Parameter95.Name": "string",
  "Parameter95.Value": "string",
  "Parameter96.Name": "string",
  "Parameter96.Value": "string",
  "Parameter97.Name": "string",
  "Parameter97.Value": "string",
  "Parameter98.Name": "string",
  "Parameter98.Value": "string",
  "Parameter99.Name": "string",
  "Parameter99.Value": "string",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "Track": "inbound_track"
}
Request examples
{
  "ConnectorName": "string",
  "Name": "string",
  "Parameter1.Name": "string",
  "Parameter1.Value": "string",
  "Parameter10.Name": "string",
  "Parameter10.Value": "string",
  "Parameter11.Name": "string",
  "Parameter11.Value": "string",
  "Parameter12.Name": "string",
  "Parameter12.Value": "string",
  "Parameter13.Name": "string",
  "Parameter13.Value": "string",
  "Parameter14.Name": "string",
  "Parameter14.Value": "string",
  "Parameter15.Name": "string",
  "Parameter15.Value": "string",
  "Parameter16.Name": "string",
  "Parameter16.Value": "string",
  "Parameter17.Name": "string",
  "Parameter17.Value": "string",
  "Parameter18.Name": "string",
  "Parameter18.Value": "string",
  "Parameter19.Name": "string",
  "Parameter19.Value": "string",
  "Parameter2.Name": "string",
  "Parameter2.Value": "string",
  "Parameter20.Name": "string",
  "Parameter20.Value": "string",
  "Parameter21.Name": "string",
  "Parameter21.Value": "string",
  "Parameter22.Name": "string",
  "Parameter22.Value": "string",
  "Parameter23.Name": "string",
  "Parameter23.Value": "string",
  "Parameter24.Name": "string",
  "Parameter24.Value": "string",
  "Parameter25.Name": "string",
  "Parameter25.Value": "string",
  "Parameter26.Name": "string",
  "Parameter26.Value": "string",
  "Parameter27.Name": "string",
  "Parameter27.Value": "string",
  "Parameter28.Name": "string",
  "Parameter28.Value": "string",
  "Parameter29.Name": "string",
  "Parameter29.Value": "string",
  "Parameter3.Name": "string",
  "Parameter3.Value": "string",
  "Parameter30.Name": "string",
  "Parameter30.Value": "string",
  "Parameter31.Name": "string",
  "Parameter31.Value": "string",
  "Parameter32.Name": "string",
  "Parameter32.Value": "string",
  "Parameter33.Name": "string",
  "Parameter33.Value": "string",
  "Parameter34.Name": "string",
  "Parameter34.Value": "string",
  "Parameter35.Name": "string",
  "Parameter35.Value": "string",
  "Parameter36.Name": "string",
  "Parameter36.Value": "string",
  "Parameter37.Name": "string",
  "Parameter37.Value": "string",
  "Parameter38.Name": "string",
  "Parameter38.Value": "string",
  "Parameter39.Name": "string",
  "Parameter39.Value": "string",
  "Parameter4.Name": "string",
  "Parameter4.Value": "string",
  "Parameter40.Name": "string",
  "Parameter40.Value": "string",
  "Parameter41.Name": "string",
  "Parameter41.Value": "string",
  "Parameter42.Name": "string",
  "Parameter42.Value": "string",
  "Parameter43.Name": "string",
  "Parameter43.Value": "string",
  "Parameter44.Name": "string",
  "Parameter44.Value": "string",
  "Parameter45.Name": "string",
  "Parameter45.Value": "string",
  "Parameter46.Name": "string",
  "Parameter46.Value": "string",
  "Parameter47.Name": "string",
  "Parameter47.Value": "string",
  "Parameter48.Name": "string",
  "Parameter48.Value": "string",
  "Parameter49.Name": "string",
  "Parameter49.Value": "string",
  "Parameter5.Name": "string",
  "Parameter5.Value": "string",
  "Parameter50.Name": "string",
  "Parameter50.Value": "string",
  "Parameter51.Name": "string",
  "Parameter51.Value": "string",
  "Parameter52.Name": "string",
  "Parameter52.Value": "string",
  "Parameter53.Name": "string",
  "Parameter53.Value": "string",
  "Parameter54.Name": "string",
  "Parameter54.Value": "string",
  "Parameter55.Name": "string",
  "Parameter55.Value": "string",
  "Parameter56.Name": "string",
  "Parameter56.Value": "string",
  "Parameter57.Name": "string",
  "Parameter57.Value": "string",
  "Parameter58.Name": "string",
  "Parameter58.Value": "string",
  "Parameter59.Name": "string",
  "Parameter59.Value": "string",
  "Parameter6.Name": "string",
  "Parameter6.Value": "string",
  "Parameter60.Name": "string",
  "Parameter60.Value": "string",
  "Parameter61.Name": "string",
  "Parameter61.Value": "string",
  "Parameter62.Name": "string",
  "Parameter62.Value": "string",
  "Parameter63.Name": "string",
  "Parameter63.Value": "string",
  "Parameter64.Name": "string",
  "Parameter64.Value": "string",
  "Parameter65.Name": "string",
  "Parameter65.Value": "string",
  "Parameter66.Name": "string",
  "Parameter66.Value": "string",
  "Parameter67.Name": "string",
  "Parameter67.Value": "string",
  "Parameter68.Name": "string",
  "Parameter68.Value": "string",
  "Parameter69.Name": "string",
  "Parameter69.Value": "string",
  "Parameter7.Name": "string",
  "Parameter7.Value": "string",
  "Parameter70.Name": "string",
  "Parameter70.Value": "string",
  "Parameter71.Name": "string",
  "Parameter71.Value": "string",
  "Parameter72.Name": "string",
  "Parameter72.Value": "string",
  "Parameter73.Name": "string",
  "Parameter73.Value": "string",
  "Parameter74.Name": "string",
  "Parameter74.Value": "string",
  "Parameter75.Name": "string",
  "Parameter75.Value": "string",
  "Parameter76.Name": "string",
  "Parameter76.Value": "string",
  "Parameter77.Name": "string",
  "Parameter77.Value": "string",
  "Parameter78.Name": "string",
  "Parameter78.Value": "string",
  "Parameter79.Name": "string",
  "Parameter79.Value": "string",
  "Parameter8.Name": "string",
  "Parameter8.Value": "string",
  "Parameter80.Name": "string",
  "Parameter80.Value": "string",
  "Parameter81.Name": "string",
  "Parameter81.Value": "string",
  "Parameter82.Name": "string",
  "Parameter82.Value": "string",
  "Parameter83.Name": "string",
  "Parameter83.Value": "string",
  "Parameter84.Name": "string",
  "Parameter84.Value": "string",
  "Parameter85.Name": "string",
  "Parameter85.Value": "string",
  "Parameter86.Name": "string",
  "Parameter86.Value": "string",
  "Parameter87.Name": "string",
  "Parameter87.Value": "string",
  "Parameter88.Name": "string",
  "Parameter88.Value": "string",
  "Parameter89.Name": "string",
  "Parameter89.Value": "string",
  "Parameter9.Name": "string",
  "Parameter9.Value": "string",
  "Parameter90.Name": "string",
  "Parameter90.Value": "string",
  "Parameter91.Name": "string",
  "Parameter91.Value": "string",
  "Parameter92.Name": "string",
  "Parameter92.Value": "string",
  "Parameter93.Name": "string",
  "Parameter93.Value": "string",
  "Parameter94.Name": "string",
  "Parameter94.Value": "string",
  "Parameter95.Name": "string",
  "Parameter95.Value": "string",
  "Parameter96.Name": "string",
  "Parameter96.Value": "string",
  "Parameter97.Name": "string",
  "Parameter97.Value": "string",
  "Parameter98.Name": "string",
  "Parameter98.Value": "string",
  "Parameter99.Name": "string",
  "Parameter99.Value": "string",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "Track": "inbound_track"
}
Response examples (201)
{
  "account_sid": "string",
  "call_sid": "string",
  "date_updated": "string",
  "name": "string",
  "sid": "string",
  "status": "in-progress",
  "uri": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "call_sid": "string",
  "date_updated": "string",
  "name": "string",
  "sid": "string",
  "status": "in-progress",
  "uri": "https://example.com"
}

Stop a Siprec using either the SID of the Siprec resource

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json

TODO: Resource-level docs

Stop a Siprec using either the SID of the Siprec resource or the name used when creating the resource

Path parameters

  • AccountSid string Required

    The SID of the Account that created this Siprec resource.

  • CallSid string Required

    The SID of the Call the Siprec resource is associated with.

  • Sid string Required

    The SID of the Siprec resource, or the name used when creating the resource

Body

  • Status string Required

    The status. Must have the value stopped

    Value is stopped.

Responses

  • OK

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

      The SID of the Account that created this resource

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

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • name string | null

      The name of this resource

    • sid string | null

      The SID of the Siprec resource.

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

    • status string | null

      The status - one of stopped, in-progress

      Values are in-progress or stopped.

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Status=stopped'
Request example
{
  "Status": "stopped"
}
Request examples
{
  "Status": "stopped"
}
Response examples (200)
{
  "account_sid": "string",
  "call_sid": "string",
  "date_updated": "string",
  "name": "string",
  "sid": "string",
  "status": "in-progress",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "call_sid": "string",
  "date_updated": "string",
  "name": "string",
  "sid": "string",
  "status": "in-progress",
  "uri": "https://example.com"
}

Create a Stream

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams.json

TODO: Resource-level docs

Create a Stream

Path parameters

  • AccountSid string Required

    The SID of the Account that created this Stream resource.

  • CallSid string Required

    The SID of the Call the Stream resource is associated with.

Body

Responses

  • Created

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

      The SID of the Account that created this resource

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

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • name string | null

      The name of this resource

    • sid string | null

      The SID of the Stream resource.

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

    • status string | null

      The status - one of stopped, in-progress

      Values are in-progress or stopped.

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Name=string&Parameter1.Name=string&Parameter1.Value=string&Parameter10.Name=string&Parameter10.Value=string&Parameter11.Name=string&Parameter11.Value=string&Parameter12.Name=string&Parameter12.Value=string&Parameter13.Name=string&Parameter13.Value=string&Parameter14.Name=string&Parameter14.Value=string&Parameter15.Name=string&Parameter15.Value=string&Parameter16.Name=string&Parameter16.Value=string&Parameter17.Name=string&Parameter17.Value=string&Parameter18.Name=string&Parameter18.Value=string&Parameter19.Name=string&Parameter19.Value=string&Parameter2.Name=string&Parameter2.Value=string&Parameter20.Name=string&Parameter20.Value=string&Parameter21.Name=string&Parameter21.Value=string&Parameter22.Name=string&Parameter22.Value=string&Parameter23.Name=string&Parameter23.Value=string&Parameter24.Name=string&Parameter24.Value=string&Parameter25.Name=string&Parameter25.Value=string&Parameter26.Name=string&Parameter26.Value=string&Parameter27.Name=string&Parameter27.Value=string&Parameter28.Name=string&Parameter28.Value=string&Parameter29.Name=string&Parameter29.Value=string&Parameter3.Name=string&Parameter3.Value=string&Parameter30.Name=string&Parameter30.Value=string&Parameter31.Name=string&Parameter31.Value=string&Parameter32.Name=string&Parameter32.Value=string&Parameter33.Name=string&Parameter33.Value=string&Parameter34.Name=string&Parameter34.Value=string&Parameter35.Name=string&Parameter35.Value=string&Parameter36.Name=string&Parameter36.Value=string&Parameter37.Name=string&Parameter37.Value=string&Parameter38.Name=string&Parameter38.Value=string&Parameter39.Name=string&Parameter39.Value=string&Parameter4.Name=string&Parameter4.Value=string&Parameter40.Name=string&Parameter40.Value=string&Parameter41.Name=string&Parameter41.Value=string&Parameter42.Name=string&Parameter42.Value=string&Parameter43.Name=string&Parameter43.Value=string&Parameter44.Name=string&Parameter44.Value=string&Parameter45.Name=string&Parameter45.Value=string&Parameter46.Name=string&Parameter46.Value=string&Parameter47.Name=string&Parameter47.Value=string&Parameter48.Name=string&Parameter48.Value=string&Parameter49.Name=string&Parameter49.Value=string&Parameter5.Name=string&Parameter5.Value=string&Parameter50.Name=string&Parameter50.Value=string&Parameter51.Name=string&Parameter51.Value=string&Parameter52.Name=string&Parameter52.Value=string&Parameter53.Name=string&Parameter53.Value=string&Parameter54.Name=string&Parameter54.Value=string&Parameter55.Name=string&Parameter55.Value=string&Parameter56.Name=string&Parameter56.Value=string&Parameter57.Name=string&Parameter57.Value=string&Parameter58.Name=string&Parameter58.Value=string&Parameter59.Name=string&Parameter59.Value=string&Parameter6.Name=string&Parameter6.Value=string&Parameter60.Name=string&Parameter60.Value=string&Parameter61.Name=string&Parameter61.Value=string&Parameter62.Name=string&Parameter62.Value=string&Parameter63.Name=string&Parameter63.Value=string&Parameter64.Name=string&Parameter64.Value=string&Parameter65.Name=string&Parameter65.Value=string&Parameter66.Name=string&Parameter66.Value=string&Parameter67.Name=string&Parameter67.Value=string&Parameter68.Name=string&Parameter68.Value=string&Parameter69.Name=string&Parameter69.Value=string&Parameter7.Name=string&Parameter7.Value=string&Parameter70.Name=string&Parameter70.Value=string&Parameter71.Name=string&Parameter71.Value=string&Parameter72.Name=string&Parameter72.Value=string&Parameter73.Name=string&Parameter73.Value=string&Parameter74.Name=string&Parameter74.Value=string&Parameter75.Name=string&Parameter75.Value=string&Parameter76.Name=string&Parameter76.Value=string&Parameter77.Name=string&Parameter77.Value=string&Parameter78.Name=string&Parameter78.Value=string&Parameter79.Name=string&Parameter79.Value=string&Parameter8.Name=string&Parameter8.Value=string&Parameter80.Name=string&Parameter80.Value=string&Parameter81.Name=string&Parameter81.Value=string&Parameter82.Name=string&Parameter82.Value=string&Parameter83.Name=string&Parameter83.Value=string&Parameter84.Name=string&Parameter84.Value=string&Parameter85.Name=string&Parameter85.Value=string&Parameter86.Name=string&Parameter86.Value=string&Parameter87.Name=string&Parameter87.Value=string&Parameter88.Name=string&Parameter88.Value=string&Parameter89.Name=string&Parameter89.Value=string&Parameter9.Name=string&Parameter9.Value=string&Parameter90.Name=string&Parameter90.Value=string&Parameter91.Name=string&Parameter91.Value=string&Parameter92.Name=string&Parameter92.Value=string&Parameter93.Name=string&Parameter93.Value=string&Parameter94.Name=string&Parameter94.Value=string&Parameter95.Name=string&Parameter95.Value=string&Parameter96.Name=string&Parameter96.Value=string&Parameter97.Name=string&Parameter97.Value=string&Parameter98.Name=string&Parameter98.Value=string&Parameter99.Name=string&Parameter99.Value=string&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD&Track=inbound_track&Url=https%3A%2F%2Fexample.com'
Request example
{
  "Name": "string",
  "Parameter1.Name": "string",
  "Parameter1.Value": "string",
  "Parameter10.Name": "string",
  "Parameter10.Value": "string",
  "Parameter11.Name": "string",
  "Parameter11.Value": "string",
  "Parameter12.Name": "string",
  "Parameter12.Value": "string",
  "Parameter13.Name": "string",
  "Parameter13.Value": "string",
  "Parameter14.Name": "string",
  "Parameter14.Value": "string",
  "Parameter15.Name": "string",
  "Parameter15.Value": "string",
  "Parameter16.Name": "string",
  "Parameter16.Value": "string",
  "Parameter17.Name": "string",
  "Parameter17.Value": "string",
  "Parameter18.Name": "string",
  "Parameter18.Value": "string",
  "Parameter19.Name": "string",
  "Parameter19.Value": "string",
  "Parameter2.Name": "string",
  "Parameter2.Value": "string",
  "Parameter20.Name": "string",
  "Parameter20.Value": "string",
  "Parameter21.Name": "string",
  "Parameter21.Value": "string",
  "Parameter22.Name": "string",
  "Parameter22.Value": "string",
  "Parameter23.Name": "string",
  "Parameter23.Value": "string",
  "Parameter24.Name": "string",
  "Parameter24.Value": "string",
  "Parameter25.Name": "string",
  "Parameter25.Value": "string",
  "Parameter26.Name": "string",
  "Parameter26.Value": "string",
  "Parameter27.Name": "string",
  "Parameter27.Value": "string",
  "Parameter28.Name": "string",
  "Parameter28.Value": "string",
  "Parameter29.Name": "string",
  "Parameter29.Value": "string",
  "Parameter3.Name": "string",
  "Parameter3.Value": "string",
  "Parameter30.Name": "string",
  "Parameter30.Value": "string",
  "Parameter31.Name": "string",
  "Parameter31.Value": "string",
  "Parameter32.Name": "string",
  "Parameter32.Value": "string",
  "Parameter33.Name": "string",
  "Parameter33.Value": "string",
  "Parameter34.Name": "string",
  "Parameter34.Value": "string",
  "Parameter35.Name": "string",
  "Parameter35.Value": "string",
  "Parameter36.Name": "string",
  "Parameter36.Value": "string",
  "Parameter37.Name": "string",
  "Parameter37.Value": "string",
  "Parameter38.Name": "string",
  "Parameter38.Value": "string",
  "Parameter39.Name": "string",
  "Parameter39.Value": "string",
  "Parameter4.Name": "string",
  "Parameter4.Value": "string",
  "Parameter40.Name": "string",
  "Parameter40.Value": "string",
  "Parameter41.Name": "string",
  "Parameter41.Value": "string",
  "Parameter42.Name": "string",
  "Parameter42.Value": "string",
  "Parameter43.Name": "string",
  "Parameter43.Value": "string",
  "Parameter44.Name": "string",
  "Parameter44.Value": "string",
  "Parameter45.Name": "string",
  "Parameter45.Value": "string",
  "Parameter46.Name": "string",
  "Parameter46.Value": "string",
  "Parameter47.Name": "string",
  "Parameter47.Value": "string",
  "Parameter48.Name": "string",
  "Parameter48.Value": "string",
  "Parameter49.Name": "string",
  "Parameter49.Value": "string",
  "Parameter5.Name": "string",
  "Parameter5.Value": "string",
  "Parameter50.Name": "string",
  "Parameter50.Value": "string",
  "Parameter51.Name": "string",
  "Parameter51.Value": "string",
  "Parameter52.Name": "string",
  "Parameter52.Value": "string",
  "Parameter53.Name": "string",
  "Parameter53.Value": "string",
  "Parameter54.Name": "string",
  "Parameter54.Value": "string",
  "Parameter55.Name": "string",
  "Parameter55.Value": "string",
  "Parameter56.Name": "string",
  "Parameter56.Value": "string",
  "Parameter57.Name": "string",
  "Parameter57.Value": "string",
  "Parameter58.Name": "string",
  "Parameter58.Value": "string",
  "Parameter59.Name": "string",
  "Parameter59.Value": "string",
  "Parameter6.Name": "string",
  "Parameter6.Value": "string",
  "Parameter60.Name": "string",
  "Parameter60.Value": "string",
  "Parameter61.Name": "string",
  "Parameter61.Value": "string",
  "Parameter62.Name": "string",
  "Parameter62.Value": "string",
  "Parameter63.Name": "string",
  "Parameter63.Value": "string",
  "Parameter64.Name": "string",
  "Parameter64.Value": "string",
  "Parameter65.Name": "string",
  "Parameter65.Value": "string",
  "Parameter66.Name": "string",
  "Parameter66.Value": "string",
  "Parameter67.Name": "string",
  "Parameter67.Value": "string",
  "Parameter68.Name": "string",
  "Parameter68.Value": "string",
  "Parameter69.Name": "string",
  "Parameter69.Value": "string",
  "Parameter7.Name": "string",
  "Parameter7.Value": "string",
  "Parameter70.Name": "string",
  "Parameter70.Value": "string",
  "Parameter71.Name": "string",
  "Parameter71.Value": "string",
  "Parameter72.Name": "string",
  "Parameter72.Value": "string",
  "Parameter73.Name": "string",
  "Parameter73.Value": "string",
  "Parameter74.Name": "string",
  "Parameter74.Value": "string",
  "Parameter75.Name": "string",
  "Parameter75.Value": "string",
  "Parameter76.Name": "string",
  "Parameter76.Value": "string",
  "Parameter77.Name": "string",
  "Parameter77.Value": "string",
  "Parameter78.Name": "string",
  "Parameter78.Value": "string",
  "Parameter79.Name": "string",
  "Parameter79.Value": "string",
  "Parameter8.Name": "string",
  "Parameter8.Value": "string",
  "Parameter80.Name": "string",
  "Parameter80.Value": "string",
  "Parameter81.Name": "string",
  "Parameter81.Value": "string",
  "Parameter82.Name": "string",
  "Parameter82.Value": "string",
  "Parameter83.Name": "string",
  "Parameter83.Value": "string",
  "Parameter84.Name": "string",
  "Parameter84.Value": "string",
  "Parameter85.Name": "string",
  "Parameter85.Value": "string",
  "Parameter86.Name": "string",
  "Parameter86.Value": "string",
  "Parameter87.Name": "string",
  "Parameter87.Value": "string",
  "Parameter88.Name": "string",
  "Parameter88.Value": "string",
  "Parameter89.Name": "string",
  "Parameter89.Value": "string",
  "Parameter9.Name": "string",
  "Parameter9.Value": "string",
  "Parameter90.Name": "string",
  "Parameter90.Value": "string",
  "Parameter91.Name": "string",
  "Parameter91.Value": "string",
  "Parameter92.Name": "string",
  "Parameter92.Value": "string",
  "Parameter93.Name": "string",
  "Parameter93.Value": "string",
  "Parameter94.Name": "string",
  "Parameter94.Value": "string",
  "Parameter95.Name": "string",
  "Parameter95.Value": "string",
  "Parameter96.Name": "string",
  "Parameter96.Value": "string",
  "Parameter97.Name": "string",
  "Parameter97.Value": "string",
  "Parameter98.Name": "string",
  "Parameter98.Value": "string",
  "Parameter99.Name": "string",
  "Parameter99.Value": "string",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "Track": "inbound_track",
  "Url": "https://example.com"
}
Request examples
{
  "Name": "string",
  "Parameter1.Name": "string",
  "Parameter1.Value": "string",
  "Parameter10.Name": "string",
  "Parameter10.Value": "string",
  "Parameter11.Name": "string",
  "Parameter11.Value": "string",
  "Parameter12.Name": "string",
  "Parameter12.Value": "string",
  "Parameter13.Name": "string",
  "Parameter13.Value": "string",
  "Parameter14.Name": "string",
  "Parameter14.Value": "string",
  "Parameter15.Name": "string",
  "Parameter15.Value": "string",
  "Parameter16.Name": "string",
  "Parameter16.Value": "string",
  "Parameter17.Name": "string",
  "Parameter17.Value": "string",
  "Parameter18.Name": "string",
  "Parameter18.Value": "string",
  "Parameter19.Name": "string",
  "Parameter19.Value": "string",
  "Parameter2.Name": "string",
  "Parameter2.Value": "string",
  "Parameter20.Name": "string",
  "Parameter20.Value": "string",
  "Parameter21.Name": "string",
  "Parameter21.Value": "string",
  "Parameter22.Name": "string",
  "Parameter22.Value": "string",
  "Parameter23.Name": "string",
  "Parameter23.Value": "string",
  "Parameter24.Name": "string",
  "Parameter24.Value": "string",
  "Parameter25.Name": "string",
  "Parameter25.Value": "string",
  "Parameter26.Name": "string",
  "Parameter26.Value": "string",
  "Parameter27.Name": "string",
  "Parameter27.Value": "string",
  "Parameter28.Name": "string",
  "Parameter28.Value": "string",
  "Parameter29.Name": "string",
  "Parameter29.Value": "string",
  "Parameter3.Name": "string",
  "Parameter3.Value": "string",
  "Parameter30.Name": "string",
  "Parameter30.Value": "string",
  "Parameter31.Name": "string",
  "Parameter31.Value": "string",
  "Parameter32.Name": "string",
  "Parameter32.Value": "string",
  "Parameter33.Name": "string",
  "Parameter33.Value": "string",
  "Parameter34.Name": "string",
  "Parameter34.Value": "string",
  "Parameter35.Name": "string",
  "Parameter35.Value": "string",
  "Parameter36.Name": "string",
  "Parameter36.Value": "string",
  "Parameter37.Name": "string",
  "Parameter37.Value": "string",
  "Parameter38.Name": "string",
  "Parameter38.Value": "string",
  "Parameter39.Name": "string",
  "Parameter39.Value": "string",
  "Parameter4.Name": "string",
  "Parameter4.Value": "string",
  "Parameter40.Name": "string",
  "Parameter40.Value": "string",
  "Parameter41.Name": "string",
  "Parameter41.Value": "string",
  "Parameter42.Name": "string",
  "Parameter42.Value": "string",
  "Parameter43.Name": "string",
  "Parameter43.Value": "string",
  "Parameter44.Name": "string",
  "Parameter44.Value": "string",
  "Parameter45.Name": "string",
  "Parameter45.Value": "string",
  "Parameter46.Name": "string",
  "Parameter46.Value": "string",
  "Parameter47.Name": "string",
  "Parameter47.Value": "string",
  "Parameter48.Name": "string",
  "Parameter48.Value": "string",
  "Parameter49.Name": "string",
  "Parameter49.Value": "string",
  "Parameter5.Name": "string",
  "Parameter5.Value": "string",
  "Parameter50.Name": "string",
  "Parameter50.Value": "string",
  "Parameter51.Name": "string",
  "Parameter51.Value": "string",
  "Parameter52.Name": "string",
  "Parameter52.Value": "string",
  "Parameter53.Name": "string",
  "Parameter53.Value": "string",
  "Parameter54.Name": "string",
  "Parameter54.Value": "string",
  "Parameter55.Name": "string",
  "Parameter55.Value": "string",
  "Parameter56.Name": "string",
  "Parameter56.Value": "string",
  "Parameter57.Name": "string",
  "Parameter57.Value": "string",
  "Parameter58.Name": "string",
  "Parameter58.Value": "string",
  "Parameter59.Name": "string",
  "Parameter59.Value": "string",
  "Parameter6.Name": "string",
  "Parameter6.Value": "string",
  "Parameter60.Name": "string",
  "Parameter60.Value": "string",
  "Parameter61.Name": "string",
  "Parameter61.Value": "string",
  "Parameter62.Name": "string",
  "Parameter62.Value": "string",
  "Parameter63.Name": "string",
  "Parameter63.Value": "string",
  "Parameter64.Name": "string",
  "Parameter64.Value": "string",
  "Parameter65.Name": "string",
  "Parameter65.Value": "string",
  "Parameter66.Name": "string",
  "Parameter66.Value": "string",
  "Parameter67.Name": "string",
  "Parameter67.Value": "string",
  "Parameter68.Name": "string",
  "Parameter68.Value": "string",
  "Parameter69.Name": "string",
  "Parameter69.Value": "string",
  "Parameter7.Name": "string",
  "Parameter7.Value": "string",
  "Parameter70.Name": "string",
  "Parameter70.Value": "string",
  "Parameter71.Name": "string",
  "Parameter71.Value": "string",
  "Parameter72.Name": "string",
  "Parameter72.Value": "string",
  "Parameter73.Name": "string",
  "Parameter73.Value": "string",
  "Parameter74.Name": "string",
  "Parameter74.Value": "string",
  "Parameter75.Name": "string",
  "Parameter75.Value": "string",
  "Parameter76.Name": "string",
  "Parameter76.Value": "string",
  "Parameter77.Name": "string",
  "Parameter77.Value": "string",
  "Parameter78.Name": "string",
  "Parameter78.Value": "string",
  "Parameter79.Name": "string",
  "Parameter79.Value": "string",
  "Parameter8.Name": "string",
  "Parameter8.Value": "string",
  "Parameter80.Name": "string",
  "Parameter80.Value": "string",
  "Parameter81.Name": "string",
  "Parameter81.Value": "string",
  "Parameter82.Name": "string",
  "Parameter82.Value": "string",
  "Parameter83.Name": "string",
  "Parameter83.Value": "string",
  "Parameter84.Name": "string",
  "Parameter84.Value": "string",
  "Parameter85.Name": "string",
  "Parameter85.Value": "string",
  "Parameter86.Name": "string",
  "Parameter86.Value": "string",
  "Parameter87.Name": "string",
  "Parameter87.Value": "string",
  "Parameter88.Name": "string",
  "Parameter88.Value": "string",
  "Parameter89.Name": "string",
  "Parameter89.Value": "string",
  "Parameter9.Name": "string",
  "Parameter9.Value": "string",
  "Parameter90.Name": "string",
  "Parameter90.Value": "string",
  "Parameter91.Name": "string",
  "Parameter91.Value": "string",
  "Parameter92.Name": "string",
  "Parameter92.Value": "string",
  "Parameter93.Name": "string",
  "Parameter93.Value": "string",
  "Parameter94.Name": "string",
  "Parameter94.Value": "string",
  "Parameter95.Name": "string",
  "Parameter95.Value": "string",
  "Parameter96.Name": "string",
  "Parameter96.Value": "string",
  "Parameter97.Name": "string",
  "Parameter97.Value": "string",
  "Parameter98.Name": "string",
  "Parameter98.Value": "string",
  "Parameter99.Name": "string",
  "Parameter99.Value": "string",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "Track": "inbound_track",
  "Url": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "call_sid": "string",
  "date_updated": "string",
  "name": "string",
  "sid": "string",
  "status": "in-progress",
  "uri": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "call_sid": "string",
  "date_updated": "string",
  "name": "string",
  "sid": "string",
  "status": "in-progress",
  "uri": "https://example.com"
}

Stop a Stream using either the SID of the Stream resource

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json

TODO: Resource-level docs

Stop a Stream using either the SID of the Stream resource or the name used when creating the resource

Path parameters

  • AccountSid string Required

    The SID of the Account that created this Stream resource.

  • CallSid string Required

    The SID of the Call the Stream resource is associated with.

  • Sid string Required

    The SID of the Stream resource, or the name used when creating the resource

Body

  • Status string Required

    The status. Must have the value stopped

    Value is stopped.

Responses

  • OK

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

      The SID of the Account that created this resource

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

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • name string | null

      The name of this resource

    • sid string | null

      The SID of the Stream resource.

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

    • status string | null

      The status - one of stopped, in-progress

      Values are in-progress or stopped.

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Status=stopped'
Request example
{
  "Status": "stopped"
}
Request examples
{
  "Status": "stopped"
}
Response examples (200)
{
  "account_sid": "string",
  "call_sid": "string",
  "date_updated": "string",
  "name": "string",
  "sid": "string",
  "status": "in-progress",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "call_sid": "string",
  "date_updated": "string",
  "name": "string",
  "sid": "string",
  "status": "in-progress",
  "uri": "https://example.com"
}

Fetch the call specified by the provided Call SID

GET /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json

A Call is an object that represents a connection between a telephone and Twilio.

Fetch the call specified by the provided Call SID

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Call resource(s) to fetch.

  • Sid string Required

    The SID of the Call resource to fetch.

Responses

  • OK

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

      The SID of the Account that created this resource

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

    • answered_by string | null

      Either human or machine if this call was initiated with answering machine detection. Empty otherwise.

    • api_version string | null

      The API Version used to create the call

    • caller_name string | null

      The caller's name if this call was an incoming call to a phone number with caller ID Lookup enabled. Otherwise, empty.

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • direction string | null

      A string describing the direction of the call. inbound for inbound calls, outbound-api for calls initiated via the REST API or outbound-dial for calls initiated by a Dial verb.

    • duration string | null

      The length of the call in seconds.

    • end_time string(date-time-rfc-2822) | null

      The end time of the call. Null if the call did not complete successfully.

    • forwarded_from string | null

      The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty.

    • from string | null

      The phone number, SIP address or Client identifier that made this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as name@company.com. Client identifiers are formatted client:name.

    • from_formatted string | null

      The calling phone number, SIP address, or Client identifier formatted for display.

    • group_sid string | null

      The Group SID associated with this call. If no Group is associated with the call, the field is empty.

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

    • parent_call_sid string | null

      The SID that identifies the call that created this leg.

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

    • phone_number_sid string | null

      If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed.

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

    • price string | null

      The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available.

    • price_unit string(currency) | null

      The currency in which Price is measured.

    • queue_time string | null

      The wait time in milliseconds before the call is placed.

    • sid string | null

      The unique string that identifies this resource

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

    • start_time string(date-time-rfc-2822) | null

      The start time of the call. Null if the call has not yet been dialed.

    • status string | null

      The status of this call.

      Values are queued, ringing, in-progress, completed, busy, failed, no-answer, or canceled.

    • subresource_uris object(uri-map) | null

      A list of related subresources identified by their relative URIs

    • to string | null

      The phone number, SIP address or Client identifier that received this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as name@company.com. Client identifiers are formatted client:name.

    • to_formatted string | null

      The phone number, SIP address or Client identifier that received this call. Formatted for display.

    • trunk_sid string | null

      The (optional) unique identifier of the trunk resource that was used for this call.

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

    • uri string(uri) | null

      The URI of this resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "answered_by": "string",
  "api_version": "string",
  "caller_name": "string",
  "date_created": "string",
  "date_updated": "string",
  "direction": "string",
  "duration": "string",
  "end_time": "string",
  "forwarded_from": "string",
  "from": "string",
  "from_formatted": "string",
  "group_sid": "string",
  "parent_call_sid": "string",
  "phone_number_sid": "string",
  "price": "string",
  "price_unit": "string",
  "queue_time": "string",
  "sid": "string",
  "start_time": "string",
  "status": "queued",
  "subresource_uris": {},
  "to": "string",
  "to_formatted": "string",
  "trunk_sid": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "answered_by": "string",
  "api_version": "string",
  "caller_name": "string",
  "date_created": "string",
  "date_updated": "string",
  "direction": "string",
  "duration": "string",
  "end_time": "string",
  "forwarded_from": "string",
  "from": "string",
  "from_formatted": "string",
  "group_sid": "string",
  "parent_call_sid": "string",
  "phone_number_sid": "string",
  "price": "string",
  "price_unit": "string",
  "queue_time": "string",
  "sid": "string",
  "start_time": "string",
  "status": "queued",
  "subresource_uris": {},
  "to": "string",
  "to_formatted": "string",
  "trunk_sid": "string",
  "uri": "https://example.com"
}

Initiates a call redirect

POST /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json

A Call is an object that represents a connection between a telephone and Twilio.

Initiates a call redirect or terminates a call

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Call resource(s) to update.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Call resource to update

Body

  • FallbackMethod string(http-method)

    The HTTP method that we should use to request the fallback_url. Can be: GET or POST and the default is POST. If an application_sid parameter is present, this parameter is ignored.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • FallbackUrl string(uri)

    The URL that we call using the fallback_method if an error occurs when requesting or executing the TwiML at url. If an application_sid parameter is present, this parameter is ignored.

  • Method string(http-method)

    The HTTP method we should use when calling the url. Can be: GET or POST and the default is POST. If an application_sid parameter is present, this parameter is ignored.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • Status string

    The new status of the resource. Can be: canceled or completed. Specifying canceled will attempt to hang up calls that are queued or ringing; however, it will not affect calls already in progress. Specifying completed will attempt to hang up a call even if it's already in progress.

    Values are canceled or completed.

  • StatusCallback string(uri)

    The URL we should call using the status_callback_method to send status information to your application. If no status_callback_event is specified, we will send the completed status. If an application_sid parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted).

  • StatusCallbackMethod string(http-method)

    The HTTP method we should use when requesting the status_callback URL. Can be: GET or POST and the default is POST. If an application_sid parameter is present, this parameter is ignored.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • TimeLimit integer

    The maximum duration of the call in seconds. Constraints depend on account and configuration.

  • Twiml string

    TwiML instructions for the call Twilio will use without fetching Twiml from url. Twiml and url parameters are mutually exclusive

  • Url string(uri)

    The absolute URL that returns the TwiML instructions for the call. We will call this URL using the method when the call connects. For more information, see the Url Parameter section in Making Calls.

Responses

  • OK

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

      The SID of the Account that created this resource

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

    • answered_by string | null

      Either human or machine if this call was initiated with answering machine detection. Empty otherwise.

    • api_version string | null

      The API Version used to create the call

    • caller_name string | null

      The caller's name if this call was an incoming call to a phone number with caller ID Lookup enabled. Otherwise, empty.

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • direction string | null

      A string describing the direction of the call. inbound for inbound calls, outbound-api for calls initiated via the REST API or outbound-dial for calls initiated by a Dial verb.

    • duration string | null

      The length of the call in seconds.

    • end_time string(date-time-rfc-2822) | null

      The end time of the call. Null if the call did not complete successfully.

    • forwarded_from string | null

      The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty.

    • from string | null

      The phone number, SIP address or Client identifier that made this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as name@company.com. Client identifiers are formatted client:name.

    • from_formatted string | null

      The calling phone number, SIP address, or Client identifier formatted for display.

    • group_sid string | null

      The Group SID associated with this call. If no Group is associated with the call, the field is empty.

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

    • parent_call_sid string | null

      The SID that identifies the call that created this leg.

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

    • phone_number_sid string | null

      If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed.

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

    • price string | null

      The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available.

    • price_unit string(currency) | null

      The currency in which Price is measured.

    • queue_time string | null

      The wait time in milliseconds before the call is placed.

    • sid string | null

      The unique string that identifies this resource

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

    • start_time string(date-time-rfc-2822) | null

      The start time of the call. Null if the call has not yet been dialed.

    • status string | null

      The status of this call.

      Values are queued, ringing, in-progress, completed, busy, failed, no-answer, or canceled.

    • subresource_uris object(uri-map) | null

      A list of related subresources identified by their relative URIs

    • to string | null

      The phone number, SIP address or Client identifier that received this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as name@company.com. Client identifiers are formatted client:name.

    • to_formatted string | null

      The phone number, SIP address or Client identifier that received this call. Formatted for display.

    • trunk_sid string | null

      The (optional) unique identifier of the trunk resource that was used for this call.

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

    • uri string(uri) | null

      The URI of this resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'FallbackMethod=HEAD&FallbackUrl=https%3A%2F%2Fexample.com&Method=HEAD&Status=canceled&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD&TimeLimit=42&Twiml=string&Url=https%3A%2F%2Fexample.com'
Request example
{
  "FallbackMethod": "HEAD",
  "FallbackUrl": "https://example.com",
  "Method": "HEAD",
  "Status": "canceled",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "TimeLimit": 42,
  "Twiml": "string",
  "Url": "https://example.com"
}
Request examples
{
  "FallbackMethod": "HEAD",
  "FallbackUrl": "https://example.com",
  "Method": "HEAD",
  "Status": "canceled",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "TimeLimit": 42,
  "Twiml": "string",
  "Url": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "answered_by": "string",
  "api_version": "string",
  "caller_name": "string",
  "date_created": "string",
  "date_updated": "string",
  "direction": "string",
  "duration": "string",
  "end_time": "string",
  "forwarded_from": "string",
  "from": "string",
  "from_formatted": "string",
  "group_sid": "string",
  "parent_call_sid": "string",
  "phone_number_sid": "string",
  "price": "string",
  "price_unit": "string",
  "queue_time": "string",
  "sid": "string",
  "start_time": "string",
  "status": "queued",
  "subresource_uris": {},
  "to": "string",
  "to_formatted": "string",
  "trunk_sid": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "answered_by": "string",
  "api_version": "string",
  "caller_name": "string",
  "date_created": "string",
  "date_updated": "string",
  "direction": "string",
  "duration": "string",
  "end_time": "string",
  "forwarded_from": "string",
  "from": "string",
  "from_formatted": "string",
  "group_sid": "string",
  "parent_call_sid": "string",
  "phone_number_sid": "string",
  "price": "string",
  "price_unit": "string",
  "queue_time": "string",
  "sid": "string",
  "start_time": "string",
  "status": "queued",
  "subresource_uris": {},
  "to": "string",
  "to_formatted": "string",
  "trunk_sid": "string",
  "uri": "https://example.com"
}

Delete a Call record from your account

DELETE /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json

A Call is an object that represents a connection between a telephone and Twilio.

Delete a Call record from your account. Once the record is deleted, it will no longer appear in the API and Account Portal logs.

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Call resource(s) to delete.

  • Sid string Required

    The Twilio-provided Call SID that uniquely identifies the Call resource to delete

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json \
 --user "username:password"

Retrieve a list of conferences belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Conferences.json

Voice call conferences

Retrieve a list of conferences belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Conference resource(s) to read.

Query parameters

  • DateCreated string(date)

    The date_created value, specified as YYYY-MM-DD, of the resources to read. To read conferences that started on or before midnight on a date, use <=YYYY-MM-DD, and to specify conferences that started on or after midnight on a date, use >=YYYY-MM-DD.

  • DateCreated< string(date)

    The date_created value, specified as YYYY-MM-DD, of the resources to read. To read conferences that started on or before midnight on a date, use <=YYYY-MM-DD, and to specify conferences that started on or after midnight on a date, use >=YYYY-MM-DD.

  • DateCreated> string(date)

    The date_created value, specified as YYYY-MM-DD, of the resources to read. To read conferences that started on or before midnight on a date, use <=YYYY-MM-DD, and to specify conferences that started on or after midnight on a date, use >=YYYY-MM-DD.

  • DateUpdated string(date)

    The date_updated value, specified as YYYY-MM-DD, of the resources to read. To read conferences that were last updated on or before midnight on a date, use <=YYYY-MM-DD, and to specify conferences that were last updated on or after midnight on a given date, use >=YYYY-MM-DD.

  • DateUpdated< string(date)

    The date_updated value, specified as YYYY-MM-DD, of the resources to read. To read conferences that were last updated on or before midnight on a date, use <=YYYY-MM-DD, and to specify conferences that were last updated on or after midnight on a given date, use >=YYYY-MM-DD.

  • DateUpdated> string(date)

    The date_updated value, specified as YYYY-MM-DD, of the resources to read. To read conferences that were last updated on or before midnight on a date, use <=YYYY-MM-DD, and to specify conferences that were last updated on or after midnight on a given date, use >=YYYY-MM-DD.

  • The string that identifies the Conference resources to read.

  • Status string

    The status of the resources to read. Can be: init, in-progress, or completed.

    Values are init, in-progress, or completed.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • conferences array[object]
      Hide conferences attributes Show conferences attributes array[object]
      • account_sid string | null

        The SID of the Account that created this resource

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

      • api_version string | null

        The API version used to create this conference

      • The call SID that caused the conference to end

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

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that this resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that this resource was last updated

      • friendly_name string | null

        A string that you assigned to describe this conference room

      • The reason why a conference ended.

        Values are conference-ended-via-api, participant-with-end-conference-on-exit-left, participant-with-end-conference-on-exit-kicked, last-participant-kicked, or last-participant-left.

      • region string | null

        A string that represents the Twilio Region where the conference was mixed

      • sid string | null

        The unique string that identifies this resource

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

      • status string | null

        The status of this conference

        Values are init, in-progress, or completed.

      • subresource_uris object(uri-map) | null

        A list of related resources identified by their relative URIs

      • uri null | string

        The URI of this resource, relative to https://api.twilio.com

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Conferences.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences.json \
 --user "username:password"
Response examples (200)
{
  "conferences": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid_ending_conference": "string",
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "reason_conference_ended": "conference-ended-via-api",
      "region": "string",
      "sid": "string",
      "status": "init",
      "subresource_uris": {},
      "uri": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "conferences": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid_ending_conference": "string",
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "reason_conference_ended": "conference-ended-via-api",
      "region": "string",
      "sid": "string",
      "status": "init",
      "subresource_uris": {},
      "uri": null
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Retrieve a list of participants belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json

Conference participants

Retrieve a list of participants belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Participant resources to read.

  • ConferenceSid string Required

    The SID of the conference with the participants to read.

Query parameters

  • Muted boolean

    Whether to return only participants that are muted. Can be: true or false.

  • Hold boolean

    Whether to return only participants that are on hold. Can be: true or false.

  • Coaching boolean

    Whether to return only participants who are coaching another call. Can be: true or false.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • participants array[object]
      Hide participants attributes Show participants attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • call_sid string | null

        The SID of the Call the resource is associated with

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

      • call_sid_to_coach string | null

        The SID of the participant who is being coached

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

      • coaching boolean | null

        Indicates if the participant changed to coach

      • conference_sid string | null

        The SID of the conference the participant is in

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

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • Whether the conference ends when the participant leaves

      • hold boolean | null

        Whether the participant is on hold

      • label string | null

        The label of this participant

      • muted boolean | null

        Whether the participant is muted

      • Whether the conference starts when the participant joins the conference

      • status string | null

        The status of the participant's call in a session

        Values are queued, connecting, ringing, connected, complete, or failed.

      • uri string | null

        The URI of the resource, relative to https://api.twilio.com

    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "participants": [
    {
      "account_sid": "string",
      "call_sid": "string",
      "call_sid_to_coach": "string",
      "coaching": true,
      "conference_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "end_conference_on_exit": true,
      "hold": true,
      "label": "string",
      "muted": true,
      "start_conference_on_enter": true,
      "status": "queued",
      "uri": "string"
    }
  ],
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "participants": [
    {
      "account_sid": "string",
      "call_sid": "string",
      "call_sid_to_coach": "string",
      "coaching": true,
      "conference_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "end_conference_on_exit": true,
      "hold": true,
      "label": "string",
      "muted": true,
      "start_conference_on_enter": true,
      "status": "queued",
      "uri": "string"
    }
  ],
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Create participant

POST /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json

Conference participants

Path parameters

Body

  • Beep string

    Whether to play a notification beep to the conference when the participant joins. Can be: true, false, onEnter, or onExit. The default value is true.

  • Byoc string

    The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that byoc is only meaningful when to is a phone number; it will otherwise be ignored. (Beta)

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

  • The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta)

  • The SID of the participant who is being coached. The participant being coached is the only participant who can hear the participant who is coaching.

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

  • CallerId string

    The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in E.164 format (e.g., +16175551212). Client identifiers are formatted client:name. If using a phone number, it must be a Twilio number or a Verified outgoing caller id for your account. If the to parameter is a phone number, callerId must also be a phone number. If to is sip address, this value of callerId should be a username portion to be used to populate the From header that is passed to the SIP endpoint.

  • Coaching boolean

    Whether the participant is coaching another call. Can be: true or false. If not present, defaults to false unless call_sid_to_coach is defined. If true, call_sid_to_coach must be defined.

  • Whether to record the conference the participant is joining. Can be: true, false, record-from-start, and do-not-record. The default value is false.

  • The URL we should call using the conference_recording_status_callback_method when the conference recording is available.

  • The conference recording state changes that generate a call to conference_recording_status_callback. Can be: in-progress, completed, failed, and absent. Separate multiple values with a space, ex: 'in-progress completed failed'

  • The HTTP method we should use to call conference_recording_status_callback. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • The URL we should call using the conference_status_callback_method when the conference events in conference_status_callback_event occur. Only the value set by the first participant to join the conference is used. Subsequent conference_status_callback values are ignored.

  • Whether to trim leading and trailing silence from your recorded conference audio files. Can be: trim-silence or do-not-trim and defaults to trim-silence.

  • The conference state changes that should generate a call to conference_status_callback. Can be: start, end, join, leave, mute, hold, modify, speaker, and announcement. Separate multiple values with a space. Defaults to start end.

  • The HTTP method we should use to call conference_status_callback. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • EarlyMedia boolean

    Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: true or false and defaults to true.

  • Whether to end the conference when the participant leaves. Can be: true or false and defaults to false.

  • From string Required

    The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in E.164 format (e.g., +16175551212). Client identifiers are formatted client:name. If using a phone number, it must be a Twilio number or a Verified outgoing caller id for your account. If the to parameter is a phone number, from must also be a phone number. If to is sip address, this value of from should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint.

  • Jitter buffer size for the connecting participant. Twilio will use this setting to apply Jitter Buffer before participant's audio is mixed into the conference. Can be: off, small, medium, and large. Default to large.

  • Label string

    A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant.

  • The maximum number of participants in the conference. Can be a positive integer from 2 to 250. The default value is 250.

  • Muted boolean

    Whether the agent is muted in the conference. Can be true or false and the default is false.

  • Record boolean

    Whether to record the participant and their conferences, including the time between conferences. Can be true or false and the default is false.

  • The recording channels for the final recording. Can be: mono or dual and the default is mono.

  • The URL that we should call using the recording_status_callback_method when the recording status changes.

  • The recording state changes that should generate a call to recording_status_callback. Can be: started, in-progress, paused, resumed, stopped, completed, failed, and absent. Separate multiple values with a space, ex: 'in-progress completed failed'.

  • The HTTP method we should use when we call recording_status_callback. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • The audio track to record for the call. Can be: inbound, outbound or both. The default is both. inbound records the audio that is received by Twilio. outbound records the audio that is sent from Twilio. both records the audio that is received and sent by Twilio.

  • Region string

    The region where we should mix the recorded audio. Can be:us1, ie1, de1, sg1, br1, au1, or jp1.

  • The SIP password for authentication.

  • The SIP username used for authentication.

  • Whether to start the conference when the participant joins, if it has not already started. Can be: true or false and the default is true. If false and the conference has not started, the participant is muted and hears background music until another participant starts the conference.

  • StatusCallback string(uri)

    The URL we should call using the status_callback_method to send status information to your application.

  • StatusCallbackEvent array[string]

    The conference state changes that should generate a call to status_callback. Can be: initiated, ringing, answered, and completed. Separate multiple values with a space. The default value is completed.

  • StatusCallbackMethod string(http-method)

    The HTTP method we should use to call status_callback. Can be: GET and POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • TimeLimit integer

    The maximum duration of the call in seconds. Constraints depend on account and configuration.

  • Timeout integer

    The number of seconds that we should allow the phone to ring before assuming there is no answer. Can be an integer between 5 and 600, inclusive. The default value is 60. We always add a 5-second timeout buffer to outgoing calls, so value of 10 would result in an actual timeout that was closer to 15 seconds.

  • To string Required

    The phone number, SIP address, or Client identifier that received this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as sip:name@company.com. Client identifiers are formatted client:name. Custom parameters may also be specified.

  • WaitMethod string(http-method)

    The HTTP method we should use to call wait_url. Can be GET or POST and the default is POST. When using a static audio file, this should be GET so that we can cache the file.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • WaitUrl string(uri)

    The URL we should call using the wait_method for the music to play while participants are waiting for the conference to start. The default value is the URL of our standard hold music. Learn more about hold music.

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • call_sid_to_coach string | null

      The SID of the participant who is being coached

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

    • coaching boolean | null

      Indicates if the participant changed to coach

    • conference_sid string | null

      The SID of the conference the participant is in

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • Whether the conference ends when the participant leaves

    • hold boolean | null

      Whether the participant is on hold

    • label string | null

      The label of this participant

    • muted boolean | null

      Whether the participant is muted

    • Whether the conference starts when the participant joins the conference

    • status string | null

      The status of the participant's call in a session

      Values are queued, connecting, ringing, connected, complete, or failed.

    • uri null | string

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Beep=string&Byoc=string&CallReason=string&CallSidToCoach=string&CallerId=string&Coaching=true&ConferenceRecord=string&ConferenceRecordingStatusCallback=https%3A%2F%2Fexample.com&ConferenceRecordingStatusCallbackEvent=string&ConferenceRecordingStatusCallbackMethod=HEAD&ConferenceStatusCallback=https%3A%2F%2Fexample.com&ConferenceStatusCallbackEvent=string&ConferenceStatusCallbackMethod=HEAD&ConferenceTrim=string&EarlyMedia=true&EndConferenceOnExit=true&From=string&JitterBufferSize=string&Label=string&MaxParticipants=42&Muted=true&Record=true&RecordingChannels=string&RecordingStatusCallback=https%3A%2F%2Fexample.com&RecordingStatusCallbackEvent=string&RecordingStatusCallbackMethod=HEAD&RecordingTrack=string&Region=string&SipAuthPassword=string&SipAuthUsername=string&StartConferenceOnEnter=true&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackEvent=string&StatusCallbackMethod=HEAD&TimeLimit=42&Timeout=42&To=string&WaitMethod=HEAD&WaitUrl=https%3A%2F%2Fexample.com'
Request example
{
  "Beep": "string",
  "Byoc": "string",
  "CallReason": "string",
  "CallSidToCoach": "string",
  "CallerId": "string",
  "Coaching": true,
  "ConferenceRecord": "string",
  "ConferenceRecordingStatusCallback": "https://example.com",
  "ConferenceRecordingStatusCallbackEvent": [
    "string"
  ],
  "ConferenceRecordingStatusCallbackMethod": "HEAD",
  "ConferenceStatusCallback": "https://example.com",
  "ConferenceStatusCallbackEvent": [
    "string"
  ],
  "ConferenceStatusCallbackMethod": "HEAD",
  "ConferenceTrim": "string",
  "EarlyMedia": true,
  "EndConferenceOnExit": true,
  "From": "string",
  "JitterBufferSize": "string",
  "Label": "string",
  "MaxParticipants": 42,
  "Muted": true,
  "Record": true,
  "RecordingChannels": "string",
  "RecordingStatusCallback": "https://example.com",
  "RecordingStatusCallbackEvent": [
    "string"
  ],
  "RecordingStatusCallbackMethod": "HEAD",
  "RecordingTrack": "string",
  "Region": "string",
  "SipAuthPassword": "string",
  "SipAuthUsername": "string",
  "StartConferenceOnEnter": true,
  "StatusCallback": "https://example.com",
  "StatusCallbackEvent": [
    "string"
  ],
  "StatusCallbackMethod": "HEAD",
  "TimeLimit": 42,
  "Timeout": 42,
  "To": "string",
  "WaitMethod": "HEAD",
  "WaitUrl": "https://example.com"
}
Request examples
{
  "Beep": "string",
  "Byoc": "string",
  "CallReason": "string",
  "CallSidToCoach": "string",
  "CallerId": "string",
  "Coaching": true,
  "ConferenceRecord": "string",
  "ConferenceRecordingStatusCallback": "https://example.com",
  "ConferenceRecordingStatusCallbackEvent": [
    "string"
  ],
  "ConferenceRecordingStatusCallbackMethod": "HEAD",
  "ConferenceStatusCallback": "https://example.com",
  "ConferenceTrim": "string",
  "ConferenceStatusCallbackEvent": [
    "string"
  ],
  "ConferenceStatusCallbackMethod": "HEAD",
  "EarlyMedia": true,
  "EndConferenceOnExit": true,
  "From": "string",
  "JitterBufferSize": "string",
  "Label": "string",
  "MaxParticipants": 42,
  "Muted": true,
  "Record": true,
  "RecordingChannels": "string",
  "RecordingStatusCallback": "https://example.com",
  "RecordingStatusCallbackEvent": [
    "string"
  ],
  "RecordingStatusCallbackMethod": "HEAD",
  "RecordingTrack": "string",
  "Region": "string",
  "SipAuthPassword": "string",
  "SipAuthUsername": "string",
  "StartConferenceOnEnter": true,
  "StatusCallback": "https://example.com",
  "StatusCallbackEvent": [
    "string"
  ],
  "StatusCallbackMethod": "HEAD",
  "TimeLimit": 42,
  "Timeout": 42,
  "To": "string",
  "WaitMethod": "HEAD",
  "WaitUrl": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "call_sid": "string",
  "call_sid_to_coach": "string",
  "coaching": true,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "end_conference_on_exit": true,
  "hold": true,
  "label": "string",
  "muted": true,
  "start_conference_on_enter": true,
  "status": "queued",
  "uri": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "call_sid": "string",
  "call_sid_to_coach": "string",
  "coaching": true,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "end_conference_on_exit": true,
  "hold": true,
  "label": "string",
  "muted": true,
  "start_conference_on_enter": true,
  "status": "queued",
  "uri": null
}

Fetch an instance of a participant

GET /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json

Conference participants

Fetch an instance of a participant

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Participant resource to fetch.

  • ConferenceSid string Required

    The SID of the conference with the participant to fetch.

  • CallSid string Required

    The Call SID or label of the participant to fetch. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • call_sid_to_coach string | null

      The SID of the participant who is being coached

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

    • coaching boolean | null

      Indicates if the participant changed to coach

    • conference_sid string | null

      The SID of the conference the participant is in

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • Whether the conference ends when the participant leaves

    • hold boolean | null

      Whether the participant is on hold

    • label string | null

      The label of this participant

    • muted boolean | null

      Whether the participant is muted

    • Whether the conference starts when the participant joins the conference

    • status string | null

      The status of the participant's call in a session

      Values are queued, connecting, ringing, connected, complete, or failed.

    • uri string | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "call_sid": "string",
  "call_sid_to_coach": "string",
  "coaching": true,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "end_conference_on_exit": true,
  "hold": true,
  "label": "string",
  "muted": true,
  "start_conference_on_enter": true,
  "status": "queued",
  "uri": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "call_sid": "string",
  "call_sid_to_coach": "string",
  "coaching": true,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "end_conference_on_exit": true,
  "hold": true,
  "label": "string",
  "muted": true,
  "start_conference_on_enter": true,
  "status": "queued",
  "uri": "string"
}

Update the properties of the participant

POST /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json

Conference participants

Update the properties of the participant

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Participant resources to update.

  • ConferenceSid string Required

    The SID of the conference with the participant to update.

  • CallSid string Required

    The Call SID or label of the participant to update. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20.

Body

  • AnnounceMethod string(http-method)

    The HTTP method we should use to call announce_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • AnnounceUrl string(uri)

    The URL we call using the announce_method for an announcement to the participant. The URL must return an MP3 file, a WAV file, or a TwiML document that contains <Play> or <Say> commands.

  • BeepOnExit boolean

    Whether to play a notification beep to the conference when the participant exits. Can be: true or false.

  • The SID of the participant who is being coached. The participant being coached is the only participant who can hear the participant who is coaching.

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

  • Coaching boolean

    Whether the participant is coaching another call. Can be: true or false. If not present, defaults to false unless call_sid_to_coach is defined. If true, call_sid_to_coach must be defined.

  • Whether to end the conference when the participant leaves. Can be: true or false and defaults to false.

  • Hold boolean

    Whether the participant should be on hold. Can be: true or false. true puts the participant on hold, and false lets them rejoin the conference.

  • HoldMethod string(http-method)

    The HTTP method we should use to call hold_url. Can be: GET or POST and the default is GET.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • HoldUrl string(uri)

    The URL we call using the hold_method for music that plays when the participant is on hold. The URL may return an MP3 file, a WAV file, or a TwiML document that contains the <Play>, <Say> or <Redirect> commands.

  • Muted boolean

    Whether the participant should be muted. Can be true or false. true will mute the participant, and false will un-mute them. Anything value other than true or false is interpreted as false.

  • WaitMethod string(http-method)

    The HTTP method we should use to call wait_url. Can be GET or POST and the default is POST. When using a static audio file, this should be GET so that we can cache the file.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • WaitUrl string(uri)

    The URL we should call using the wait_method for the music to play while participants are waiting for the conference to start. The default value is the URL of our standard hold music. Learn more about hold music.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • call_sid_to_coach string | null

      The SID of the participant who is being coached

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

    • coaching boolean | null

      Indicates if the participant changed to coach

    • conference_sid string | null

      The SID of the conference the participant is in

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • Whether the conference ends when the participant leaves

    • hold boolean | null

      Whether the participant is on hold

    • label string | null

      The label of this participant

    • muted boolean | null

      Whether the participant is muted

    • Whether the conference starts when the participant joins the conference

    • status string | null

      The status of the participant's call in a session

      Values are queued, connecting, ringing, connected, complete, or failed.

    • uri string | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'AnnounceMethod=HEAD&AnnounceUrl=https%3A%2F%2Fexample.com&BeepOnExit=true&CallSidToCoach=string&Coaching=true&EndConferenceOnExit=true&Hold=true&HoldMethod=HEAD&HoldUrl=https%3A%2F%2Fexample.com&Muted=true&WaitMethod=HEAD&WaitUrl=https%3A%2F%2Fexample.com'
Request example
{
  "AnnounceMethod": "HEAD",
  "AnnounceUrl": "https://example.com",
  "BeepOnExit": true,
  "CallSidToCoach": "string",
  "Coaching": true,
  "EndConferenceOnExit": true,
  "Hold": true,
  "HoldMethod": "HEAD",
  "HoldUrl": "https://example.com",
  "Muted": true,
  "WaitMethod": "HEAD",
  "WaitUrl": "https://example.com"
}
Request examples
{
  "AnnounceMethod": "HEAD",
  "AnnounceUrl": "https://example.com",
  "BeepOnExit": true,
  "CallSidToCoach": "string",
  "Coaching": true,
  "EndConferenceOnExit": true,
  "Hold": true,
  "HoldMethod": "HEAD",
  "HoldUrl": "https://example.com",
  "Muted": true,
  "WaitMethod": "HEAD",
  "WaitUrl": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "call_sid": "string",
  "call_sid_to_coach": "string",
  "coaching": true,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "end_conference_on_exit": true,
  "hold": true,
  "label": "string",
  "muted": true,
  "start_conference_on_enter": true,
  "status": "queued",
  "uri": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "call_sid": "string",
  "call_sid_to_coach": "string",
  "coaching": true,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "end_conference_on_exit": true,
  "hold": true,
  "label": "string",
  "muted": true,
  "start_conference_on_enter": true,
  "status": "queued",
  "uri": "string"
}

Kick a participant from a given conference

DELETE /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json

Conference participants

Kick a participant from a given conference

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Participant resources to delete.

  • ConferenceSid string Required

    The SID of the conference with the participants to delete.

  • CallSid string Required

    The Call SID or label of the participant to delete. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json \
 --user "username:password"

Retrieve a list of recordings belonging to the call used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json

Recordings of conferences

Retrieve a list of recordings belonging to the call used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Conference Recording resources to read.

  • ConferenceSid string Required

    The Conference SID that identifies the conference associated with the recording to read.

Query parameters

  • DateCreated string(date)

    The date_created value, specified as YYYY-MM-DD, of the resources to read. You can also specify inequality: DateCreated<=YYYY-MM-DD will return recordings generated at or before midnight on a given date, and DateCreated>=YYYY-MM-DD returns recordings generated at or after midnight on a date.

  • DateCreated< string(date)

    The date_created value, specified as YYYY-MM-DD, of the resources to read. You can also specify inequality: DateCreated<=YYYY-MM-DD will return recordings generated at or before midnight on a given date, and DateCreated>=YYYY-MM-DD returns recordings generated at or after midnight on a date.

  • DateCreated> string(date)

    The date_created value, specified as YYYY-MM-DD, of the resources to read. You can also specify inequality: DateCreated<=YYYY-MM-DD will return recordings generated at or before midnight on a given date, and DateCreated>=YYYY-MM-DD returns recordings generated at or after midnight on a date.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • recordings array[object]
      Hide recordings attributes Show recordings attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • api_version string | null

        The API version used to create the recording

      • call_sid string | null

        The SID of the Call the resource is associated with

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

      • channels integer | null

        The number of channels in the final recording file as an integer

      • conference_sid string | null

        The Conference SID that identifies the conference associated with the recording

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

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • duration string | null

        The length of the recording in seconds

      • How to decrypt the recording.

      • error_code null | integer

        More information about why the recording is missing, if status is absent.

      • price string | null

        The one-time cost of creating the recording.

      • price_unit string(currency) | null

        The currency used in the price property.

      • sid string | null

        The unique string that identifies the resource

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

      • source string | null

        How the recording was created

        Values are DialVerb, Conference, OutboundAPI, Trunking, RecordVerb, StartCallRecordingAPI, or StartConferenceRecordingAPI.

      • start_time string(date-time-rfc-2822) | null

        The start time of the recording, given in RFC 2822 format

      • status string | null

        The status of the recording

        Values are in-progress, paused, stopped, processing, completed, or absent.

      • uri string | null

        The URI of the resource, relative to https://api.twilio.com

    • start integer
GET /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "recordings": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid": "string",
      "channels": 42,
      "conference_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "duration": "string",
      "error_code": 42,
      "price": "string",
      "price_unit": "string",
      "sid": "string",
      "source": "DialVerb",
      "start_time": "string",
      "status": "in-progress",
      "uri": "string"
    }
  ],
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "recordings": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid": "string",
      "channels": 42,
      "conference_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "duration": "string",
      "error_code": null,
      "price": "string",
      "price_unit": "string",
      "sid": "string",
      "source": "DialVerb",
      "start_time": "string",
      "status": "in-progress",
      "uri": "string"
    }
  ],
  "start": 42
}

Fetch an instance of a recording for a call

GET /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json

Recordings of conferences

Fetch an instance of a recording for a call

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Conference Recording resource to fetch.

  • ConferenceSid string Required

    The Conference SID that identifies the conference associated with the recording to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Conference Recording resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to create the recording

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • channels integer | null

      The number of channels in the final recording file as an integer

    • conference_sid string | null

      The Conference SID that identifies the conference associated with the recording

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • duration string | null

      The length of the recording in seconds

    • How to decrypt the recording.

    • error_code integer | null

      More information about why the recording is missing, if status is absent.

    • price string | null

      The one-time cost of creating the recording.

    • price_unit string(currency) | null

      The currency used in the price property.

    • sid string | null

      The unique string that identifies the resource

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

    • source string | null

      How the recording was created

      Values are DialVerb, Conference, OutboundAPI, Trunking, RecordVerb, StartCallRecordingAPI, or StartConferenceRecordingAPI.

    • start_time string(date-time-rfc-2822) | null

      The start time of the recording, given in RFC 2822 format

    • status string | null

      The status of the recording

      Values are in-progress, paused, stopped, processing, completed, or absent.

    • uri string | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "channels": 42,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "error_code": 42,
  "price": "string",
  "price_unit": "string",
  "sid": "string",
  "source": "DialVerb",
  "start_time": "string",
  "status": "in-progress",
  "uri": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "channels": 42,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "error_code": 42,
  "price": "string",
  "price_unit": "string",
  "sid": "string",
  "source": "DialVerb",
  "start_time": "string",
  "status": "in-progress",
  "uri": "string"
}

Changes the status of the recording to paused

POST /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json

Recordings of conferences

Changes the status of the recording to paused, stopped, or in-progress. Note: To use Twilio.CURRENT, pass it as recording sid.

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Conference Recording resource to update.

  • ConferenceSid string Required

    The Conference SID that identifies the conference associated with the recording to update.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Conference Recording resource to update. Use Twilio.CURRENT to reference the current active recording.

Body

  • Whether to record during a pause. Can be: skip or silence and the default is silence. skip does not record during the pause period, while silence will replace the actual audio of the call with silence during the pause period. This parameter only applies when setting status is set to paused.

  • Status string Required

    The new status of the recording. Can be: stopped, paused, in-progress.

    Values are in-progress, paused, stopped, processing, completed, or absent.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to create the recording

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • channels integer | null

      The number of channels in the final recording file as an integer

    • conference_sid string | null

      The Conference SID that identifies the conference associated with the recording

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • duration string | null

      The length of the recording in seconds

    • How to decrypt the recording.

    • error_code integer | null

      More information about why the recording is missing, if status is absent.

    • price string | null

      The one-time cost of creating the recording.

    • price_unit string(currency) | null

      The currency used in the price property.

    • sid string | null

      The unique string that identifies the resource

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

    • source string | null

      How the recording was created

      Values are DialVerb, Conference, OutboundAPI, Trunking, RecordVerb, StartCallRecordingAPI, or StartConferenceRecordingAPI.

    • start_time string(date-time-rfc-2822) | null

      The start time of the recording, given in RFC 2822 format

    • status string | null

      The status of the recording

      Values are in-progress, paused, stopped, processing, completed, or absent.

    • uri string | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'PauseBehavior=string&Status=in-progress'
Request example
{
  "PauseBehavior": "string",
  "Status": "in-progress"
}
Request examples
{
  "PauseBehavior": "string",
  "Status": "in-progress"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "channels": 42,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "error_code": 42,
  "price": "string",
  "price_unit": "string",
  "sid": "string",
  "source": "DialVerb",
  "start_time": "string",
  "status": "in-progress",
  "uri": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "channels": 42,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "error_code": 42,
  "price": "string",
  "price_unit": "string",
  "sid": "string",
  "source": "DialVerb",
  "start_time": "string",
  "status": "in-progress",
  "uri": "string"
}

Delete a recording from your account

DELETE /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json

Recordings of conferences

Delete a recording from your account

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Conference Recording resources to delete.

  • ConferenceSid string Required

    The Conference SID that identifies the conference associated with the recording to delete.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Conference Recording resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json \
 --user "username:password"

Fetch an instance of a conference

GET /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json

Voice call conferences

Fetch an instance of a conference

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Conference resource(s) to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Conference resource to fetch

Responses

  • OK

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

      The SID of the Account that created this resource

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

    • api_version string | null

      The API version used to create this conference

    • The call SID that caused the conference to end

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • friendly_name string | null

      A string that you assigned to describe this conference room

    • The reason why a conference ended.

      Values are conference-ended-via-api, participant-with-end-conference-on-exit-left, participant-with-end-conference-on-exit-kicked, last-participant-kicked, or last-participant-left.

    • region string | null

      A string that represents the Twilio Region where the conference was mixed

    • sid string | null

      The unique string that identifies this resource

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

    • status string | null

      The status of this conference

      Values are init, in-progress, or completed.

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

    • uri string | null

      The URI of this resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid_ending_conference": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "reason_conference_ended": "conference-ended-via-api",
  "region": "string",
  "sid": "string",
  "status": "init",
  "subresource_uris": {},
  "uri": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid_ending_conference": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "reason_conference_ended": "conference-ended-via-api",
  "region": "string",
  "sid": "string",
  "status": "init",
  "subresource_uris": {},
  "uri": "string"
}

Update conference

POST /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json

Voice call conferences

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Conference resource(s) to update.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Conference resource to update

Body

  • AnnounceMethod string(http-method)

    The HTTP method used to call announce_url. Can be: GET or POST and the default is POST

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • AnnounceUrl string(uri)

    The URL we should call to announce something into the conference. The URL can return an MP3, a WAV, or a TwiML document with <Play> or <Say>.

  • Status string

    The new status of the resource. Can be: Can be: init, in-progress, or completed. Specifying completed will end the conference and hang up all participants

    Value is completed.

Responses

  • OK

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

      The SID of the Account that created this resource

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

    • api_version string | null

      The API version used to create this conference

    • The call SID that caused the conference to end

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • friendly_name string | null

      A string that you assigned to describe this conference room

    • The reason why a conference ended.

      Values are conference-ended-via-api, participant-with-end-conference-on-exit-left, participant-with-end-conference-on-exit-kicked, last-participant-kicked, or last-participant-left.

    • region string | null

      A string that represents the Twilio Region where the conference was mixed

    • sid string | null

      The unique string that identifies this resource

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

    • status string | null

      The status of this conference

      Values are init, in-progress, or completed.

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

    • uri string | null

      The URI of this resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'AnnounceMethod=HEAD&AnnounceUrl=https%3A%2F%2Fexample.com&Status=completed'
Request example
{
  "AnnounceMethod": "HEAD",
  "AnnounceUrl": "https://example.com",
  "Status": "completed"
}
Request examples
{
  "AnnounceMethod": "HEAD",
  "AnnounceUrl": "https://example.com",
  "Status": "completed"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid_ending_conference": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "reason_conference_ended": "conference-ended-via-api",
  "region": "string",
  "sid": "string",
  "status": "init",
  "subresource_uris": {},
  "uri": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid_ending_conference": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "reason_conference_ended": "conference-ended-via-api",
  "region": "string",
  "sid": "string",
  "status": "init",
  "subresource_uris": {},
  "uri": "string"
}

Retrieve a list of connect-apps belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/ConnectApps.json

Twilio Connect apps

Retrieve a list of connect-apps belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the ConnectApp resources to read.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • connect_apps array[object]
      Hide connect_apps attributes Show connect_apps attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • authorize_redirect_url string(uri) | null

        The URL to redirect the user to after authorization

      • company_name string | null

        The company name set for the Connect App

      • deauthorize_callback_method string(http-method) | null

        The HTTP method we use to call deauthorize_callback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • deauthorize_callback_url string(uri) | null

        The URL we call to de-authorize the Connect App

      • description string | null

        The description of the Connect App

      • friendly_name string | null

        The string that you assigned to describe the resource

      • homepage_url string(uri) | null

        The URL users can obtain more information

      • permissions array[string] | null

        The set of permissions that your ConnectApp requests

        Values are get-all or post-all.

      • sid string | null

        The unique string that identifies the resource

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

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/ConnectApps.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/ConnectApps.json \
 --user "username:password"
Response examples (200)
{
  "connect_apps": [
    {
      "account_sid": "string",
      "authorize_redirect_url": "https://example.com",
      "company_name": "string",
      "deauthorize_callback_method": "HEAD",
      "deauthorize_callback_url": "https://example.com",
      "description": "string",
      "friendly_name": "string",
      "homepage_url": "https://example.com",
      "permissions": [
        "get-all"
      ],
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "connect_apps": [
    {
      "account_sid": "string",
      "authorize_redirect_url": "https://example.com",
      "company_name": "string",
      "deauthorize_callback_method": "HEAD",
      "deauthorize_callback_url": "https://example.com",
      "description": "string",
      "friendly_name": "string",
      "homepage_url": "https://example.com",
      "permissions": [
        "get-all"
      ],
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Fetch an instance of a connect-app

GET /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json

Twilio Connect apps

Fetch an instance of a connect-app

Path parameters

  • AccountSid string Required

    The SID of the Account that created the ConnectApp resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • authorize_redirect_url string(uri) | null

      The URL to redirect the user to after authorization

    • company_name string | null

      The company name set for the Connect App

    • deauthorize_callback_method string(http-method) | null

      The HTTP method we use to call deauthorize_callback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • deauthorize_callback_url string(uri) | null

      The URL we call to de-authorize the Connect App

    • description string | null

      The description of the Connect App

    • friendly_name string | null

      The string that you assigned to describe the resource

    • homepage_url string(uri) | null

      The URL users can obtain more information

    • permissions array[string] | null

      The set of permissions that your ConnectApp requests

      Values are get-all or post-all.

    • sid string | null

      The unique string that identifies the resource

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "authorize_redirect_url": "https://example.com",
  "company_name": "string",
  "deauthorize_callback_method": "HEAD",
  "deauthorize_callback_url": "https://example.com",
  "description": "string",
  "friendly_name": "string",
  "homepage_url": "https://example.com",
  "permissions": [
    "get-all"
  ],
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "authorize_redirect_url": "https://example.com",
  "company_name": "string",
  "deauthorize_callback_method": "HEAD",
  "deauthorize_callback_url": "https://example.com",
  "description": "string",
  "friendly_name": "string",
  "homepage_url": "https://example.com",
  "permissions": [
    "get-all"
  ],
  "sid": "string",
  "uri": "https://example.com"
}

Update a connect-app with the specified parameters

POST /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json

Twilio Connect apps

Update a connect-app with the specified parameters

Path parameters

  • AccountSid string Required

    The SID of the Account that created the ConnectApp resources to update.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the ConnectApp resource to update.

Body

  • The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App.

  • The company name to set for the Connect App.

  • DeauthorizeCallbackMethod string(http-method)

    The HTTP method to use when calling deauthorize_callback_url.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • The URL to call using the deauthorize_callback_method to de-authorize the Connect App.

  • A description of the Connect App.

  • A descriptive string that you create to describe the resource. It can be up to 64 characters long.

  • HomepageUrl string(uri)

    A public URL where users can obtain more information about this Connect App.

  • Permissions array[string]

    A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include: get-all and post-all.

    Values are get-all or post-all.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • authorize_redirect_url string(uri) | null

      The URL to redirect the user to after authorization

    • company_name string | null

      The company name set for the Connect App

    • deauthorize_callback_method string(http-method) | null

      The HTTP method we use to call deauthorize_callback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • deauthorize_callback_url string(uri) | null

      The URL we call to de-authorize the Connect App

    • description string | null

      The description of the Connect App

    • friendly_name string | null

      The string that you assigned to describe the resource

    • homepage_url string(uri) | null

      The URL users can obtain more information

    • permissions array[string] | null

      The set of permissions that your ConnectApp requests

      Values are get-all or post-all.

    • sid string | null

      The unique string that identifies the resource

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'AuthorizeRedirectUrl=https%3A%2F%2Fexample.com&CompanyName=string&DeauthorizeCallbackMethod=HEAD&DeauthorizeCallbackUrl=https%3A%2F%2Fexample.com&Description=string&FriendlyName=string&HomepageUrl=https%3A%2F%2Fexample.com&Permissions=get-all'
Request example
{
  "AuthorizeRedirectUrl": "https://example.com",
  "CompanyName": "string",
  "DeauthorizeCallbackMethod": "HEAD",
  "DeauthorizeCallbackUrl": "https://example.com",
  "Description": "string",
  "FriendlyName": "string",
  "HomepageUrl": "https://example.com",
  "Permissions": [
    "get-all"
  ]
}
Request examples
{
  "AuthorizeRedirectUrl": "https://example.com",
  "CompanyName": "string",
  "DeauthorizeCallbackMethod": "HEAD",
  "DeauthorizeCallbackUrl": "https://example.com",
  "Description": "string",
  "FriendlyName": "string",
  "HomepageUrl": "https://example.com",
  "Permissions": [
    "get-all"
  ]
}
Response examples (200)
{
  "account_sid": "string",
  "authorize_redirect_url": "https://example.com",
  "company_name": "string",
  "deauthorize_callback_method": "HEAD",
  "deauthorize_callback_url": "https://example.com",
  "description": "string",
  "friendly_name": "string",
  "homepage_url": "https://example.com",
  "permissions": [
    "get-all"
  ],
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "authorize_redirect_url": "https://example.com",
  "company_name": "string",
  "deauthorize_callback_method": "HEAD",
  "deauthorize_callback_url": "https://example.com",
  "description": "string",
  "friendly_name": "string",
  "homepage_url": "https://example.com",
  "permissions": [
    "get-all"
  ],
  "sid": "string",
  "uri": "https://example.com"
}

Delete an instance of a connect-app

DELETE /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json

Twilio Connect apps

Delete an instance of a connect-app

Path parameters

  • AccountSid string Required

    The SID of the Account that created the ConnectApp resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json \
 --user "username:password"

Retrieve a list of incoming-phone-numbers belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json

Incoming phone numbers on a Twilio account/project

Retrieve a list of incoming-phone-numbers belonging to the account used to make the request.

Path parameters

  • AccountSid string Required

    The SID of the Account that created the IncomingPhoneNumber resources to read.

Query parameters

  • Beta boolean

    Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true.

  • A string that identifies the IncomingPhoneNumber resources to read.

  • PhoneNumber string(phone-number)

    The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit.

  • Origin string

    Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • Hide incoming_phone_numbers attributes Show incoming_phone_numbers attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • Whether the phone number requires an Address registered with Twilio.

        Values are none, any, local, or foreign.

      • address_sid string | null

        The SID of the Address resource associated with the phone number

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

      • api_version string | null

        The API version used to start a new TwiML session

      • beta boolean | null

        Whether the phone number is new to the Twilio platform

      • bundle_sid string | null

        The SID of the Bundle resource associated with number

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

      • capabilities object(phone-number-capabilities) | null

        Indicate if a phone can receive calls or messages

        Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • The emergency address configuration to use for emergency calling

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

      • State of the emergency address configuration for the phone number

        Values are registered, unregistered, pending-registration, registration-failure, pending-unregistration, or unregistration-failure.

      • emergency_status string | null

        Displays if emergency calling is enabled for this number.

        Values are Active or Inactive.

      • friendly_name string | null

        The string that you assigned to describe the resource

      • identity_sid string | null

        The SID of the Identity resource associated with number

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

      • origin string | null

        The phone number's origin. Can be twilio or hosted.

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • sid string | null

        The unique string that identifies the resource

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

      • sms_application_sid string | null

        The SID of the application that handles SMS messages sent to the phone number

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

      • sms_fallback_method string(http-method) | null

        The HTTP method used with sms_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • sms_fallback_url string(uri) | null

        The URL that we call when an error occurs while retrieving or executing the TwiML

      • sms_method string(http-method) | null

        The HTTP method to use with sms_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • sms_url string(uri) | null

        The URL we call when the phone number receives an incoming SMS message

      • status string | null
      • status_callback string(uri) | null

        The URL to send status information to your application

      • status_callback_method string(http-method) | null

        The HTTP method we use to call status_callback

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • trunk_sid string | null

        The SID of the Trunk that handles calls to the phone number

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

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

      • The SID of the application that handles calls to the phone number

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

      • Whether to lookup the caller's name

      • voice_fallback_method string(http-method) | null

        The HTTP method used with voice_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_fallback_url string(uri) | null

        The URL we call when an error occurs in TwiML

      • voice_method string(http-method) | null

        The HTTP method used with the voice_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_receive_mode string | null

        Values are voice or fax.

      • voice_url string(uri) | null

        The URL we call when the phone number receives a call

    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "incoming_phone_numbers": [
    {
      "account_sid": "string",
      "address_requirements": "none",
      "address_sid": "string",
      "api_version": "string",
      "beta": true,
      "bundle_sid": "string",
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "date_created": "string",
      "date_updated": "string",
      "emergency_address_sid": "string",
      "emergency_address_status": "registered",
      "emergency_status": "Active",
      "friendly_name": "string",
      "identity_sid": "string",
      "origin": "string",
      "phone_number": "string",
      "sid": "string",
      "sms_application_sid": "string",
      "sms_fallback_method": "HEAD",
      "sms_fallback_url": "https://example.com",
      "sms_method": "HEAD",
      "sms_url": "https://example.com",
      "status": "string",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "trunk_sid": "string",
      "uri": "https://example.com",
      "voice_application_sid": "string",
      "voice_caller_id_lookup": true,
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_receive_mode": "voice",
      "voice_url": "https://example.com"
    }
  ],
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "incoming_phone_numbers": [
    {
      "account_sid": "string",
      "address_requirements": "none",
      "address_sid": "string",
      "api_version": "string",
      "beta": true,
      "bundle_sid": "string",
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "date_created": "string",
      "date_updated": "string",
      "emergency_address_sid": "string",
      "emergency_address_status": "registered",
      "emergency_status": "Active",
      "friendly_name": "string",
      "identity_sid": "string",
      "origin": "string",
      "phone_number": "string",
      "sid": "string",
      "sms_application_sid": "string",
      "sms_fallback_method": "HEAD",
      "sms_fallback_url": "https://example.com",
      "sms_method": "HEAD",
      "sms_url": "https://example.com",
      "status": "string",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "trunk_sid": "string",
      "uri": "https://example.com",
      "voice_application_sid": "string",
      "voice_caller_id_lookup": true,
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_receive_mode": "voice",
      "voice_url": "https://example.com"
    }
  ],
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Purchase a phone-number for the account

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json

Incoming phone numbers on a Twilio account/project

Purchase a phone-number for the account.

Path parameters

Body

  • The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations.

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

  • The API version to use for incoming calls made to the new phone number. The default is 2010-04-01.

  • AreaCode string

    The desired area code for your new incoming phone number. Can be any three-digit, US or Canada area code. We will provision an available phone number within this area code for you. You must provide an area_code or a phone_number. (US and Canada only).

  • The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations.

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

  • The SID of the emergency address configuration to use for emergency calling from the new phone number.

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

  • The parameter displays if emergency calling is enabled for this number. Active numbers may place emergency calls by dialing valid emergency numbers for the country.

    Values are Active or Inactive.

  • A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the new phone number.

  • The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations.

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

  • PhoneNumber string(phone-number)

    The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234.

  • The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application.

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

  • SmsFallbackMethod string(http-method)

    The HTTP method that we should use to call sms_fallback_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • SmsFallbackUrl string(uri)

    The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url.

  • SmsMethod string(http-method)

    The HTTP method that we should use to call sms_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • SmsUrl string(uri)

    The URL we should call when the new phone number receives an incoming SMS message.

  • StatusCallback string(uri)

    The URL we should call using the status_callback_method to send status information to your application.

  • StatusCallbackMethod string(http-method)

    The HTTP method we should use to call status_callback. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • TrunkSid string

    The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa.

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

  • VoiceFallbackUrl string(uri)

    The URL that we should call when an error occurs retrieving or executing the TwiML requested by url.

  • The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa.

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

  • Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false.

  • VoiceFallbackMethod string(http-method)

    The HTTP method that we should use to call voice_fallback_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • VoiceMethod string(http-method)

    The HTTP method that we should use to call voice_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: fax or voice and defaults to voice.

    Values are voice or fax.

  • VoiceUrl string(uri)

    The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set.

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • Whether the phone number requires an Address registered with Twilio.

      Values are none, any, local, or foreign.

    • address_sid string | null

      The SID of the Address resource associated with the phone number

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

    • api_version string | null

      The API version used to start a new TwiML session

    • beta null | boolean

      Whether the phone number is new to the Twilio platform

    • bundle_sid string | null

      The SID of the Bundle resource associated with number

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

    • capabilities object(phone-number-capabilities) | null

      Indicate if a phone can receive calls or messages

      Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • The emergency address configuration to use for emergency calling

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

    • State of the emergency address configuration for the phone number

      Values are registered, unregistered, pending-registration, registration-failure, pending-unregistration, or unregistration-failure.

    • emergency_status string | null

      Displays if emergency calling is enabled for this number.

      Values are Active or Inactive.

    • friendly_name string | null

      The string that you assigned to describe the resource

    • identity_sid string | null

      The SID of the Identity resource associated with number

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

    • origin string | null

      The phone number's origin. Can be twilio or hosted.

    • phone_number string(phone-number) | null

      The phone number in E.164 format

    • sid string | null

      The unique string that identifies the resource

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

    • sms_application_sid string | null

      The SID of the application that handles SMS messages sent to the phone number

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

    • sms_fallback_method string(http-method) | null

      The HTTP method used with sms_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_fallback_url string(uri) | null

      The URL that we call when an error occurs while retrieving or executing the TwiML

    • sms_method string(http-method) | null

      The HTTP method to use with sms_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_url string(uri) | null

      The URL we call when the phone number receives an incoming SMS message

    • status string | null
    • status_callback string(uri) | null

      The URL to send status information to your application

    • status_callback_method string(http-method) | null

      The HTTP method we use to call status_callback

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • trunk_sid string | null

      The SID of the Trunk that handles calls to the phone number

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • The SID of the application that handles calls to the phone number

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

    • Whether to lookup the caller's name

    • voice_fallback_method string(http-method) | null

      The HTTP method used with voice_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_fallback_url string(uri) | null

      The URL we call when an error occurs in TwiML

    • voice_method string(http-method) | null

      The HTTP method used with the voice_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_receive_mode string | null

      Values are voice or fax.

    • voice_url string(uri) | null

      The URL we call when the phone number receives a call

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'AddressSid=string&ApiVersion=string&AreaCode=string&BundleSid=string&EmergencyAddressSid=string&EmergencyStatus=Active&FriendlyName=string&IdentitySid=string&PhoneNumber=string&SmsApplicationSid=string&SmsFallbackMethod=HEAD&SmsFallbackUrl=https%3A%2F%2Fexample.com&SmsMethod=HEAD&SmsUrl=https%3A%2F%2Fexample.com&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD&TrunkSid=string&VoiceApplicationSid=string&VoiceCallerIdLookup=true&VoiceFallbackMethod=HEAD&VoiceFallbackUrl=https%3A%2F%2Fexample.com&VoiceMethod=HEAD&VoiceReceiveMode=voice&VoiceUrl=https%3A%2F%2Fexample.com'
Request example
{
  "AddressSid": "string",
  "ApiVersion": "string",
  "AreaCode": "string",
  "BundleSid": "string",
  "EmergencyAddressSid": "string",
  "EmergencyStatus": "Active",
  "FriendlyName": "string",
  "IdentitySid": "string",
  "PhoneNumber": "string",
  "SmsApplicationSid": "string",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "TrunkSid": "string",
  "VoiceApplicationSid": "string",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceReceiveMode": "voice",
  "VoiceUrl": "https://example.com"
}
Request examples
{
  "AddressSid": "string",
  "ApiVersion": "string",
  "AreaCode": "string",
  "BundleSid": "string",
  "EmergencyAddressSid": "string",
  "EmergencyStatus": "Active",
  "FriendlyName": "string",
  "IdentitySid": "string",
  "PhoneNumber": "string",
  "SmsApplicationSid": "string",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "TrunkSid": "string",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceApplicationSid": "string",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceMethod": "HEAD",
  "VoiceReceiveMode": "voice",
  "VoiceUrl": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "address_requirements": "none",
  "address_sid": "string",
  "api_version": "string",
  "beta": true,
  "bundle_sid": "string",
  "capabilities": {
    "fax": true,
    "mms": true,
    "sms": true,
    "voice": true
  },
  "date_created": "string",
  "date_updated": "string",
  "emergency_address_sid": "string",
  "emergency_address_status": "registered",
  "emergency_status": "Active",
  "friendly_name": "string",
  "identity_sid": "string",
  "origin": "string",
  "phone_number": "string",
  "sid": "string",
  "sms_application_sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_url": "https://example.com",
  "status": "string",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "trunk_sid": "string",
  "uri": "https://example.com",
  "voice_application_sid": "string",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_receive_mode": "voice",
  "voice_url": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "address_requirements": "none",
  "address_sid": "string",
  "api_version": "string",
  "beta": null,
  "bundle_sid": "string",
  "capabilities": {
    "fax": true,
    "mms": true,
    "sms": true,
    "voice": true
  },
  "date_created": "string",
  "date_updated": "string",
  "emergency_address_sid": "string",
  "emergency_address_status": "registered",
  "emergency_status": "Active",
  "friendly_name": "string",
  "identity_sid": "string",
  "origin": "string",
  "phone_number": "string",
  "sid": "string",
  "sms_application_sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_url": "https://example.com",
  "status": "string",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "trunk_sid": "string",
  "uri": "https://example.com",
  "voice_application_sid": "string",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_receive_mode": "voice",
  "voice_url": "https://example.com"
}

List incoming phone number local

GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json

Incoming local phone numbers on a Twilio account/project

Path parameters

Query parameters

  • Beta boolean

    Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true.

  • A string that identifies the resources to read.

  • PhoneNumber string(phone-number)

    The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit.

  • Origin string

    Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • Hide incoming_phone_numbers attributes Show incoming_phone_numbers attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • Whether the phone number requires an Address registered with Twilio.

        Values are none, any, local, or foreign.

      • address_sid string | null

        The SID of the Address resource associated with the phone number

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

      • api_version string | null

        The API version used to start a new TwiML session

      • beta boolean | null

        Whether the phone number is new to the Twilio platform

      • bundle_sid string | null

        The SID of the Bundle resource associated with number

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

      • capabilities object(phone-number-capabilities) | null

        Indicate if a phone can receive calls or messages

        Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • The emergency address configuration to use for emergency calling

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

      • State of the emergency address configuration for the phone number

        Values are registered, unregistered, pending-registration, registration-failure, pending-unregistration, or unregistration-failure.

      • emergency_status string | null

        Displays if emergency calling is enabled for this number.

        Values are Active or Inactive.

      • friendly_name string | null

        The string that you assigned to describe the resource

      • identity_sid string | null

        The SID of the Identity resource associated with number

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

      • origin string | null

        The phone number's origin. Can be twilio or hosted.

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • sid string | null

        The unique string that identifies the resource

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

      • sms_application_sid string | null

        The SID of the Application resource to handle SMS messages

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

      • sms_fallback_method string(http-method) | null

        The HTTP method used with sms_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • sms_fallback_url string(uri) | null

        The URL that we call when an error occurs while retrieving or executing the TwiML

      • sms_method string(http-method) | null

        The HTTP method to use with sms_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • sms_url string(uri) | null

        The URL we call when the phone number receives an incoming SMS message

      • status string | null
      • status_callback string(uri) | null

        The URL to send status information to your application

      • status_callback_method string(http-method) | null

        The HTTP method we use to call status_callback

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • trunk_sid string | null

        The SID of the Trunk that handles calls to the phone number

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

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

      • The SID of the application that handles calls to the phone number

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

      • Whether to lookup the caller's name

      • voice_fallback_method string(http-method) | null

        The HTTP method used with voice_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_fallback_url string(uri) | null

        The URL we call when an error occurs in TwiML

      • voice_method string(http-method) | null

        The HTTP method used with the voice_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_receive_mode string | null

        Values are voice or fax.

      • voice_url string(uri) | null

        The URL we call when this phone number receives a call

    • page integer
    • next_page_uri string(uri)
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "incoming_phone_numbers": [
    {
      "account_sid": "string",
      "address_requirements": "none",
      "address_sid": "string",
      "api_version": "string",
      "beta": true,
      "bundle_sid": "string",
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "date_created": "string",
      "date_updated": "string",
      "emergency_address_sid": "string",
      "emergency_address_status": "registered",
      "emergency_status": "Active",
      "friendly_name": "string",
      "identity_sid": "string",
      "origin": "string",
      "phone_number": "string",
      "sid": "string",
      "sms_application_sid": "string",
      "sms_fallback_method": "HEAD",
      "sms_fallback_url": "https://example.com",
      "sms_method": "HEAD",
      "sms_url": "https://example.com",
      "status": "string",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "trunk_sid": "string",
      "uri": "https://example.com",
      "voice_application_sid": "string",
      "voice_caller_id_lookup": true,
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_receive_mode": "voice",
      "voice_url": "https://example.com"
    }
  ],
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "incoming_phone_numbers": [
    {
      "account_sid": "string",
      "address_requirements": "none",
      "address_sid": "string",
      "api_version": "string",
      "beta": true,
      "bundle_sid": "string",
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "date_created": "string",
      "date_updated": "string",
      "emergency_address_sid": "string",
      "emergency_address_status": "registered",
      "emergency_status": "Active",
      "friendly_name": "string",
      "identity_sid": "string",
      "origin": "string",
      "phone_number": "string",
      "sid": "string",
      "sms_application_sid": "string",
      "sms_fallback_method": "HEAD",
      "sms_fallback_url": "https://example.com",
      "sms_method": "HEAD",
      "sms_url": "https://example.com",
      "status": "string",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "trunk_sid": "string",
      "uri": "https://example.com",
      "voice_application_sid": "string",
      "voice_caller_id_lookup": true,
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_receive_mode": "voice",
      "voice_url": "https://example.com"
    }
  ],
  "page": 42,
  "next_page_uri": "https://example.com",
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Create incoming phone number local

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json

Incoming local phone numbers on a Twilio account/project

Path parameters

Body

  • The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations.

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

  • The API version to use for incoming calls made to the new phone number. The default is 2010-04-01.

  • The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations.

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

  • The SID of the emergency address configuration to use for emergency calling from the new phone number.

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

  • The parameter displays if emergency calling is enabled for this number. Active numbers may place emergency calls by dialing valid emergency numbers for the country.

    Values are Active or Inactive.

  • A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number.

  • The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations.

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

  • PhoneNumber string(phone-number) Required

    The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234.

  • The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application.

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

  • SmsFallbackMethod string(http-method)

    The HTTP method that we should use to call sms_fallback_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • SmsFallbackUrl string(uri)

    The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url.

  • SmsMethod string(http-method)

    The HTTP method that we should use to call sms_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • SmsUrl string(uri)

    The URL we should call when the new phone number receives an incoming SMS message.

  • StatusCallback string(uri)

    The URL we should call using the status_callback_method to send status information to your application.

  • StatusCallbackMethod string(http-method)

    The HTTP method we should use to call status_callback. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • TrunkSid string

    The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa.

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

  • The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa.

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

  • Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false.

  • VoiceFallbackMethod string(http-method)

    The HTTP method that we should use to call voice_fallback_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • VoiceFallbackUrl string(uri)

    The URL that we should call when an error occurs retrieving or executing the TwiML requested by url.

  • VoiceMethod string(http-method)

    The HTTP method that we should use to call voice_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: fax or voice and defaults to voice.

    Values are voice or fax.

  • VoiceUrl string(uri)

    The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set.

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • Whether the phone number requires an Address registered with Twilio.

      Values are none, any, local, or foreign.

    • address_sid string | null

      The SID of the Address resource associated with the phone number

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

    • api_version string | null

      The API version used to start a new TwiML session

    • beta boolean | null

      Whether the phone number is new to the Twilio platform

    • bundle_sid string | null

      The SID of the Bundle resource associated with number

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

    • capabilities object(phone-number-capabilities) | null

      Indicate if a phone can receive calls or messages

      Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • The emergency address configuration to use for emergency calling

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

    • State of the emergency address configuration for the phone number

      Values are registered, unregistered, pending-registration, registration-failure, pending-unregistration, or unregistration-failure.

    • emergency_status string | null

      Displays if emergency calling is enabled for this number.

      Values are Active or Inactive.

    • friendly_name string | null

      The string that you assigned to describe the resource

    • identity_sid string | null

      The SID of the Identity resource associated with number

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

    • origin string | null

      The phone number's origin. Can be twilio or hosted.

    • phone_number string(phone-number) | null

      The phone number in E.164 format

    • sid string | null

      The unique string that identifies the resource

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

    • sms_application_sid string | null

      The SID of the Application resource to handle SMS messages

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

    • sms_fallback_method string(http-method) | null

      The HTTP method used with sms_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_fallback_url string(uri) | null

      The URL that we call when an error occurs while retrieving or executing the TwiML

    • sms_method string(http-method) | null

      The HTTP method to use with sms_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_url string(uri) | null

      The URL we call when the phone number receives an incoming SMS message

    • status string | null
    • status_callback string(uri) | null

      The URL to send status information to your application

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • status_callback_method string(http-method) | null

      The HTTP method we use to call status_callback

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • trunk_sid string | null

      The SID of the Trunk that handles calls to the phone number

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

    • The SID of the application that handles calls to the phone number

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

    • Whether to lookup the caller's name

    • voice_fallback_method string(http-method) | null

      The HTTP method used with voice_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_fallback_url string(uri) | null

      The URL we call when an error occurs in TwiML

    • voice_method string(http-method) | null

      The HTTP method used with the voice_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_receive_mode string | null

      Values are voice or fax.

    • voice_url string(uri) | null

      The URL we call when this phone number receives a call

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'AddressSid=string&ApiVersion=string&BundleSid=string&EmergencyAddressSid=string&EmergencyStatus=Active&FriendlyName=string&IdentitySid=string&PhoneNumber=string&SmsApplicationSid=string&SmsFallbackMethod=HEAD&SmsFallbackUrl=https%3A%2F%2Fexample.com&SmsMethod=HEAD&SmsUrl=https%3A%2F%2Fexample.com&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD&TrunkSid=string&VoiceApplicationSid=string&VoiceCallerIdLookup=true&VoiceFallbackMethod=HEAD&VoiceFallbackUrl=https%3A%2F%2Fexample.com&VoiceMethod=HEAD&VoiceReceiveMode=voice&VoiceUrl=https%3A%2F%2Fexample.com'
Request example
{
  "AddressSid": "string",
  "ApiVersion": "string",
  "BundleSid": "string",
  "EmergencyAddressSid": "string",
  "EmergencyStatus": "Active",
  "FriendlyName": "string",
  "IdentitySid": "string",
  "PhoneNumber": "string",
  "SmsApplicationSid": "string",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "TrunkSid": "string",
  "VoiceApplicationSid": "string",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceReceiveMode": "voice",
  "VoiceUrl": "https://example.com"
}
Request examples
{
  "AddressSid": "string",
  "ApiVersion": "string",
  "BundleSid": "string",
  "EmergencyAddressSid": "string",
  "EmergencyStatus": "Active",
  "FriendlyName": "string",
  "IdentitySid": "string",
  "PhoneNumber": "string",
  "SmsApplicationSid": "string",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "TrunkSid": "string",
  "VoiceApplicationSid": "string",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceReceiveMode": "voice",
  "VoiceUrl": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "address_requirements": "none",
  "address_sid": "string",
  "api_version": "string",
  "beta": true,
  "bundle_sid": "string",
  "capabilities": {
    "fax": true,
    "mms": true,
    "sms": true,
    "voice": true
  },
  "date_created": "string",
  "date_updated": "string",
  "emergency_address_sid": "string",
  "emergency_address_status": "registered",
  "emergency_status": "Active",
  "friendly_name": "string",
  "identity_sid": "string",
  "origin": "string",
  "phone_number": "string",
  "sid": "string",
  "sms_application_sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_url": "https://example.com",
  "status": "string",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "trunk_sid": "string",
  "uri": "https://example.com",
  "voice_application_sid": "string",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_receive_mode": "voice",
  "voice_url": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "address_requirements": "none",
  "address_sid": "string",
  "api_version": "string",
  "beta": true,
  "bundle_sid": "string",
  "capabilities": {
    "fax": true,
    "mms": true,
    "sms": true,
    "voice": true
  },
  "date_created": "string",
  "date_updated": "string",
  "emergency_address_sid": "string",
  "emergency_address_status": "registered",
  "emergency_status": "Active",
  "friendly_name": "string",
  "identity_sid": "string",
  "origin": "string",
  "phone_number": "string",
  "sid": "string",
  "sms_application_sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_url": "https://example.com",
  "status": "string",
  "status_callback": "https://example.com",
  "uri": "https://example.com",
  "status_callback_method": "HEAD",
  "trunk_sid": "string",
  "voice_application_sid": "string",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_receive_mode": "voice",
  "voice_url": "https://example.com"
}

List incoming phone number mobile

GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json

Incoming mobile phone numbers on a Twilio account/project

Path parameters

Query parameters

  • Beta boolean

    Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true.

  • A string that identifies the resources to read.

  • PhoneNumber string(phone-number)

    The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit.

  • Origin string

    Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • Hide incoming_phone_numbers attributes Show incoming_phone_numbers attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • Whether the phone number requires an Address registered with Twilio.

        Values are none, any, local, or foreign.

      • address_sid string | null

        The SID of the Address resource associated with the phone number

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

      • api_version string | null

        The API version used to start a new TwiML session

      • beta boolean | null

        Whether the phone number is new to the Twilio platform

      • bundle_sid string | null

        The SID of the Bundle resource associated with number

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

      • capabilities object(phone-number-capabilities) | null

        Indicate if a phone can receive calls or messages

        Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • The emergency address configuration to use for emergency calling

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

      • State of the emergency address configuration for the phone number

        Values are registered, unregistered, pending-registration, registration-failure, pending-unregistration, or unregistration-failure.

      • emergency_status string | null

        Displays if emergency calling is enabled for this number.

        Values are Active or Inactive.

      • friendly_name string | null

        The string that you assigned to describe the resource

      • identity_sid string | null

        The SID of the Identity resource associated with number

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

      • origin string | null

        The phone number's origin. Can be twilio or hosted.

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • sid string | null

        The unique string that identifies the resource

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

      • sms_application_sid string | null

        The SID of the application that handles SMS messages sent to the phone number

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

      • sms_fallback_method string(http-method) | null

        The HTTP method used with sms_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • sms_fallback_url string(uri) | null

        The URL that we call when an error occurs while retrieving or executing the TwiML

      • sms_method string(http-method) | null

        The HTTP method to use with sms_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • sms_url string(uri) | null

        The URL we call when the phone number receives an incoming SMS message

      • status string | null
      • status_callback string(uri) | null

        The URL to send status information to your application

      • status_callback_method string(http-method) | null

        The HTTP method we use to call status_callback

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • trunk_sid string | null

        The SID of the Trunk that handles calls to the phone number

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

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

      • The SID of the application that handles calls to the phone number

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

      • Whether to lookup the caller's name

      • voice_fallback_method string(http-method) | null

        The HTTP method used with voice_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_fallback_url string(uri) | null

        The URL we call when an error occurs in TwiML

      • voice_method string(http-method) | null

        The HTTP method used with the voice_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_receive_mode string | null

        Values are voice or fax.

      • voice_url string(uri) | null

        The URL we call when the phone number receives a call

    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "incoming_phone_numbers": [
    {
      "account_sid": "string",
      "address_requirements": "none",
      "address_sid": "string",
      "api_version": "string",
      "beta": true,
      "bundle_sid": "string",
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "date_created": "string",
      "date_updated": "string",
      "emergency_address_sid": "string",
      "emergency_address_status": "registered",
      "emergency_status": "Active",
      "friendly_name": "string",
      "identity_sid": "string",
      "origin": "string",
      "phone_number": "string",
      "sid": "string",
      "sms_application_sid": "string",
      "sms_fallback_method": "HEAD",
      "sms_fallback_url": "https://example.com",
      "sms_method": "HEAD",
      "sms_url": "https://example.com",
      "status": "string",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "trunk_sid": "string",
      "uri": "https://example.com",
      "voice_application_sid": "string",
      "voice_caller_id_lookup": true,
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_receive_mode": "voice",
      "voice_url": "https://example.com"
    }
  ],
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "incoming_phone_numbers": [
    {
      "account_sid": "string",
      "address_requirements": "none",
      "address_sid": "string",
      "api_version": "string",
      "beta": true,
      "bundle_sid": "string",
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "date_created": "string",
      "date_updated": "string",
      "emergency_address_sid": "string",
      "emergency_address_status": "registered",
      "emergency_status": "Active",
      "friendly_name": "string",
      "identity_sid": "string",
      "origin": "string",
      "phone_number": "string",
      "sid": "string",
      "sms_application_sid": "string",
      "sms_fallback_method": "HEAD",
      "sms_fallback_url": "https://example.com",
      "sms_method": "HEAD",
      "sms_url": "https://example.com",
      "status": "string",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "trunk_sid": "string",
      "uri": "https://example.com",
      "voice_application_sid": "string",
      "voice_caller_id_lookup": true,
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_receive_mode": "voice",
      "voice_url": "https://example.com"
    }
  ],
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Create incoming phone number mobile

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json

Incoming mobile phone numbers on a Twilio account/project

Path parameters

Body

  • The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations.

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

  • The API version to use for incoming calls made to the new phone number. The default is 2010-04-01.

  • The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations.

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

  • The SID of the emergency address configuration to use for emergency calling from the new phone number.

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

  • The parameter displays if emergency calling is enabled for this number. Active numbers may place emergency calls by dialing valid emergency numbers for the country.

    Values are Active or Inactive.

  • A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, the is a formatted version of the phone number.

  • The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations.

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

  • PhoneNumber string(phone-number) Required

    The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234.

  • The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those of the application.

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

  • SmsFallbackMethod string(http-method)

    The HTTP method that we should use to call sms_fallback_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • SmsFallbackUrl string(uri)

    The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url.

  • SmsMethod string(http-method)

    The HTTP method that we should use to call sms_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • SmsUrl string(uri)

    The URL we should call when the new phone number receives an incoming SMS message.

  • StatusCallback string(uri)

    The URL we should call using the status_callback_method to send status information to your application.

  • StatusCallbackMethod string(http-method)

    The HTTP method we should use to call status_callback. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • TrunkSid string

    The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa.

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

  • The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa.

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

  • Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false.

  • VoiceFallbackMethod string(http-method)

    The HTTP method that we should use to call voice_fallback_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • VoiceFallbackUrl string(uri)

    The URL that we should call when an error occurs retrieving or executing the TwiML requested by url.

  • VoiceMethod string(http-method)

    The HTTP method that we should use to call voice_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: fax or voice and defaults to voice.

    Values are voice or fax.

  • VoiceUrl string(uri)

    The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set.

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • Whether the phone number requires an Address registered with Twilio.

      Values are none, any, local, or foreign.

    • address_sid string | null

      The SID of the Address resource associated with the phone number

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

    • api_version string | null

      The API version used to start a new TwiML session

    • beta boolean | null

      Whether the phone number is new to the Twilio platform

    • bundle_sid string | null

      The SID of the Bundle resource associated with number

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

    • capabilities object(phone-number-capabilities) | null

      Indicate if a phone can receive calls or messages

      Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • The emergency address configuration to use for emergency calling

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

    • State of the emergency address configuration for the phone number

      Values are registered, unregistered, pending-registration, registration-failure, pending-unregistration, or unregistration-failure.

    • emergency_status string | null

      Displays if emergency calling is enabled for this number.

      Values are Active or Inactive.

    • friendly_name string | null

      The string that you assigned to describe the resource

    • identity_sid string | null

      The SID of the Identity resource associated with number

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

    • origin string | null

      The phone number's origin. Can be twilio or hosted.

    • phone_number string(phone-number) | null

      The phone number in E.164 format

    • sid string | null

      The unique string that identifies the resource

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

    • sms_application_sid string | null

      The SID of the application that handles SMS messages sent to the phone number

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

    • sms_fallback_method string(http-method) | null

      The HTTP method used with sms_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_fallback_url string(uri) | null

      The URL that we call when an error occurs while retrieving or executing the TwiML

    • sms_method string(http-method) | null

      The HTTP method to use with sms_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_url string(uri) | null

      The URL we call when the phone number receives an incoming SMS message

    • status string | null
    • status_callback string(uri) | null

      The URL to send status information to your application

    • status_callback_method string(http-method) | null

      The HTTP method we use to call status_callback

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • trunk_sid string | null

      The SID of the Trunk that handles calls to the phone number

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • The SID of the application that handles calls to the phone number

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

    • voice_receive_mode string | null

      Values are voice or fax.

    • Whether to lookup the caller's name

    • voice_fallback_method string(http-method) | null

      The HTTP method used with voice_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_fallback_url string(uri) | null

      The URL we call when an error occurs in TwiML

    • voice_method string(http-method) | null

      The HTTP method used with the voice_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_url string(uri) | null

      The URL we call when the phone number receives a call

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'AddressSid=string&ApiVersion=string&BundleSid=string&EmergencyAddressSid=string&EmergencyStatus=Active&FriendlyName=string&IdentitySid=string&PhoneNumber=string&SmsApplicationSid=string&SmsFallbackMethod=HEAD&SmsFallbackUrl=https%3A%2F%2Fexample.com&SmsMethod=HEAD&SmsUrl=https%3A%2F%2Fexample.com&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD&TrunkSid=string&VoiceApplicationSid=string&VoiceCallerIdLookup=true&VoiceFallbackMethod=HEAD&VoiceFallbackUrl=https%3A%2F%2Fexample.com&VoiceMethod=HEAD&VoiceReceiveMode=voice&VoiceUrl=https%3A%2F%2Fexample.com'
Request example
{
  "AddressSid": "string",
  "ApiVersion": "string",
  "BundleSid": "string",
  "EmergencyAddressSid": "string",
  "EmergencyStatus": "Active",
  "FriendlyName": "string",
  "IdentitySid": "string",
  "PhoneNumber": "string",
  "SmsApplicationSid": "string",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "TrunkSid": "string",
  "VoiceApplicationSid": "string",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceReceiveMode": "voice",
  "VoiceUrl": "https://example.com"
}
Request examples
{
  "AddressSid": "string",
  "ApiVersion": "string",
  "BundleSid": "string",
  "EmergencyAddressSid": "string",
  "EmergencyStatus": "Active",
  "FriendlyName": "string",
  "IdentitySid": "string",
  "PhoneNumber": "string",
  "SmsApplicationSid": "string",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "TrunkSid": "string",
  "VoiceApplicationSid": "string",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceReceiveMode": "voice",
  "VoiceUrl": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "address_requirements": "none",
  "address_sid": "string",
  "api_version": "string",
  "beta": true,
  "bundle_sid": "string",
  "capabilities": {
    "fax": true,
    "mms": true,
    "sms": true,
    "voice": true
  },
  "date_created": "string",
  "date_updated": "string",
  "emergency_address_sid": "string",
  "emergency_address_status": "registered",
  "emergency_status": "Active",
  "friendly_name": "string",
  "identity_sid": "string",
  "origin": "string",
  "phone_number": "string",
  "sid": "string",
  "sms_application_sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_url": "https://example.com",
  "status": "string",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "trunk_sid": "string",
  "uri": "https://example.com",
  "voice_application_sid": "string",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_receive_mode": "voice",
  "voice_url": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "address_requirements": "none",
  "address_sid": "string",
  "api_version": "string",
  "beta": true,
  "bundle_sid": "string",
  "capabilities": {
    "fax": true,
    "mms": true,
    "sms": true,
    "voice": true
  },
  "date_created": "string",
  "date_updated": "string",
  "emergency_address_sid": "string",
  "emergency_address_status": "registered",
  "emergency_status": "Active",
  "friendly_name": "string",
  "identity_sid": "string",
  "origin": "string",
  "phone_number": "string",
  "sid": "string",
  "sms_application_sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_url": "https://example.com",
  "status": "string",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "trunk_sid": "string",
  "uri": "https://example.com",
  "voice_application_sid": "string",
  "voice_receive_mode": "voice",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_url": "https://example.com"
}

List incoming phone number toll free

GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json

Incoming toll free phone numbers on a Twilio account/project

Path parameters

Query parameters

  • Beta boolean

    Whether to include phone numbers new to the Twilio platform. Can be: true or false and the default is true.

  • A string that identifies the resources to read.

  • PhoneNumber string(phone-number)

    The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit.

  • Origin string

    Whether to include phone numbers based on their origin. Can be: twilio or hosted. By default, phone numbers of all origin are included.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • Hide incoming_phone_numbers attributes Show incoming_phone_numbers attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • Whether the phone number requires an Address registered with Twilio.

        Values are none, any, local, or foreign.

      • address_sid string | null

        The SID of the Address resource associated with the phone number

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

      • api_version string | null

        The API version used to start a new TwiML session

      • beta boolean | null

        Whether the phone number is new to the Twilio platform

      • bundle_sid string | null

        The SID of the Bundle resource associated with number

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

      • capabilities object(phone-number-capabilities) | null

        Indicate if a phone can receive calls or messages

        Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • The emergency address configuration to use for emergency calling

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

      • State of the emergency address configuration for the phone number

        Values are registered, unregistered, pending-registration, registration-failure, pending-unregistration, or unregistration-failure.

      • emergency_status string | null

        Displays if emergency calling is enabled for this number.

        Values are Active or Inactive.

      • friendly_name string | null

        The string that you assigned to describe the resource

      • identity_sid string | null

        The SID of the Identity resource associated with number

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

      • origin string | null

        The phone number's origin. Can be twilio or hosted.

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • sid string | null

        The unique string that identifies the resource

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

      • sms_application_sid string | null

        The SID of the application that handles SMS messages sent to the phone number

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

      • sms_fallback_method string(http-method) | null

        The HTTP method used with sms_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • sms_fallback_url string(uri) | null

        The URL that we call when an error occurs while retrieving or executing the TwiML

      • sms_method string(http-method) | null

        The HTTP method to use with sms_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • sms_url string(uri) | null

        The URL we call when the phone number receives an incoming SMS message

      • status string | null
      • status_callback string(uri) | null

        The URL to send status information to your application

      • status_callback_method string(http-method) | null

        The HTTP method we use to call status_callback

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • trunk_sid string | null

        The SID of the Trunk that handles calls to the phone number

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

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

      • The SID of the application that handles calls to the phone number

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

      • Whether to lookup the caller's name

      • voice_fallback_method string(http-method) | null

        The HTTP method used with voice_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_fallback_url string(uri) | null

        The URL we call when an error occurs in TwiML

      • voice_method string(http-method) | null

        The HTTP method used with the voice_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_receive_mode string | null

        Values are voice or fax.

      • voice_url string(uri) | null

        The URL we call when the phone number receives a call

    • start integer
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "incoming_phone_numbers": [
    {
      "account_sid": "string",
      "address_requirements": "none",
      "address_sid": "string",
      "api_version": "string",
      "beta": true,
      "bundle_sid": "string",
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "date_created": "string",
      "date_updated": "string",
      "emergency_address_sid": "string",
      "emergency_address_status": "registered",
      "emergency_status": "Active",
      "friendly_name": "string",
      "identity_sid": "string",
      "origin": "string",
      "phone_number": "string",
      "sid": "string",
      "sms_application_sid": "string",
      "sms_fallback_method": "HEAD",
      "sms_fallback_url": "https://example.com",
      "sms_method": "HEAD",
      "sms_url": "https://example.com",
      "status": "string",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "trunk_sid": "string",
      "uri": "https://example.com",
      "voice_application_sid": "string",
      "voice_caller_id_lookup": true,
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_receive_mode": "voice",
      "voice_url": "https://example.com"
    }
  ],
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "incoming_phone_numbers": [
    {
      "account_sid": "string",
      "address_requirements": "none",
      "address_sid": "string",
      "api_version": "string",
      "beta": true,
      "bundle_sid": "string",
      "capabilities": {
        "fax": true,
        "mms": true,
        "sms": true,
        "voice": true
      },
      "date_created": "string",
      "date_updated": "string",
      "emergency_address_sid": "string",
      "emergency_address_status": "registered",
      "emergency_status": "Active",
      "friendly_name": "string",
      "identity_sid": "string",
      "origin": "string",
      "phone_number": "string",
      "sid": "string",
      "sms_application_sid": "string",
      "sms_fallback_method": "HEAD",
      "sms_fallback_url": "https://example.com",
      "sms_method": "HEAD",
      "sms_url": "https://example.com",
      "status": "string",
      "status_callback": "https://example.com",
      "status_callback_method": "HEAD",
      "trunk_sid": "string",
      "uri": "https://example.com",
      "voice_application_sid": "string",
      "voice_caller_id_lookup": true,
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_receive_mode": "voice",
      "voice_url": "https://example.com"
    }
  ],
  "start": 42,
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "uri": "https://example.com"
}

Create incoming phone number toll free

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json

Incoming toll free phone numbers on a Twilio account/project

Path parameters

Body

  • The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations.

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

  • The API version to use for incoming calls made to the new phone number. The default is 2010-04-01.

  • The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations.

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

  • The SID of the emergency address configuration to use for emergency calling from the new phone number.

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

  • The parameter displays if emergency calling is enabled for this number. Active numbers may place emergency calls by dialing valid emergency numbers for the country.

    Values are Active or Inactive.

  • A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number.

  • The SID of the Identity resource that we should associate with the new phone number. Some regions require an Identity to meet local regulations.

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

  • PhoneNumber string(phone-number) Required

    The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234.

  • The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid is present, we ignore all sms_*_url values and use those of the application.

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

  • SmsFallbackMethod string(http-method)

    The HTTP method that we should use to call sms_fallback_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • SmsFallbackUrl string(uri)

    The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url.

  • SmsMethod string(http-method)

    The HTTP method that we should use to call sms_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • SmsUrl string(uri)

    The URL we should call when the new phone number receives an incoming SMS message.

  • StatusCallback string(uri)

    The URL we should call using the status_callback_method to send status information to your application.

  • StatusCallbackMethod string(http-method)

    The HTTP method we should use to call status_callback. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • TrunkSid string

    The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa.

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

  • The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid is present, we ignore all of the voice urls and use those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa.

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

  • Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false.

  • VoiceFallbackMethod string(http-method)

    The HTTP method that we should use to call voice_fallback_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • VoiceFallbackUrl string(uri)

    The URL that we should call when an error occurs retrieving or executing the TwiML requested by url.

  • VoiceMethod string(http-method)

    The HTTP method that we should use to call voice_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: fax or voice and defaults to voice.

    Values are voice or fax.

  • VoiceUrl string(uri)

    The URL that we should call to answer a call to the new phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set.

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • Whether the phone number requires an Address registered with Twilio.

      Values are none, any, local, or foreign.

    • address_sid string | null

      The SID of the Address resource associated with the phone number

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

    • api_version string | null

      The API version used to start a new TwiML session

    • beta boolean | null

      Whether the phone number is new to the Twilio platform

    • bundle_sid string | null

      The SID of the Bundle resource associated with number

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

    • capabilities object(phone-number-capabilities) | null

      Indicate if a phone can receive calls or messages

      Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • The emergency address configuration to use for emergency calling

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

    • State of the emergency address configuration for the phone number

      Values are registered, unregistered, pending-registration, registration-failure, pending-unregistration, or unregistration-failure.

    • emergency_status string | null

      Displays if emergency calling is enabled for this number.

      Values are Active or Inactive.

    • friendly_name string | null

      The string that you assigned to describe the resource

    • identity_sid string | null

      The SID of the Identity resource associated with number

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

    • origin string | null

      The phone number's origin. Can be twilio or hosted.

    • phone_number string(phone-number) | null

      The phone number in E.164 format

    • sid string | null

      The unique string that identifies the resource

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

    • sms_application_sid string | null

      The SID of the application that handles SMS messages sent to the phone number

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

    • sms_fallback_method string(http-method) | null

      The HTTP method used with sms_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_fallback_url string(uri) | null

      The URL that we call when an error occurs while retrieving or executing the TwiML

    • sms_method string(http-method) | null

      The HTTP method to use with sms_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_url string(uri) | null

      The URL we call when the phone number receives an incoming SMS message

    • status string | null
    • status_callback string(uri) | null

      The URL to send status information to your application

    • status_callback_method string(http-method) | null

      The HTTP method we use to call status_callback

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • trunk_sid string | null

      The SID of the Trunk that handles calls to the phone number

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • The SID of the application that handles calls to the phone number

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

    • Whether to lookup the caller's name

    • voice_fallback_method string(http-method) | null

      The HTTP method used with voice_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_fallback_url string(uri) | null

      The URL we call when an error occurs in TwiML

    • voice_method string(http-method) | null

      The HTTP method used with the voice_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_receive_mode string | null

      Values are voice or fax.

    • voice_url string(uri) | null

      The URL we call when the phone number receives a call

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'AddressSid=string&ApiVersion=string&BundleSid=string&EmergencyAddressSid=string&EmergencyStatus=Active&FriendlyName=string&IdentitySid=string&PhoneNumber=string&SmsApplicationSid=string&SmsFallbackMethod=HEAD&SmsFallbackUrl=https%3A%2F%2Fexample.com&SmsMethod=HEAD&SmsUrl=https%3A%2F%2Fexample.com&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD&TrunkSid=string&VoiceApplicationSid=string&VoiceCallerIdLookup=true&VoiceFallbackMethod=HEAD&VoiceFallbackUrl=https%3A%2F%2Fexample.com&VoiceMethod=HEAD&VoiceReceiveMode=voice&VoiceUrl=https%3A%2F%2Fexample.com'
Request example
{
  "AddressSid": "string",
  "ApiVersion": "string",
  "BundleSid": "string",
  "EmergencyAddressSid": "string",
  "EmergencyStatus": "Active",
  "FriendlyName": "string",
  "IdentitySid": "string",
  "PhoneNumber": "string",
  "SmsApplicationSid": "string",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "TrunkSid": "string",
  "VoiceApplicationSid": "string",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceReceiveMode": "voice",
  "VoiceUrl": "https://example.com"
}
Request examples
{
  "AddressSid": "string",
  "ApiVersion": "string",
  "BundleSid": "string",
  "EmergencyAddressSid": "string",
  "EmergencyStatus": "Active",
  "FriendlyName": "string",
  "IdentitySid": "string",
  "PhoneNumber": "string",
  "SmsApplicationSid": "string",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "TrunkSid": "string",
  "VoiceApplicationSid": "string",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceReceiveMode": "voice",
  "VoiceUrl": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "address_requirements": "none",
  "address_sid": "string",
  "api_version": "string",
  "beta": true,
  "bundle_sid": "string",
  "capabilities": {
    "fax": true,
    "mms": true,
    "sms": true,
    "voice": true
  },
  "date_created": "string",
  "date_updated": "string",
  "emergency_address_sid": "string",
  "emergency_address_status": "registered",
  "emergency_status": "Active",
  "friendly_name": "string",
  "identity_sid": "string",
  "origin": "string",
  "phone_number": "string",
  "sid": "string",
  "sms_application_sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_url": "https://example.com",
  "status": "string",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "trunk_sid": "string",
  "uri": "https://example.com",
  "voice_application_sid": "string",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_receive_mode": "voice",
  "voice_url": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "address_requirements": "none",
  "address_sid": "string",
  "api_version": "string",
  "beta": true,
  "bundle_sid": "string",
  "capabilities": {
    "fax": true,
    "mms": true,
    "sms": true,
    "voice": true
  },
  "date_created": "string",
  "date_updated": "string",
  "emergency_address_sid": "string",
  "emergency_address_status": "registered",
  "emergency_status": "Active",
  "friendly_name": "string",
  "identity_sid": "string",
  "origin": "string",
  "phone_number": "string",
  "sid": "string",
  "sms_application_sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_url": "https://example.com",
  "status": "string",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "trunk_sid": "string",
  "uri": "https://example.com",
  "voice_application_sid": "string",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_receive_mode": "voice",
  "voice_url": "https://example.com"
}

Retrieve a list of Add-on installations currently assigned to this Number

GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json

TODO: Resource-level docs

Retrieve a list of Add-on installations currently assigned to this Number.

Path parameters

  • AccountSid string Required

    The SID of the Account that created the resources to read.

  • ResourceSid string Required

    The SID of the Phone Number to which the Add-on is assigned.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • assigned_add_ons array[object]
      Hide assigned_add_ons attributes Show assigned_add_ons attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • A JSON string that represents the current configuration

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • description string | null

        A short description of the Add-on functionality

      • friendly_name string | null

        The string that you assigned to describe the resource

      • resource_sid string | null

        The SID of the Phone Number that installed this Add-on

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

      • sid string | null

        The unique string that identifies the resource

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

      • subresource_uris object(uri-map) | null

        A list of related resources identified by their relative URIs

      • unique_name string | null

        An application-defined string that uniquely identifies the resource

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json \
 --user "username:password"
Response examples (200)
{
  "assigned_add_ons": [
    {
      "account_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "description": "string",
      "friendly_name": "string",
      "resource_sid": "string",
      "sid": "string",
      "subresource_uris": {},
      "unique_name": "string",
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "assigned_add_ons": [
    {
      "account_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "description": "string",
      "friendly_name": "string",
      "resource_sid": "string",
      "sid": "string",
      "subresource_uris": {},
      "unique_name": "string",
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Assign an Add-on installation to the Number specified

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json

TODO: Resource-level docs

Assign an Add-on installation to the Number specified.

Path parameters

  • AccountSid string Required

    The SID of the Account that will create the resource.

  • ResourceSid string Required

    The SID of the Phone Number to assign the Add-on.

Body

  • InstalledAddOnSid string Required

    The SID that identifies the Add-on installation.

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

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • A JSON string that represents the current configuration

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • description string | null

      A short description of the Add-on functionality

    • friendly_name string | null

      The string that you assigned to describe the resource

    • resource_sid string | null

      The SID of the Phone Number that installed this Add-on

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

    • sid string | null

      The unique string that identifies the resource

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

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

    • unique_name string | null

      An application-defined string that uniquely identifies the resource

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'InstalledAddOnSid=string'
Request example
{
  "InstalledAddOnSid": "string"
}
Request examples
{
  "InstalledAddOnSid": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "description": "string",
  "friendly_name": "string",
  "resource_sid": "string",
  "sid": "string",
  "subresource_uris": {},
  "unique_name": "string",
  "uri": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "description": "string",
  "friendly_name": "string",
  "resource_sid": "string",
  "sid": "string",
  "subresource_uris": {},
  "unique_name": "string",
  "uri": "https://example.com"
}

Retrieve a list of Extensions for the Assigned Add-on

GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json

TODO: Resource-level docs

Retrieve a list of Extensions for the Assigned Add-on.

Path parameters

  • AccountSid string Required

    The SID of the Account that created the resources to read.

  • ResourceSid string Required

    The SID of the Phone Number to which the Add-on is assigned.

  • AssignedAddOnSid string Required

    The SID that uniquely identifies the assigned Add-on installation.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • extensions array[object]
      Hide extensions attributes Show extensions attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • assigned_add_on_sid string | null

        The SID that uniquely identifies the assigned Add-on installation

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

      • enabled boolean | null

        Whether the Extension will be invoked

      • friendly_name string | null

        The string that you assigned to describe the resource

      • product_name string | null

        A string that you assigned to describe the Product this Extension is used within

      • resource_sid string | null

        The SID of the Phone Number to which the Add-on is assigned

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

      • sid string | null

        The unique string that identifies the resource

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

      • unique_name string | null

        An application-defined string that uniquely identifies the resource

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "extensions": [
    {
      "account_sid": "string",
      "assigned_add_on_sid": "string",
      "enabled": true,
      "friendly_name": "string",
      "product_name": "string",
      "resource_sid": "string",
      "sid": "string",
      "unique_name": "string",
      "uri": "https://example.com"
    }
  ],
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "extensions": [
    {
      "account_sid": "string",
      "assigned_add_on_sid": "string",
      "enabled": true,
      "friendly_name": "string",
      "product_name": "string",
      "resource_sid": "string",
      "sid": "string",
      "unique_name": "string",
      "uri": "https://example.com"
    }
  ],
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Fetch an instance of an Extension for the Assigned Add-on

GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json

TODO: Resource-level docs

Fetch an instance of an Extension for the Assigned Add-on.

Path parameters

  • AccountSid string Required

    The SID of the Account that created the resource to fetch.

  • ResourceSid string Required

    The SID of the Phone Number to which the Add-on is assigned.

  • AssignedAddOnSid string Required

    The SID that uniquely identifies the assigned Add-on installation.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • assigned_add_on_sid string | null

      The SID that uniquely identifies the assigned Add-on installation

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

    • enabled boolean | null

      Whether the Extension will be invoked

    • friendly_name string | null

      The string that you assigned to describe the resource

    • product_name string | null

      A string that you assigned to describe the Product this Extension is used within

    • resource_sid string | null

      The SID of the Phone Number to which the Add-on is assigned

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

    • sid string | null

      The unique string that identifies the resource

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

    • unique_name string | null

      An application-defined string that uniquely identifies the resource

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "assigned_add_on_sid": "string",
  "enabled": true,
  "friendly_name": "string",
  "product_name": "string",
  "resource_sid": "string",
  "sid": "string",
  "unique_name": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "assigned_add_on_sid": "string",
  "enabled": true,
  "friendly_name": "string",
  "product_name": "string",
  "resource_sid": "string",
  "sid": "string",
  "unique_name": "string",
  "uri": "https://example.com"
}

Fetch an instance of an Add-on installation currently assigned to this Number

GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json

TODO: Resource-level docs

Fetch an instance of an Add-on installation currently assigned to this Number.

Path parameters

  • AccountSid string Required

    The SID of the Account that created the resource to fetch.

  • ResourceSid string Required

    The SID of the Phone Number to which the Add-on is assigned.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • A JSON string that represents the current configuration

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • description string | null

      A short description of the Add-on functionality

    • friendly_name string | null

      The string that you assigned to describe the resource

    • resource_sid string | null

      The SID of the Phone Number that installed this Add-on

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

    • sid string | null

      The unique string that identifies the resource

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

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

    • unique_name string | null

      An application-defined string that uniquely identifies the resource

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "description": "string",
  "friendly_name": "string",
  "resource_sid": "string",
  "sid": "string",
  "subresource_uris": {},
  "unique_name": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "description": "string",
  "friendly_name": "string",
  "resource_sid": "string",
  "sid": "string",
  "subresource_uris": {},
  "unique_name": "string",
  "uri": "https://example.com"
}

List key

GET /2010-04-01/Accounts/{AccountSid}/Keys.json

API keys

Path parameters

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • keys array[object]
      Hide keys attributes Show keys attributes array[object]
      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • friendly_name string | null

        The string that you assigned to describe the resource

      • sid string | null

        The unique string that identifies the resource

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

    • next_page_uri string(uri)
    • page_size integer
    • page integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Keys.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Keys.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "keys": [
    {
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "sid": "string"
    }
  ],
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "keys": [
    {
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "sid": "string"
    }
  ],
  "next_page_uri": "https://example.com",
  "page_size": 42,
  "page": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Remove the assignment of an Add-on installation from the Number specified

DELETE /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json

TODO: Resource-level docs

Remove the assignment of an Add-on installation from the Number specified.

Path parameters

  • AccountSid string Required

    The SID of the Account that created the resources to delete.

  • ResourceSid string Required

    The SID of the Phone Number to which the Add-on is assigned.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json \
 --user "username:password"

Fetch an incoming-phone-number belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json

Incoming phone numbers on a Twilio account/project

Fetch an incoming-phone-number belonging to the account used to make the request.

Path parameters

  • AccountSid string Required

    The SID of the Account that created the IncomingPhoneNumber resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • Whether the phone number requires an Address registered with Twilio.

      Values are none, any, local, or foreign.

    • address_sid string | null

      The SID of the Address resource associated with the phone number

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

    • api_version string | null

      The API version used to start a new TwiML session

    • beta boolean | null

      Whether the phone number is new to the Twilio platform

    • bundle_sid string | null

      The SID of the Bundle resource associated with number

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

    • capabilities object(phone-number-capabilities) | null

      Indicate if a phone can receive calls or messages

      Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • The emergency address configuration to use for emergency calling

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

    • State of the emergency address configuration for the phone number

      Values are registered, unregistered, pending-registration, registration-failure, pending-unregistration, or unregistration-failure.

    • emergency_status string | null

      Displays if emergency calling is enabled for this number.

      Values are Active or Inactive.

    • friendly_name string | null

      The string that you assigned to describe the resource

    • identity_sid string | null

      The SID of the Identity resource associated with number

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

    • origin string | null

      The phone number's origin. Can be twilio or hosted.

    • phone_number string(phone-number) | null

      The phone number in E.164 format

    • sid string | null

      The unique string that identifies the resource

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

    • sms_application_sid string | null

      The SID of the application that handles SMS messages sent to the phone number

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

    • sms_fallback_method string(http-method) | null

      The HTTP method used with sms_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_fallback_url string(uri) | null

      The URL that we call when an error occurs while retrieving or executing the TwiML

    • sms_method string(http-method) | null

      The HTTP method to use with sms_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_url string(uri) | null

      The URL we call when the phone number receives an incoming SMS message

    • status string | null
    • status_callback string(uri) | null

      The URL to send status information to your application

    • status_callback_method string(http-method) | null

      The HTTP method we use to call status_callback

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • trunk_sid string | null

      The SID of the Trunk that handles calls to the phone number

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • The SID of the application that handles calls to the phone number

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

    • Whether to lookup the caller's name

    • voice_fallback_method string(http-method) | null

      The HTTP method used with voice_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_fallback_url string(uri) | null

      The URL we call when an error occurs in TwiML

    • voice_method string(http-method) | null

      The HTTP method used with the voice_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_receive_mode string | null

      Values are voice or fax.

    • voice_url string(uri) | null

      The URL we call when the phone number receives a call

GET /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "address_requirements": "none",
  "address_sid": "string",
  "api_version": "string",
  "beta": true,
  "bundle_sid": "string",
  "capabilities": {
    "fax": true,
    "mms": true,
    "sms": true,
    "voice": true
  },
  "date_created": "string",
  "date_updated": "string",
  "emergency_address_sid": "string",
  "emergency_address_status": "registered",
  "emergency_status": "Active",
  "friendly_name": "string",
  "identity_sid": "string",
  "origin": "string",
  "phone_number": "string",
  "sid": "string",
  "sms_application_sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_url": "https://example.com",
  "status": "string",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "trunk_sid": "string",
  "uri": "https://example.com",
  "voice_application_sid": "string",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_receive_mode": "voice",
  "voice_url": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "address_requirements": "none",
  "address_sid": "string",
  "api_version": "string",
  "beta": true,
  "bundle_sid": "string",
  "capabilities": {
    "voice": true,
    "fax": true,
    "mms": true,
    "sms": true
  },
  "date_created": "string",
  "date_updated": "string",
  "emergency_address_sid": "string",
  "emergency_address_status": "registered",
  "emergency_status": "Active",
  "friendly_name": "string",
  "identity_sid": "string",
  "origin": "string",
  "phone_number": "string",
  "sid": "string",
  "sms_application_sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_url": "https://example.com",
  "status": "string",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "trunk_sid": "string",
  "uri": "https://example.com",
  "voice_application_sid": "string",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_receive_mode": "voice",
  "voice_url": "https://example.com"
}

Update an incoming-phone-number instance

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json

Incoming phone numbers on a Twilio account/project

Update an incoming-phone-number instance.

Path parameters

Body

  • The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations.

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

  • The SID of the Account that created the IncomingPhoneNumber resource to update. For more information, see Exchanging Numbers Between Subaccounts.

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

  • The API version to use for incoming calls made to the phone number. The default is 2010-04-01.

  • The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations.

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

  • The SID of the emergency address configuration to use for emergency calling from this phone number.

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

  • The parameter displays if emergency calling is enabled for this number. Active numbers may place emergency calls by dialing valid emergency numbers for the country.

    Values are Active or Inactive.

  • A descriptive string that you created to describe this phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number.

  • The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations.

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

  • The SID of the application that should handle SMS messages sent to the number. If an sms_application_sid is present, we ignore all of the sms_*_url urls and use those set on the application.

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

  • SmsFallbackMethod string(http-method)

    The HTTP method that we should use to call sms_fallback_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • SmsFallbackUrl string(uri)

    The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url.

  • SmsMethod string(http-method)

    The HTTP method that we should use to call sms_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • SmsUrl string(uri)

    The URL we should call when the phone number receives an incoming SMS message.

  • StatusCallback string(uri)

    The URL we should call using the status_callback_method to send status information to your application.

  • StatusCallbackMethod string(http-method)

    The HTTP method we should use to call status_callback. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • TrunkSid string

    The SID of the Trunk we should use to handle phone calls to the phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa.

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

  • The SID of the application we should use to handle phone calls to the phone number. If a voice_application_sid is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa.

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

  • Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: true or false and defaults to false.

  • VoiceFallbackMethod string(http-method)

    The HTTP method that we should use to call voice_fallback_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • VoiceFallbackUrl string(uri)

    The URL that we should call when an error occurs retrieving or executing the TwiML requested by url.

  • VoiceMethod string(http-method)

    The HTTP method that we should use to call voice_url. Can be: GET or POST and defaults to POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • The configuration parameter for the phone number to receive incoming voice calls or faxes. Can be: fax or voice and defaults to voice.

    Values are voice or fax.

  • VoiceUrl string(uri)

    The URL that we should call to answer a call to the phone number. The voice_url will not be called if a voice_application_sid or a trunk_sid is set.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • Whether the phone number requires an Address registered with Twilio.

      Values are none, any, local, or foreign.

    • address_sid string | null

      The SID of the Address resource associated with the phone number

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

    • api_version string | null

      The API version used to start a new TwiML session

    • beta boolean | null

      Whether the phone number is new to the Twilio platform

    • bundle_sid string | null

      The SID of the Bundle resource associated with number

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

    • capabilities object(phone-number-capabilities) | null

      Indicate if a phone can receive calls or messages

      Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • The emergency address configuration to use for emergency calling

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

    • State of the emergency address configuration for the phone number

      Values are registered, unregistered, pending-registration, registration-failure, pending-unregistration, or unregistration-failure.

    • emergency_status string | null

      Displays if emergency calling is enabled for this number.

      Values are Active or Inactive.

    • friendly_name string | null

      The string that you assigned to describe the resource

    • identity_sid string | null

      The SID of the Identity resource associated with number

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

    • origin string | null

      The phone number's origin. Can be twilio or hosted.

    • phone_number string(phone-number) | null

      The phone number in E.164 format

    • sid string | null

      The unique string that identifies the resource

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

    • sms_application_sid string | null

      The SID of the application that handles SMS messages sent to the phone number

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

    • sms_fallback_method string(http-method) | null

      The HTTP method used with sms_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_fallback_url string(uri) | null

      The URL that we call when an error occurs while retrieving or executing the TwiML

    • sms_method string(http-method) | null

      The HTTP method to use with sms_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • sms_url string(uri) | null

      The URL we call when the phone number receives an incoming SMS message

    • status string | null
    • status_callback string(uri) | null

      The URL to send status information to your application

    • status_callback_method string(http-method) | null

      The HTTP method we use to call status_callback

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • trunk_sid string | null

      The SID of the Trunk that handles calls to the phone number

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • The SID of the application that handles calls to the phone number

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

    • Whether to lookup the caller's name

    • voice_fallback_method string(http-method) | null

      The HTTP method used with voice_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_fallback_url string(uri) | null

      The URL we call when an error occurs in TwiML

    • voice_method string(http-method) | null

      The HTTP method used with the voice_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_receive_mode string | null

      Values are voice or fax.

    • voice_url string(uri) | null

      The URL we call when the phone number receives a call

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'AccountSid=string&AddressSid=string&ApiVersion=string&BundleSid=string&EmergencyAddressSid=string&EmergencyStatus=Active&FriendlyName=string&IdentitySid=string&SmsApplicationSid=string&SmsFallbackMethod=HEAD&SmsFallbackUrl=https%3A%2F%2Fexample.com&SmsMethod=HEAD&SmsUrl=https%3A%2F%2Fexample.com&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD&TrunkSid=string&VoiceApplicationSid=string&VoiceCallerIdLookup=true&VoiceFallbackMethod=HEAD&VoiceFallbackUrl=https%3A%2F%2Fexample.com&VoiceMethod=HEAD&VoiceReceiveMode=voice&VoiceUrl=https%3A%2F%2Fexample.com'
Request example
{
  "AccountSid": "string",
  "AddressSid": "string",
  "ApiVersion": "string",
  "BundleSid": "string",
  "EmergencyAddressSid": "string",
  "EmergencyStatus": "Active",
  "FriendlyName": "string",
  "IdentitySid": "string",
  "SmsApplicationSid": "string",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "TrunkSid": "string",
  "VoiceApplicationSid": "string",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceReceiveMode": "voice",
  "VoiceUrl": "https://example.com"
}
Request examples
{
  "AddressSid": "string",
  "AccountSid": "string",
  "ApiVersion": "string",
  "BundleSid": "string",
  "EmergencyAddressSid": "string",
  "EmergencyStatus": "Active",
  "FriendlyName": "string",
  "IdentitySid": "string",
  "SmsApplicationSid": "string",
  "SmsFallbackMethod": "HEAD",
  "SmsFallbackUrl": "https://example.com",
  "SmsMethod": "HEAD",
  "SmsUrl": "https://example.com",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD",
  "TrunkSid": "string",
  "VoiceApplicationSid": "string",
  "VoiceCallerIdLookup": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceReceiveMode": "voice",
  "VoiceUrl": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "address_requirements": "none",
  "address_sid": "string",
  "api_version": "string",
  "beta": true,
  "bundle_sid": "string",
  "capabilities": {
    "fax": true,
    "mms": true,
    "sms": true,
    "voice": true
  },
  "date_created": "string",
  "date_updated": "string",
  "emergency_address_sid": "string",
  "emergency_address_status": "registered",
  "emergency_status": "Active",
  "friendly_name": "string",
  "identity_sid": "string",
  "origin": "string",
  "phone_number": "string",
  "sid": "string",
  "sms_application_sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_url": "https://example.com",
  "status": "string",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "trunk_sid": "string",
  "uri": "https://example.com",
  "voice_application_sid": "string",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_receive_mode": "voice",
  "voice_url": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "address_requirements": "none",
  "address_sid": "string",
  "api_version": "string",
  "beta": true,
  "bundle_sid": "string",
  "capabilities": {
    "fax": true,
    "mms": true,
    "sms": true,
    "voice": true
  },
  "date_created": "string",
  "date_updated": "string",
  "emergency_address_sid": "string",
  "emergency_address_status": "registered",
  "emergency_status": "Active",
  "friendly_name": "string",
  "identity_sid": "string",
  "origin": "string",
  "phone_number": "string",
  "sid": "string",
  "sms_application_sid": "string",
  "sms_fallback_method": "HEAD",
  "sms_fallback_url": "https://example.com",
  "sms_method": "HEAD",
  "sms_url": "https://example.com",
  "status": "string",
  "status_callback": "https://example.com",
  "status_callback_method": "HEAD",
  "trunk_sid": "string",
  "uri": "https://example.com",
  "voice_application_sid": "string",
  "voice_caller_id_lookup": true,
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_receive_mode": "voice",
  "voice_url": "https://example.com"
}

Delete a phone-numbers belonging to the account used to make the request

DELETE /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json

Incoming phone numbers on a Twilio account/project

Delete a phone-numbers belonging to the account used to make the request.

Path parameters

  • AccountSid string Required

    The SID of the Account that created the IncomingPhoneNumber resources to delete.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json \
 --user "username:password"

Fetch key

GET /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json

API keys

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Key resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Key resource to fetch.

Responses

  • OK

    Hide response attributes Show response attributes object
    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • friendly_name string | null

      The string that you assigned to describe the resource

    • sid string | null

      The unique string that identifies the resource

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

GET /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "sid": "string"
}
Response examples (200)
{
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "sid": "string"
}

Create new key

POST /2010-04-01/Accounts/{AccountSid}/Keys.json

API keys

Path parameters

  • AccountSid string Required

    The SID of the Account that will be responsible for the new Key resource.

Body

  • A descriptive string that you create to describe the resource. It can be up to 64 characters long.

Responses

  • Created

    Hide response attributes Show response attributes object
    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • friendly_name string | null

      The string that you assigned to describe the resource

    • secret string | null

      The secret your application uses to sign Access Tokens and to authenticate to the REST API.

    • sid string | null

      The unique string that identifies the resource

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

POST /2010-04-01/Accounts/{AccountSid}/Keys.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Keys.json \
 --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)
{
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "secret": "string",
  "sid": "string"
}
Response examples (201)
{
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "secret": "string",
  "sid": "string"
}

Update key

POST /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json

API keys

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Key resources to update.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Key resource to update.

Body

  • A descriptive string that you create to describe the resource. It can be up to 64 characters long.

Responses

  • OK

    Hide response attributes Show response attributes object
    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • friendly_name string | null

      The string that you assigned to describe the resource

    • sid string | null

      The unique string that identifies the resource

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

POST /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'FriendlyName=string'
Request example
{
  "FriendlyName": "string"
}
Request examples
{
  "FriendlyName": "string"
}
Response examples (200)
{
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "sid": "string"
}
Response examples (200)
{
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "sid": "string"
}

Delete key

DELETE /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json

API keys

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Key resources to delete.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Key resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json \
 --user "username:password"

Retrieve a list of messages belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Messages.json

A Message resource represents an inbound or outbound message.

Retrieve a list of messages belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Message resources to read.

Query parameters

  • To string(phone-number)

    Read messages sent to only this phone number.

  • From string(phone-number)

    Read messages sent from only this phone number or alphanumeric sender ID.

  • DateSent string(date-time)

    The date of the messages to show. Specify a date as YYYY-MM-DD in GMT to read only messages sent on this date. For example: 2009-07-06. You can also specify an inequality, such as DateSent<=YYYY-MM-DD, to read messages sent on or before midnight on a date, and DateSent>=YYYY-MM-DD to read messages sent on or after midnight on a date.

  • DateSent< string(date-time)

    The date of the messages to show. Specify a date as YYYY-MM-DD in GMT to read only messages sent on this date. For example: 2009-07-06. You can also specify an inequality, such as DateSent<=YYYY-MM-DD, to read messages sent on or before midnight on a date, and DateSent>=YYYY-MM-DD to read messages sent on or after midnight on a date.

  • DateSent> string(date-time)

    The date of the messages to show. Specify a date as YYYY-MM-DD in GMT to read only messages sent on this date. For example: 2009-07-06. You can also specify an inequality, such as DateSent<=YYYY-MM-DD, to read messages sent on or before midnight on a date, and DateSent>=YYYY-MM-DD to read messages sent on or after midnight on a date.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • messages array[object]
      Hide messages attributes Show messages attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • api_version string | null

        The API version used to process the message

      • body string | null

        The message text

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_sent string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT when the message was sent

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • direction string | null

        The direction of the message

        Values are inbound, outbound-api, outbound-call, or outbound-reply.

      • error_code integer | null

        The error code associated with the message

      • error_message string | null

        The description of the error_code

      • from string(phone-number) | null

        The phone number that initiated the message

      • The SID of the Messaging Service used with the message.

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

      • num_media string | null

        The number of media files associated with the message

      • num_segments string | null

        The number of messages used to deliver the message body

      • price string | null

        The amount billed for the message

      • price_unit string(currency) | null

        The currency in which price is measured

      • sid string | null

        The unique string that identifies the resource

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

      • status string | null

        The status of the message

        Values are queued, sending, sent, failed, delivered, undelivered, receiving, received, accepted, scheduled, read, partially_delivered, or canceled.

      • subresource_uris object(uri-map) | null

        A list of related resources identified by their relative URIs

      • to string | null

        The phone number that received the message

      • uri string | null

        The URI of the resource, relative to https://api.twilio.com

    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Messages.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "messages": [
    {
      "account_sid": "string",
      "api_version": "string",
      "body": "string",
      "date_created": "string",
      "date_sent": "string",
      "date_updated": "string",
      "direction": "inbound",
      "error_code": 42,
      "error_message": "string",
      "from": "string",
      "messaging_service_sid": "string",
      "num_media": "string",
      "num_segments": "string",
      "price": "string",
      "price_unit": "string",
      "sid": "string",
      "status": "queued",
      "subresource_uris": {},
      "to": "string",
      "uri": "string"
    }
  ],
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "messages": [
    {
      "account_sid": "string",
      "api_version": "string",
      "body": "string",
      "date_created": "string",
      "date_sent": "string",
      "date_updated": "string",
      "direction": "inbound",
      "error_code": 42,
      "error_message": "string",
      "from": "string",
      "messaging_service_sid": "string",
      "num_media": "string",
      "num_segments": "string",
      "price": "string",
      "price_unit": "string",
      "sid": "string",
      "status": "queued",
      "subresource_uris": {},
      "to": "string",
      "uri": "string"
    }
  ],
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Send a message from the account used to make the request

POST /2010-04-01/Accounts/{AccountSid}/Messages.json

A Message resource represents an inbound or outbound message.

Send a message from the account used to make the request

Path parameters

Body

  • Determines if the address can be stored or obfuscated based on privacy settings

    Value is retain.

  • The SID of the application that should receive message status. We POST a message_sid parameter and a message_status parameter with a value of sent or failed to the application's message_status_callback. If a status_callback parameter is also passed, it will be ignored and the application's message_status_callback parameter will be used.

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

  • Attempt integer

    Total number of attempts made ( including this ) to send out the message regardless of the provider used

  • Body string

    The text of the message you want to send. Can be up to 1,600 characters in length.

  • Determines if the message content can be stored or redacted based on privacy settings

    Value is retain.

  • Reserved

  • From string(phone-number)

    A Twilio phone number in E.164 format, an alphanumeric sender ID, or a Channel Endpoint address that is enabled for the type of message you want to send. Phone numbers or short codes purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using messaging_service_sid, this parameter must be empty.

  • MaxPrice number

    The maximum total price in US dollars that you will pay for the message to be delivered. Can be a decimal value that has up to 4 decimal places. All messages are queued for delivery and the message cost is checked before the message is sent. If the cost exceeds max_price, the message will fail and a status of Failed is sent to the status callback. If MaxPrice is not set, the message cost is not checked.

  • MediaUrl array[string(uri)]

    The URL of the media to send with the message. The media can be of type gif, png, and jpeg and will be formatted correctly on the recipient's device. The media size limit is 5MB for supported file types (JPEG, PNG, GIF) and 500KB for other types of accepted media. To send more than one image in the message body, provide multiple media_url parameters in the POST request. You can include up to 10 media_url parameters per message. You can send images in an SMS message in only the US and Canada.

  • The SID of the Messaging Service you want to associate with the Message. Set this parameter to use the Messaging Service Settings and Copilot Features you have configured and leave the from parameter empty. When only this parameter is set, Twilio will use your enabled Copilot Features to select the from phone number for delivery.

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

  • PersistentAction array[string]

    Rich actions for Channels Messages.

  • Whether to confirm delivery of the message. Set this value to true if you are sending messages that have a trackable user action and you intend to confirm delivery of the message using the Message Feedback API. This parameter is false by default.

  • Indicates your intent to schedule a message. Pass the value fixed to schedule a message at a fixed time.

    Value is fixed.

  • SendAsMms boolean

    If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media.

  • SendAt string(date-time)

    The time that Twilio will send the message. Must be in ISO 8601 format.

  • Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: true or false.

  • StatusCallback string(uri)

    The URL we should call using the status_callback_method to send status information to your application. If specified, we POST these message status changes to the URL: queued, failed, sent, delivered, or undelivered. Twilio will POST its standard request parameters as well as some additional parameters including MessageSid, MessageStatus, and ErrorCode. If you include this parameter with the messaging_service_sid, we use this URL instead of the Status Callback URL of the Messaging Service. URLs must contain a valid hostname and underscores are not allowed.

  • To string(phone-number) Required

    The destination phone number in E.164 format for SMS/MMS or Channel user address for other 3rd-party channels.

  • How long in seconds the message can remain in our outgoing message queue. After this period elapses, the message fails and we call your status callback. Can be between 1 and the default value of 14,400 seconds. After a message has been accepted by a carrier, however, we cannot guarantee that the message will not be queued after this period. We recommend that this value be at least 5 seconds.

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to process the message

    • body string | null

      The message text

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_sent string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT when the message was sent

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • direction string | null

      The direction of the message

      Values are inbound, outbound-api, outbound-call, or outbound-reply.

    • error_code integer | null

      The error code associated with the message

    • error_message string | null

      The description of the error_code

    • from string(phone-number) | null

      The phone number that initiated the message

    • The SID of the Messaging Service used with the message.

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

    • num_media string | null

      The number of media files associated with the message

    • num_segments string | null

      The number of messages used to deliver the message body

    • price string | null

      The amount billed for the message

    • price_unit string(currency) | null

      The currency in which price is measured

    • sid string | null

      The unique string that identifies the resource

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

    • status string | null

      The status of the message

      Values are queued, sending, sent, failed, delivered, undelivered, receiving, received, accepted, scheduled, read, partially_delivered, or canceled.

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

    • to string | null

      The phone number that received the message

    • uri string | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Messages.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'AddressRetention=retain&ApplicationSid=string&Attempt=42&Body=string&ContentRetention=retain&ForceDelivery=true&From=string&MaxPrice=42.0&MediaUrl=https%3A%2F%2Fexample.com&MessagingServiceSid=string&PersistentAction=string&ProvideFeedback=true&ScheduleType=fixed&SendAsMms=true&SendAt=2023-05-04T09%3A42%3A00%2B00%3A00&SmartEncoded=true&StatusCallback=https%3A%2F%2Fexample.com&To=string&ValidityPeriod=42'
Request example
{
  "AddressRetention": "retain",
  "ApplicationSid": "string",
  "Attempt": 42,
  "Body": "string",
  "ContentRetention": "retain",
  "ForceDelivery": true,
  "From": "string",
  "MaxPrice": 42.0,
  "MediaUrl": [
    "https://example.com"
  ],
  "MessagingServiceSid": "string",
  "PersistentAction": [
    "string"
  ],
  "ProvideFeedback": true,
  "ScheduleType": "fixed",
  "SendAsMms": true,
  "SendAt": "2023-05-04T09:42:00+00:00",
  "SmartEncoded": true,
  "StatusCallback": "https://example.com",
  "To": "string",
  "ValidityPeriod": 42
}
Request examples
{
  "AddressRetention": "retain",
  "ApplicationSid": "string",
  "Attempt": 42,
  "Body": "string",
  "ContentRetention": "retain",
  "ForceDelivery": true,
  "From": "string",
  "MaxPrice": 42.0,
  "MediaUrl": [
    "https://example.com"
  ],
  "MessagingServiceSid": "string",
  "PersistentAction": [
    "string"
  ],
  "ProvideFeedback": true,
  "ScheduleType": "fixed",
  "SendAsMms": true,
  "SendAt": "2025-05-04T09:42:00Z",
  "SmartEncoded": true,
  "StatusCallback": "https://example.com",
  "To": "string",
  "ValidityPeriod": 42
}
Response examples (201)
{
  "account_sid": "string",
  "api_version": "string",
  "body": "string",
  "date_created": "string",
  "date_sent": "string",
  "date_updated": "string",
  "direction": "inbound",
  "error_code": 42,
  "error_message": "string",
  "from": "string",
  "messaging_service_sid": "string",
  "num_media": "string",
  "num_segments": "string",
  "price": "string",
  "price_unit": "string",
  "sid": "string",
  "status": "queued",
  "subresource_uris": {},
  "to": "string",
  "uri": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "api_version": "string",
  "body": "string",
  "date_created": "string",
  "date_sent": "string",
  "date_updated": "string",
  "direction": "inbound",
  "error_code": 42,
  "error_message": "string",
  "from": "string",
  "messaging_service_sid": "string",
  "num_media": "string",
  "num_segments": "string",
  "price": "string",
  "price_unit": "string",
  "sid": "string",
  "status": "queued",
  "subresource_uris": {},
  "to": "string",
  "uri": "string"
}

Create message feedback

POST /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json

Customer-provided feedback on delivery confirmation

Path parameters

  • AccountSid string Required

    The SID of the Account that will create the resource.

  • MessageSid string Required

    The SID of the Message resource for which the feedback was provided.

Body

  • Outcome string

    Whether the feedback has arrived. Can be: unconfirmed or confirmed. If provide_feedback=true in the initial HTTP POST, the initial value of this property is unconfirmed. After the message arrives, update the value to confirmed.

    Values are confirmed or unconfirmed.

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • message_sid string | null

      The SID of the Message resource for which the feedback was provided

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

    • outcome string | null

      Whether the feedback has arrived

      Values are confirmed or unconfirmed.

    • uri string | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Outcome=confirmed'
Request example
{
  "Outcome": "confirmed"
}
Request examples
{
  "Outcome": "confirmed"
}
Response examples (201)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "message_sid": "string",
  "outcome": "confirmed",
  "uri": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "message_sid": "string",
  "outcome": "confirmed",
  "uri": "string"
}

Retrieve a list of Media resources belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json

The Media resource represents a piece of media, such as an image, that is associated with a message.

Retrieve a list of Media resources belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Media resource(s) to read.

  • MessageSid string Required

    The SID of the Message resource that this Media resource belongs to.

Query parameters

  • DateCreated string(date-time)

    Only include media that was created on this date. Specify a date as YYYY-MM-DD in GMT, for example: 2009-07-06, to read media that was created on this date. You can also specify an inequality, such as StartTime<=YYYY-MM-DD, to read media that was created on or before midnight of this date, and StartTime>=YYYY-MM-DD to read media that was created on or after midnight of this date.

  • DateCreated< string(date-time)

    Only include media that was created on this date. Specify a date as YYYY-MM-DD in GMT, for example: 2009-07-06, to read media that was created on this date. You can also specify an inequality, such as StartTime<=YYYY-MM-DD, to read media that was created on or before midnight of this date, and StartTime>=YYYY-MM-DD to read media that was created on or after midnight of this date.

  • DateCreated> string(date-time)

    Only include media that was created on this date. Specify a date as YYYY-MM-DD in GMT, for example: 2009-07-06, to read media that was created on this date. You can also specify an inequality, such as StartTime<=YYYY-MM-DD, to read media that was created on or before midnight of this date, and StartTime>=YYYY-MM-DD to read media that was created on or after midnight of this date.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • media_list array[object]
      Hide media_list attributes Show media_list attributes array[object]
      • account_sid string | null

        The SID of the Account that created this resource

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

      • content_type string | null

        The default mime-type of the media

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that this resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that this resource was last updated

      • parent_sid string | null

        The SID of the resource that created the media

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

      • sid string | null

        The unique string that identifies this resource

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

      • uri string(uri) | null

        The URI of this resource, relative to https://api.twilio.com

    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "media_list": [
    {
      "account_sid": "string",
      "content_type": "string",
      "date_created": "string",
      "date_updated": "string",
      "parent_sid": "string",
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "media_list": [
    {
      "account_sid": "string",
      "content_type": "string",
      "date_created": "string",
      "date_updated": "string",
      "parent_sid": "string",
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Fetch a single media instance belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json

The Media resource represents a piece of media, such as an image, that is associated with a message.

Fetch a single media instance belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Media resource(s) to fetch.

  • MessageSid string Required

    The SID of the Message resource that this Media resource belongs to.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Media resource to fetch

Responses

  • OK

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

      The SID of the Account that created this resource

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

    • content_type string | null

      The default mime-type of the media

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • parent_sid string | null

      The SID of the resource that created the media

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

    • sid string | null

      The unique string that identifies this resource

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

    • uri string(uri) | null

      The URI of this resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "content_type": "string",
  "date_created": "string",
  "date_updated": "string",
  "parent_sid": "string",
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "content_type": "string",
  "date_created": "string",
  "date_updated": "string",
  "parent_sid": "string",
  "sid": "string",
  "uri": "https://example.com"
}

Delete media from your account

DELETE /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json

The Media resource represents a piece of media, such as an image, that is associated with a message.

Delete media from your account. Once delete, you will no longer be billed

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Media resource(s) to delete.

  • MessageSid string Required

    The SID of the Message resource that this Media resource belongs to.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Media resource to delete

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json \
 --user "username:password"

Fetch a message belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json

A Message resource represents an inbound or outbound message.

Fetch a message belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Message resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Message resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to process the message

    • body string | null

      The message text

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_sent string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT when the message was sent

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • direction string | null

      The direction of the message

      Values are inbound, outbound-api, outbound-call, or outbound-reply.

    • error_code integer | null

      The error code associated with the message

    • error_message string | null

      The description of the error_code

    • from string(phone-number) | null

      The phone number that initiated the message

    • The SID of the Messaging Service used with the message.

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

    • num_media string | null

      The number of media files associated with the message

    • num_segments string | null

      The number of messages used to deliver the message body

    • price string | null

      The amount billed for the message

    • price_unit string(currency) | null

      The currency in which price is measured

    • sid string | null

      The unique string that identifies the resource

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

    • status string | null

      The status of the message

      Values are queued, sending, sent, failed, delivered, undelivered, receiving, received, accepted, scheduled, read, partially_delivered, or canceled.

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

    • to string | null

      The phone number that received the message

    • uri string | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "body": "string",
  "date_created": "string",
  "date_sent": "string",
  "date_updated": "string",
  "direction": "inbound",
  "error_code": 42,
  "error_message": "string",
  "from": "string",
  "messaging_service_sid": "string",
  "num_media": "string",
  "num_segments": "string",
  "price": "string",
  "price_unit": "string",
  "sid": "string",
  "status": "queued",
  "subresource_uris": {},
  "to": "string",
  "uri": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "body": "string",
  "date_created": "string",
  "date_sent": "string",
  "date_updated": "string",
  "direction": "inbound",
  "error_code": 42,
  "error_message": "string",
  "from": "string",
  "messaging_service_sid": "string",
  "num_media": "string",
  "num_segments": "string",
  "price": "string",
  "price_unit": "string",
  "sid": "string",
  "status": "queued",
  "subresource_uris": {},
  "to": "string",
  "uri": "string"
}

To redact a message-body from a post-flight message record

POST /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json

A Message resource represents an inbound or outbound message.

To redact a message-body from a post-flight message record, post to the message instance resource with an empty body

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Message resources to update.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Message resource to update.

Body

  • Body string

    The text of the message you want to send. Can be up to 1,600 characters long.

  • Status string

    When set as canceled, allows a message cancelation request if a message has not yet been sent.

    Value is canceled.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to process the message

    • body string | null

      The message text

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_sent string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT when the message was sent

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • direction string | null

      The direction of the message

      Values are inbound, outbound-api, outbound-call, or outbound-reply.

    • error_code integer | null

      The error code associated with the message

    • error_message string | null

      The description of the error_code

    • from string(phone-number) | null

      The phone number that initiated the message

    • The SID of the Messaging Service used with the message.

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

    • num_media string | null

      The number of media files associated with the message

    • num_segments string | null

      The number of messages used to deliver the message body

    • price string | null

      The amount billed for the message

    • price_unit string(currency) | null

      The currency in which price is measured

    • sid string | null

      The unique string that identifies the resource

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

    • status string | null

      The status of the message

      Values are queued, sending, sent, failed, delivered, undelivered, receiving, received, accepted, scheduled, read, partially_delivered, or canceled.

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

    • to string | null

      The phone number that received the message

    • uri string | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Body=string&Status=canceled'
Request example
{
  "Body": "string",
  "Status": "canceled"
}
Request examples
{
  "Body": "string",
  "Status": "canceled"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "body": "string",
  "date_created": "string",
  "date_sent": "string",
  "date_updated": "string",
  "direction": "inbound",
  "error_code": 42,
  "error_message": "string",
  "from": "string",
  "messaging_service_sid": "string",
  "num_media": "string",
  "num_segments": "string",
  "price": "string",
  "price_unit": "string",
  "sid": "string",
  "status": "queued",
  "subresource_uris": {},
  "to": "string",
  "uri": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "body": "string",
  "date_created": "string",
  "date_sent": "string",
  "date_updated": "string",
  "direction": "inbound",
  "error_code": 42,
  "error_message": "string",
  "from": "string",
  "messaging_service_sid": "string",
  "num_media": "string",
  "num_segments": "string",
  "price": "string",
  "price_unit": "string",
  "sid": "string",
  "status": "queued",
  "subresource_uris": {},
  "to": "string",
  "uri": "string"
}

Deletes a message record from your account

DELETE /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json

A Message resource represents an inbound or outbound message.

Deletes a message record from your account

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Message resources to delete.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Message resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json \
 --user "username:password"

Retrieve a list of notifications belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Notifications.json

[DEPRECATED] Log entries

Retrieve a list of notifications belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Notification resources to read.

Query parameters

  • Log integer

    Only read notifications of the specified log level. Can be: 0 to read only ERROR notifications or 1 to read only WARNING notifications. By default, all notifications are read.

  • MessageDate string(date)

    Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.

  • MessageDate< string(date)

    Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.

  • MessageDate> string(date)

    Only show notifications for the specified date, formatted as YYYY-MM-DD. You can also specify an inequality, such as <=YYYY-MM-DD for messages logged at or before midnight on a date, or >=YYYY-MM-DD for messages logged at or after midnight on a date.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • notifications array[object]
      Hide notifications attributes Show notifications attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • api_version string | null

        The API version used to generate the notification

      • call_sid string | null

        The SID of the Call the resource is associated with

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

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • error_code string | null

        A unique error code corresponding to the notification

      • log string | null

        An integer log level

      • message_date string(date-time-rfc-2822) | null

        The date the notification was generated

      • message_text string | null

        The text of the notification

      • more_info string(uri) | null

        A URL for more information about the error code

      • request_method string(http-method) | null

        HTTP method used with the request url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • request_url string(uri) | null

        URL of the resource that generated the notification

      • sid string | null

        The unique string that identifies the resource

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

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

    • page_size integer
    • page integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Notifications.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Notifications.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "notifications": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "error_code": "string",
      "log": "string",
      "message_date": "string",
      "message_text": "string",
      "more_info": "https://example.com",
      "request_method": "HEAD",
      "request_url": "https://example.com",
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "notifications": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "error_code": "string",
      "log": "string",
      "message_date": "string",
      "message_text": "string",
      "more_info": "https://example.com",
      "request_method": "HEAD",
      "request_url": "https://example.com",
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "page_size": 42,
  "page": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Fetch a notification belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json

[DEPRECATED] Log entries

Fetch a notification belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Notification resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Notification resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to generate the notification

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • error_code string | null

      A unique error code corresponding to the notification

    • log string | null

      An integer log level

    • message_date string(date-time-rfc-2822) | null

      The date the notification was generated

    • message_text string | null

      The text of the notification

    • more_info string(uri) | null

      A URL for more information about the error code

    • request_method string(http-method) | null

      HTTP method used with the request url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • request_url string(uri) | null

      URL of the resource that generated the notification

    • request_variables string | null

      Twilio-generated HTTP variables sent to the server

    • response_body string | null

      The HTTP body returned by your server

    • response_headers string | null

      The HTTP headers returned by your server

    • sid string | null

      The unique string that identifies the resource

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "error_code": "string",
  "log": "string",
  "message_date": "string",
  "message_text": "string",
  "more_info": "https://example.com",
  "request_method": "HEAD",
  "request_url": "https://example.com",
  "request_variables": "string",
  "response_body": "string",
  "response_headers": "string",
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": null,
  "api_version": "string",
  "call_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "error_code": "string",
  "log": "string",
  "message_date": "string",
  "message_text": "string",
  "more_info": "https://example.com",
  "request_method": "HEAD",
  "request_url": "https://example.com",
  "request_variables": "string",
  "response_body": "string",
  "response_headers": "string",
  "sid": "string",
  "uri": "https://example.com"
}

Retrieve a list of outgoing-caller-ids belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json

An OutgoingCallerId resource represents a single verified number that may be used as a caller ID when making outgoing calls via the REST API and within the TwiML verb.

Retrieve a list of outgoing-caller-ids belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the OutgoingCallerId resources to read.

Query parameters

  • PhoneNumber string(phone-number)

    The phone number of the OutgoingCallerId resources to read.

  • The string that identifies the OutgoingCallerId resources to read.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • outgoing_caller_ids array[object]
      Hide outgoing_caller_ids attributes Show outgoing_caller_ids attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • friendly_name string | null

        The string that you assigned to describe the resource

      • phone_number string(phone-number) | null

        The phone number in E.164 format

      • sid string | null

        The unique string that identifies the resource

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

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "outgoing_caller_ids": [
    {
      "account_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "phone_number": "string",
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "outgoing_caller_ids": [
    {
      "account_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "phone_number": "string",
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Create validation request

POST /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json

An OutgoingCallerId resource represents a single verified number that may be used as a caller ID when making outgoing calls via the REST API and within the TwiML verb.

Path parameters

  • AccountSid string Required

    The SID of the Account responsible for the new caller ID resource.

Body

  • CallDelay integer

    The number of seconds to delay before initiating the verification call. Can be an integer between 0 and 60, inclusive. The default is 0.

  • The digits to dial after connecting the verification call.

  • A descriptive string that you create to describe the new caller ID resource. It can be up to 64 characters long. The default value is a formatted version of the phone number.

  • PhoneNumber string(phone-number) Required

    The phone number to verify in E.164 format, which consists of a + followed by the country code and subscriber number.

  • StatusCallback string(uri)

    The URL we should call using the status_callback_method to send status information about the verification process to your application.

  • StatusCallbackMethod string(http-method)

    The HTTP method we should use to call status_callback. Can be: GET or POST, and the default is POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • friendly_name string | null

      The string that you assigned to describe the resource

    • phone_number string(phone-number) | null

      The phone number to verify in E.164 format

    • validation_code string | null

      The 6 digit validation code that someone must enter to validate the Caller ID when phone_number is called

POST /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'CallDelay=42&Extension=string&FriendlyName=string&PhoneNumber=string&StatusCallback=https%3A%2F%2Fexample.com&StatusCallbackMethod=HEAD'
Request example
{
  "CallDelay": 42,
  "Extension": "string",
  "FriendlyName": "string",
  "PhoneNumber": "string",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD"
}
Request examples
{
  "CallDelay": 42,
  "Extension": "string",
  "FriendlyName": "string",
  "PhoneNumber": "string",
  "StatusCallback": "https://example.com",
  "StatusCallbackMethod": "HEAD"
}
Response examples (201)
{
  "account_sid": "string",
  "call_sid": "string",
  "friendly_name": "string",
  "phone_number": "string",
  "validation_code": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "call_sid": "string",
  "friendly_name": "string",
  "phone_number": "string",
  "validation_code": "string"
}

Fetch an outgoing-caller-id belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json

An OutgoingCallerId resource represents a single verified number that may be used as a caller ID when making outgoing calls via the REST API and within the TwiML verb.

Fetch an outgoing-caller-id belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the OutgoingCallerId resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • friendly_name string | null

      The string that you assigned to describe the resource

    • phone_number null | string(phone-number)

      The phone number in E.164 format

    • sid string | null

      The unique string that identifies the resource

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "phone_number": "string",
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "phone_number": null,
  "sid": "string",
  "uri": "https://example.com"
}

Updates the caller-id

POST /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json

An OutgoingCallerId resource represents a single verified number that may be used as a caller ID when making outgoing calls via the REST API and within the TwiML verb.

Updates the caller-id

Path parameters

  • AccountSid string Required

    The SID of the Account that created the OutgoingCallerId resources to update.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to update.

Body

  • A descriptive string that you create to describe the resource. It can be up to 64 characters long.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • friendly_name string | null

      The string that you assigned to describe the resource

    • phone_number string(phone-number) | null

      The phone number in E.164 format

    • sid string | null

      The unique string that identifies the resource

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'FriendlyName=string'
Request example
{
  "FriendlyName": "string"
}
Request examples
{
  "FriendlyName": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "phone_number": "string",
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "phone_number": "string",
  "sid": "string",
  "uri": "https://example.com"
}

Retrieve a list of queues belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Queues.json

Queues of calls

Retrieve a list of queues belonging to the account used to make the request

Path parameters

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • queues array[object]
      Hide queues attributes Show queues attributes array[object]
      • account_sid string | null

        The SID of the Account that created this resource

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

      • average_wait_time integer | null

        Average wait time of members in the queue

      • current_size integer | null

        The number of calls currently in the queue.

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that this resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that this resource was last updated

      • friendly_name string | null

        A string that you assigned to describe this resource

      • max_size integer | null

        The max number of calls allowed in the queue

      • sid string | null

        The unique string that identifies this resource

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

      • uri string(uri) | null

        The URI of this resource, relative to https://api.twilio.com

    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Queues.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "queues": [
    {
      "account_sid": "string",
      "average_wait_time": 42,
      "current_size": 42,
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "max_size": 42,
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "queues": [
    {
      "account_sid": "string",
      "average_wait_time": 42,
      "current_size": 42,
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "max_size": 42,
      "sid": "string",
      "uri": "https://example.com"
    }
  ],
  "start": 42,
  "uri": "https://example.com"
}

Delete the caller-id specified from the account

DELETE /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json

An OutgoingCallerId resource represents a single verified number that may be used as a caller ID when making outgoing calls via the REST API and within the TwiML verb.

Delete the caller-id specified from the account

Path parameters

  • AccountSid string Required

    The SID of the Account that created the OutgoingCallerId resources to delete.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json \
 --user "username:password"

Create a queue

POST /2010-04-01/Accounts/{AccountSid}/Queues.json

Queues of calls

Create a queue

Path parameters

Body

  • FriendlyName string Required

    A descriptive string that you created to describe this resource. It can be up to 64 characters long.

  • MaxSize integer

    The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000.

Responses

  • Created

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

      The SID of the Account that created this resource

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

    • average_wait_time integer | null

      Average wait time of members in the queue

    • current_size integer | null

      The number of calls currently in the queue.

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • friendly_name string | null

      A string that you assigned to describe this resource

    • max_size integer | null

      The max number of calls allowed in the queue

    • sid string | null

      The unique string that identifies this resource

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

    • uri string(uri) | null

      The URI of this resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Queues.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'FriendlyName=string&MaxSize=42'
Request example
{
  "FriendlyName": "string",
  "MaxSize": 42
}
Request examples
{
  "FriendlyName": "string",
  "MaxSize": 42
}
Response examples (201)
{
  "account_sid": "string",
  "average_wait_time": 42,
  "current_size": 42,
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "max_size": 42,
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "average_wait_time": 42,
  "current_size": 42,
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "max_size": 42,
  "sid": "string",
  "uri": "https://example.com"
}

Retrieve the members of the queue

GET /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json

Calls in a call queue

Retrieve the members of the queue

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Member resource(s) to read.

  • QueueSid string Required

    The SID of the Queue in which to find the members

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • queue_members array[object]
      Hide queue_members attributes Show queue_members attributes array[object]
      • call_sid string | null

        The SID of the Call the resource is associated with

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

      • date_enqueued string(date-time-rfc-2822) | null

        The date the member was enqueued

      • position integer | null

        This member's current position in the queue.

      • queue_sid string | null

        The SID of the Queue the member is in

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

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

      • wait_time integer | null

        The number of seconds the member has been in the queue.

    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "queue_members": [
    {
      "call_sid": "string",
      "date_enqueued": "string",
      "position": 42,
      "queue_sid": "string",
      "uri": "https://example.com",
      "wait_time": 42
    }
  ],
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "queue_members": [
    {
      "call_sid": "string",
      "date_enqueued": "string",
      "position": 42,
      "queue_sid": "string",
      "uri": "https://example.com",
      "wait_time": 42
    }
  ],
  "start": 42,
  "uri": "https://example.com"
}

Fetch a specific member from the queue

GET /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json

Calls in a call queue

Fetch a specific member from the queue

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Member resource(s) to fetch.

  • QueueSid string Required

    The SID of the Queue in which to find the members to fetch.

  • CallSid string Required

    The Call SID of the resource(s) to fetch.

Responses

  • OK

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

      The SID of the Call the resource is associated with

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

    • date_enqueued null | string(date-time-rfc-2822)

      The date the member was enqueued

    • position integer | null

      This member's current position in the queue.

    • queue_sid string | null

      The SID of the Queue the member is in

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • wait_time integer | null

      The number of seconds the member has been in the queue.

GET /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json \
 --user "username:password"
Response examples (200)
{
  "call_sid": "string",
  "date_enqueued": "string",
  "position": 42,
  "queue_sid": "string",
  "uri": "https://example.com",
  "wait_time": 42
}
Response examples (200)
{
  "call_sid": "string",
  "date_enqueued": null,
  "position": 42,
  "queue_sid": "string",
  "uri": "https://example.com",
  "wait_time": 42
}

Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL

POST /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json

Calls in a call queue

Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Member resource(s) to update.

  • QueueSid string Required

    The SID of the Queue in which to find the members to update.

  • CallSid string Required

    The Call SID of the resource(s) to update.

Body

  • Method string(http-method)

    How to pass the update request data. Can be GET or POST and the default is POST. POST sends the data as encoded form data and GET sends the data as query parameters.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • Url string(uri) Required

    The absolute URL of the Queue resource.

Responses

  • OK

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

      The SID of the Call the resource is associated with

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

    • date_enqueued string(date-time-rfc-2822) | null

      The date the member was enqueued

    • position integer | null

      This member's current position in the queue.

    • queue_sid string | null

      The SID of the Queue the member is in

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

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • wait_time integer | null

      The number of seconds the member has been in the queue.

POST /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Method=HEAD&Url=https%3A%2F%2Fexample.com'
Request example
{
  "Method": "HEAD",
  "Url": "https://example.com"
}
Request examples
{
  "Method": "HEAD",
  "Url": "https://example.com"
}
Response examples (200)
{
  "call_sid": "string",
  "date_enqueued": "string",
  "position": 42,
  "queue_sid": "string",
  "uri": "https://example.com",
  "wait_time": 42
}
Response examples (200)
{
  "call_sid": "string",
  "date_enqueued": "string",
  "position": 42,
  "queue_sid": "string",
  "uri": "https://example.com",
  "wait_time": 42
}

Fetch an instance of a queue identified by the QueueSid

GET /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json

Queues of calls

Fetch an instance of a queue identified by the QueueSid

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Queue resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Queue resource to fetch

Responses

  • OK

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

      The SID of the Account that created this resource

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

    • average_wait_time integer | null

      Average wait time of members in the queue

    • current_size integer | null

      The number of calls currently in the queue.

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • friendly_name string | null

      A string that you assigned to describe this resource

    • max_size null | integer

      The max number of calls allowed in the queue

    • sid string | null

      The unique string that identifies this resource

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

    • uri string(uri) | null

      The URI of this resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "average_wait_time": 42,
  "current_size": 42,
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "max_size": 42,
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "average_wait_time": 42,
  "current_size": 42,
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "max_size": null,
  "sid": "string",
  "uri": "https://example.com"
}

Update the queue with the new parameters

POST /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json

Queues of calls

Update the queue with the new parameters

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Queue resource to update.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Queue resource to update

Body

  • A descriptive string that you created to describe this resource. It can be up to 64 characters long.

  • MaxSize integer

    The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000.

Responses

  • OK

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

      The SID of the Account that created this resource

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

    • average_wait_time integer | null

      Average wait time of members in the queue

    • current_size integer | null

      The number of calls currently in the queue.

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • friendly_name string | null

      A string that you assigned to describe this resource

    • max_size integer | null

      The max number of calls allowed in the queue

    • sid string | null

      The unique string that identifies this resource

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

    • uri string(uri) | null

      The URI of this resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'FriendlyName=string&MaxSize=42'
Request example
{
  "FriendlyName": "string",
  "MaxSize": 42
}
Request examples
{
  "FriendlyName": "string",
  "MaxSize": 42
}
Response examples (200)
{
  "account_sid": "string",
  "average_wait_time": 42,
  "current_size": 42,
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "max_size": 42,
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "average_wait_time": 42,
  "current_size": 42,
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "max_size": 42,
  "sid": "string",
  "uri": "https://example.com"
}

Remove an empty queue

DELETE /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json

Queues of calls

Remove an empty queue

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Queue resource to delete.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Queue resource to delete

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json \
 --user "username:password"

Retrieve a list of recordings belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/Recordings.json

Recordings of phone calls

Retrieve a list of recordings belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Recording resources to read.

Query parameters

  • DateCreated string(date-time)

    Only include recordings that were created on this date. Specify a date as YYYY-MM-DD in GMT, for example: 2009-07-06, to read recordings that were created on this date. You can also specify an inequality, such as DateCreated<=YYYY-MM-DD, to read recordings that were created on or before midnight of this date, and DateCreated>=YYYY-MM-DD to read recordings that were created on or after midnight of this date.

  • DateCreated< string(date-time)

    Only include recordings that were created on this date. Specify a date as YYYY-MM-DD in GMT, for example: 2009-07-06, to read recordings that were created on this date. You can also specify an inequality, such as DateCreated<=YYYY-MM-DD, to read recordings that were created on or before midnight of this date, and DateCreated>=YYYY-MM-DD to read recordings that were created on or after midnight of this date.

  • A boolean parameter indicating whether to retrieve soft deleted recordings or not. Recordings metadata are kept after deletion for a retention period of 40 days.

  • DateCreated> string(date-time)

    Only include recordings that were created on this date. Specify a date as YYYY-MM-DD in GMT, for example: 2009-07-06, to read recordings that were created on this date. You can also specify an inequality, such as DateCreated<=YYYY-MM-DD, to read recordings that were created on or before midnight of this date, and DateCreated>=YYYY-MM-DD to read recordings that were created on or after midnight of this date.

  • CallSid string

    The Call SID of the resources to read.

  • The Conference SID that identifies the conference associated with the recording to read.

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • recordings array[object]
      Hide recordings attributes Show recordings attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • api_version string | null

        The API version used during the recording.

      • call_sid string | null

        The SID of the Call the resource is associated with

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

      • channels integer | null

        The number of channels in the final recording file as an integer.

      • conference_sid string | null

        The unique ID for the conference associated with the recording.

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

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • duration string | null

        The length of the recording in seconds.

      • How to decrypt the recording.

      • error_code integer | null

        More information about why the recording is missing, if status is absent.

      • media_url string(uri) | null

        The URL of the media file.

      • price string | null

        The one-time cost of creating the recording.

      • price_unit string | null

        The currency used in the price property.

      • sid string | null

        The unique string that identifies the resource

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

      • status string | null

        The status of the recording.

        Values are in-progress, paused, stopped, processing, completed, absent, or deleted.

      • source string | null

        How the recording was created

        Values are DialVerb, Conference, OutboundAPI, Trunking, RecordVerb, StartCallRecordingAPI, or StartConferenceRecordingAPI.

      • start_time string(date-time-rfc-2822) | null

        The start time of the recording, given in RFC 2822 format

      • subresource_uris object(uri-map) | null

        A list of related resources identified by their relative URIs

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Recordings.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "recordings": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid": "string",
      "channels": 42,
      "conference_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "duration": "string",
      "error_code": 42,
      "media_url": "https://example.com",
      "price": "string",
      "price_unit": "string",
      "sid": "string",
      "source": "DialVerb",
      "start_time": "string",
      "status": "in-progress",
      "subresource_uris": {},
      "uri": "https://example.com"
    }
  ],
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "recordings": [
    {
      "account_sid": "string",
      "api_version": "string",
      "call_sid": "string",
      "channels": 42,
      "conference_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "duration": "string",
      "error_code": 42,
      "media_url": "https://example.com",
      "price": "string",
      "price_unit": "string",
      "sid": "string",
      "status": "in-progress",
      "source": "DialVerb",
      "start_time": "string",
      "subresource_uris": {},
      "uri": "https://example.com"
    }
  ],
  "start": 42,
  "uri": "https://example.com"
}

List recording transcription

GET /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json

References to text transcriptions of call recordings

Path parameters

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • transcriptions array[object]
      Hide transcriptions attributes Show transcriptions attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • api_version string | null

        The API version used to create the transcription

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • duration string | null

        The duration of the transcribed audio in seconds.

      • price number | null

        The charge for the transcription

      • price_unit string(currency) | null

        The currency in which price is measured

      • recording_sid string | null

        The SID that identifies the transcription's recording

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

      • sid string | null

        The unique string that identifies the resource

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

      • status string | null

        The status of the transcription

        Values are in-progress, completed, or failed.

      • transcription_text string | null

        The text content of the transcription.

      • type string | null

        The transcription type

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "transcriptions": [
    {
      "account_sid": "string",
      "api_version": "string",
      "date_created": "string",
      "date_updated": "string",
      "duration": "string",
      "price": 42.0,
      "price_unit": "string",
      "recording_sid": "string",
      "sid": "string",
      "status": "in-progress",
      "transcription_text": "string",
      "type": "string",
      "uri": "https://example.com"
    }
  ],
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "transcriptions": [
    {
      "account_sid": "string",
      "api_version": "string",
      "date_created": "string",
      "date_updated": "string",
      "duration": "string",
      "price": 42.0,
      "price_unit": "string",
      "recording_sid": "string",
      "sid": "string",
      "status": "in-progress",
      "transcription_text": "string",
      "type": "string",
      "uri": "https://example.com"
    }
  ],
  "uri": "https://example.com"
}

Fetch recording transcription

GET /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json

References to text transcriptions of call recordings

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Transcription resource to fetch.

  • RecordingSid string Required

    The SID of the Recording that created the transcription to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Transcription resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to create the transcription

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • duration string | null

      The duration of the transcribed audio in seconds.

    • price number | null

      The charge for the transcription

    • price_unit string(currency) | null

      The currency in which price is measured

    • recording_sid string | null

      The SID that identifies the transcription's recording

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

    • sid string | null

      The unique string that identifies the resource

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

    • status string | null

      The status of the transcription

      Values are in-progress, completed, or failed.

    • transcription_text string | null

      The text content of the transcription.

    • type string | null

      The transcription type

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "price": 42.0,
  "price_unit": "string",
  "recording_sid": "string",
  "sid": "string",
  "status": "in-progress",
  "transcription_text": "string",
  "type": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "price": 42.0,
  "price_unit": "string",
  "recording_sid": "string",
  "sid": "string",
  "status": "in-progress",
  "transcription_text": "string",
  "type": "string",
  "uri": "https://example.com"
}

Delete recording transcription

DELETE /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json

References to text transcriptions of call recordings

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Transcription resources to delete.

  • RecordingSid string Required

    The SID of the Recording that created the transcription to delete.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Transcription resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json \
 --user "username:password"

Retrieve a list of results belonging to the recording

GET /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json

The results of an Add-on API call

Retrieve a list of results belonging to the recording

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Recording AddOnResult resources to read.

  • ReferenceSid string Required

    The SID of the recording to which the result to read belongs.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • add_on_results array[object]
      Hide add_on_results attributes Show add_on_results attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • The SID of the Add-on configuration

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

      • add_on_sid string | null

        The SID of the Add-on to which the result belongs

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

      • date_completed string(date-time-rfc-2822) | null

        The date and time in GMT that the result was completed

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • reference_sid string | null

        The SID of the recording to which the AddOnResult resource belongs

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

      • sid string | null

        The unique string that identifies the resource

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

      • status string | null

        The status of the result

        Values are canceled, completed, deleted, failed, in-progress, init, processing, or queued.

      • subresource_uris object(uri-map) | null

        A list of related resources identified by their relative URIs

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json \
 --user "username:password"
Response examples (200)
{
  "add_on_results": [
    {
      "account_sid": "string",
      "add_on_configuration_sid": "string",
      "add_on_sid": "string",
      "date_completed": "string",
      "date_created": "string",
      "date_updated": "string",
      "reference_sid": "string",
      "sid": "string",
      "status": "canceled",
      "subresource_uris": {}
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "add_on_results": [
    {
      "account_sid": "string",
      "add_on_configuration_sid": "string",
      "add_on_sid": "string",
      "date_completed": "string",
      "date_created": "string",
      "date_updated": "string",
      "reference_sid": "string",
      "sid": "string",
      "status": "canceled",
      "subresource_uris": {}
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Retrieve a list of payloads belonging to the AddOnResult

GET /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json

A single Add-on results' payload

Retrieve a list of payloads belonging to the AddOnResult

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Recording AddOnResult Payload resources to read.

  • ReferenceSid string Required

    The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs.

  • AddOnResultSid string Required

    The SID of the AddOnResult to which the payloads to read belongs.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • payloads array[object]
      Hide payloads attributes Show payloads attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • The SID of the Add-on configuration

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

      • add_on_result_sid string | null

        The SID of the AddOnResult to which the payload belongs

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

      • add_on_sid string | null

        The SID of the Add-on to which the result belongs

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

      • content_type string | null

        The MIME type of the payload

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • label string | null

        The string that describes the payload

      • reference_sid string | null

        The SID of the recording to which the AddOnResult resource that contains the payload belongs

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

      • sid string | null

        The unique string that identifies the resource

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

      • subresource_uris object(uri-map) | null

        A list of related resources identified by their relative URIs

    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json \
 --user "username:password"
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "payloads": [
    {
      "account_sid": "string",
      "add_on_configuration_sid": "string",
      "add_on_result_sid": "string",
      "add_on_sid": "string",
      "content_type": "string",
      "date_created": "string",
      "date_updated": "string",
      "label": "string",
      "reference_sid": "string",
      "sid": "string",
      "subresource_uris": {}
    }
  ],
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "payloads": [
    {
      "account_sid": "string",
      "add_on_configuration_sid": "string",
      "add_on_result_sid": "string",
      "add_on_sid": "string",
      "content_type": "string",
      "date_created": "string",
      "date_updated": "string",
      "label": "string",
      "reference_sid": "string",
      "sid": "string",
      "subresource_uris": {}
    }
  ],
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Fetch an instance of a result payload

GET /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json

A single Add-on results' payload

Fetch an instance of a result payload

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Recording AddOnResult Payload resource to fetch.

  • ReferenceSid string Required

    The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs.

  • AddOnResultSid string Required

    The SID of the AddOnResult to which the payload to fetch belongs.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • The SID of the Add-on configuration

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

    • add_on_result_sid string | null

      The SID of the AddOnResult to which the payload belongs

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

    • add_on_sid null | string

      The SID of the Add-on to which the result belongs

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

    • content_type string | null

      The MIME type of the payload

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • label string | null

      The string that describes the payload

    • reference_sid string | null

      The SID of the recording to which the AddOnResult resource that contains the payload belongs

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

    • sid string | null

      The unique string that identifies the resource

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

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

GET /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "add_on_configuration_sid": "string",
  "add_on_result_sid": "string",
  "add_on_sid": "string",
  "content_type": "string",
  "date_created": "string",
  "date_updated": "string",
  "label": "string",
  "reference_sid": "string",
  "sid": "string",
  "subresource_uris": {}
}
Response examples (200)
{
  "account_sid": "string",
  "add_on_configuration_sid": "string",
  "add_on_result_sid": "string",
  "add_on_sid": null,
  "content_type": "string",
  "date_created": "string",
  "date_updated": "string",
  "label": "string",
  "reference_sid": "string",
  "sid": "string",
  "subresource_uris": {}
}

Delete a payload from the result along with all associated Data

DELETE /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json

A single Add-on results' payload

Delete a payload from the result along with all associated Data

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Recording AddOnResult Payload resources to delete.

  • ReferenceSid string Required

    The SID of the recording to which the AddOnResult resource that contains the payloads to delete belongs.

  • AddOnResultSid string Required

    The SID of the AddOnResult to which the payloads to delete belongs.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json \
 --user "username:password"

Fetch an instance of an AddOnResult

GET /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json

The results of an Add-on API call

Fetch an instance of an AddOnResult

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Recording AddOnResult resource to fetch.

  • ReferenceSid string Required

    The SID of the recording to which the result to fetch belongs.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to fetch.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • The SID of the Add-on configuration

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

    • add_on_sid string | null

      The SID of the Add-on to which the result belongs

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

    • date_completed string(date-time-rfc-2822) | null

      The date and time in GMT that the result was completed

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • reference_sid string | null

      The SID of the recording to which the AddOnResult resource belongs

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

    • sid string | null

      The unique string that identifies the resource

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

    • status string | null

      The status of the result

      Values are canceled, completed, deleted, failed, in-progress, init, processing, or queued.

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

GET /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "add_on_configuration_sid": "string",
  "add_on_sid": "string",
  "date_completed": "string",
  "date_created": "string",
  "date_updated": "string",
  "reference_sid": "string",
  "sid": "string",
  "status": "canceled",
  "subresource_uris": {}
}
Response examples (200)
{
  "account_sid": "string",
  "add_on_configuration_sid": "string",
  "add_on_sid": "string",
  "date_completed": "string",
  "date_created": "string",
  "date_updated": "string",
  "reference_sid": "string",
  "sid": "string",
  "status": "canceled",
  "subresource_uris": {}
}

Delete a result and purge all associated Payloads

DELETE /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json

The results of an Add-on API call

Delete a result and purge all associated Payloads

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Recording AddOnResult resources to delete.

  • ReferenceSid string Required

    The SID of the recording to which the result to delete belongs.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json \
 --user "username:password"

Fetch an instance of a recording

GET /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json

Recordings of phone calls

Fetch an instance of a recording

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Recording resource to fetch.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Recording resource to fetch.

Query parameters

  • A boolean parameter indicating whether to retrieve soft deleted recordings or not. Recordings metadata are kept after deletion for a retention period of 40 days.

Responses

  • OK

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used during the recording.

    • call_sid string | null

      The SID of the Call the resource is associated with

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

    • channels integer | null

      The number of channels in the final recording file as an integer.

    • conference_sid string | null

      The unique ID for the conference associated with the recording.

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • duration string | null

      The length of the recording in seconds.

    • How to decrypt the recording.

    • error_code integer | null

      More information about why the recording is missing, if status is absent.

    • media_url string(uri) | null

      The URL of the media file.

    • price string | null

      The one-time cost of creating the recording.

    • price_unit string | null

      The currency used in the price property.

    • sid string | null

      The unique string that identifies the resource

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

    • source string | null

      How the recording was created

      Values are DialVerb, Conference, OutboundAPI, Trunking, RecordVerb, StartCallRecordingAPI, or StartConferenceRecordingAPI.

    • start_time string(date-time-rfc-2822) | null

      The start time of the recording, given in RFC 2822 format

    • status string | null

      The status of the recording.

      Values are in-progress, paused, stopped, processing, completed, absent, or deleted.

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "channels": 42,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "error_code": 42,
  "media_url": "https://example.com",
  "price": "string",
  "price_unit": "string",
  "sid": "string",
  "source": "DialVerb",
  "start_time": "string",
  "status": "in-progress",
  "subresource_uris": {},
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "api_version": "string",
  "call_sid": "string",
  "channels": 42,
  "conference_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "duration": "string",
  "error_code": 42,
  "media_url": "https://example.com",
  "price": "string",
  "price_unit": "string",
  "sid": "string",
  "source": "DialVerb",
  "start_time": "string",
  "status": "in-progress",
  "subresource_uris": {},
  "uri": "https://example.com"
}

Delete a recording from your account

DELETE /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json

Recordings of phone calls

Delete a recording from your account

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Recording resources to delete.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Recording resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json \
 --user "username:password"

Get All Credential Lists

GET /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json

Lists of SIP credentials

Get All Credential Lists

Path parameters

  • AccountSid string Required

    The unique id of the Account that is responsible for this resource.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • credential_lists array[object]
      Hide credential_lists attributes Show credential_lists attributes array[object]
      • account_sid string | null

        The unique sid that identifies this account

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

      • date_created string(date-time-rfc-2822) | null

        The date this resource was created

      • date_updated string(date-time-rfc-2822) | null

        The date this resource was last updated

      • friendly_name string | null

        Human readable descriptive text

      • sid null | string

        A string that uniquely identifies this credential

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

      • subresource_uris object(uri-map) | null

        The list of credentials associated with this credential list.

      • uri string(uri) | null

        The URI for this resource

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json \
 --user "username:password"
Response examples (200)
{
  "credential_lists": [
    {
      "account_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "sid": "string",
      "subresource_uris": {},
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "credential_lists": [
    {
      "account_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "sid": null,
      "subresource_uris": {},
      "uri": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Create a Credential List

POST /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json

Lists of SIP credentials

Create a Credential List

Path parameters

  • AccountSid string Required

    The unique id of the Account that is responsible for this resource.

Body

  • FriendlyName string Required

    A human readable descriptive text that describes the CredentialList, up to 64 characters long.

Responses

  • Created

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

      The unique sid that identifies this account

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

    • date_created string(date-time-rfc-2822) | null

      The date this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The date this resource was last updated

    • friendly_name string | null

      Human readable descriptive text

    • sid string | null

      A string that uniquely identifies this credential

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

    • subresource_uris object(uri-map) | null

      The list of credentials associated with this credential list.

    • uri string(uri) | null

      The URI for this resource

POST /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json \
 --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",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "sid": "string",
  "subresource_uris": {},
  "uri": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "sid": "string",
  "subresource_uris": {},
  "uri": "https://example.com"
}

Retrieve a list of credentials

GET /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json

Username and password information for SIP Domains

Retrieve a list of credentials.

Path parameters

  • AccountSid string Required

    The unique id of the Account that is responsible for this resource.

  • CredentialListSid string Required

    The unique id that identifies the credential list that contains the desired credentials.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • credentials array[object]
      Hide credentials attributes Show credentials attributes array[object]
      • account_sid string | null

        The unique id of the Account that is responsible for this resource.

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

      • credential_list_sid string | null

        The unique id that identifies the credential list that includes this credential

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

      • date_created string(date-time-rfc-2822) | null

        The date that this resource was created, given as GMT in RFC 2822 format.

      • date_updated string(date-time-rfc-2822) | null

        The date that this resource was last updated, given as GMT in RFC 2822 format.

      • sid string | null

        A 34 character string that uniquely identifies this resource.

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

      • uri string(uri) | null

        The URI for this resource, relative to https://api.twilio.com

      • username string | null

        The username for this credential.

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json \
 --user "username:password"
Response examples (200)
{
  "credentials": [
    {
      "account_sid": "string",
      "credential_list_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "sid": "string",
      "uri": "https://example.com",
      "username": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "credentials": [
    {
      "account_sid": "string",
      "credential_list_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "sid": "string",
      "uri": "https://example.com",
      "username": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Create a new credential resource

POST /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json

Username and password information for SIP Domains

Create a new credential resource.

Path parameters

  • AccountSid string Required

    The unique id of the Account that is responsible for this resource.

  • CredentialListSid string Required

    The unique id that identifies the credential list to include the created credential.

Body

  • Password string Required

    The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg IWasAtSignal2018)

  • Username string Required

    The username that will be passed when authenticating SIP requests. The username should be sent in response to Twilio's challenge of the initial INVITE. It can be up to 32 characters long.

Responses

  • Created

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

      The unique id of the Account that is responsible for this resource.

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

    • credential_list_sid string | null

      The unique id that identifies the credential list that includes this credential

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

    • date_created string(date-time-rfc-2822) | null

      The date that this resource was created, given as GMT in RFC 2822 format.

    • date_updated string(date-time-rfc-2822) | null

      The date that this resource was last updated, given as GMT in RFC 2822 format.

    • sid string | null

      A 34 character string that uniquely identifies this resource.

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

    • uri string(uri) | null

      The URI for this resource, relative to https://api.twilio.com

    • username string | null

      The username for this credential.

POST /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Password=string&Username=string'
Request example
{
  "Password": "string",
  "Username": "string"
}
Request examples
{
  "Password": "string",
  "Username": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "credential_list_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "sid": "string",
  "uri": "https://example.com",
  "username": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "credential_list_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "sid": "string",
  "uri": "https://example.com",
  "username": "string"
}

Fetch a single credential

GET /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json

Username and password information for SIP Domains

Fetch a single credential.

Path parameters

  • AccountSid string Required

    The unique id of the Account that is responsible for this resource.

  • CredentialListSid string Required

    The unique id that identifies the credential list that contains the desired credential.

  • Sid string Required

    The unique id that identifies the resource to fetch.

Responses

  • OK

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

      The unique id of the Account that is responsible for this resource.

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

    • credential_list_sid string | null

      The unique id that identifies the credential list that includes this credential

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

    • date_created string(date-time-rfc-2822) | null

      The date that this resource was created, given as GMT in RFC 2822 format.

    • date_updated string(date-time-rfc-2822) | null

      The date that this resource was last updated, given as GMT in RFC 2822 format.

    • sid string | null

      A 34 character string that uniquely identifies this resource.

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

    • uri string(uri) | null

      The URI for this resource, relative to https://api.twilio.com

    • username string | null

      The username for this credential.

GET /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "credential_list_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "sid": "string",
  "uri": "https://example.com",
  "username": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "credential_list_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "sid": "string",
  "uri": "https://example.com",
  "username": "string"
}

Update a credential resource

POST /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json

Username and password information for SIP Domains

Update a credential resource.

Path parameters

  • AccountSid string Required

    The unique id of the Account that is responsible for this resource.

  • CredentialListSid string Required

    The unique id that identifies the credential list that includes this credential.

  • Sid string Required

    The unique id that identifies the resource to update.

Body

  • Password string

    The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg IWasAtSignal2018)

Responses

  • OK

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

      The unique id of the Account that is responsible for this resource.

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

    • credential_list_sid string | null

      The unique id that identifies the credential list that includes this credential

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

    • date_created string(date-time-rfc-2822) | null

      The date that this resource was created, given as GMT in RFC 2822 format.

    • date_updated string(date-time-rfc-2822) | null

      The date that this resource was last updated, given as GMT in RFC 2822 format.

    • sid string | null

      A 34 character string that uniquely identifies this resource.

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

    • uri string(uri) | null

      The URI for this resource, relative to https://api.twilio.com

    • username string | null

      The username for this credential.

POST /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Password=string'
Request example
{
  "Password": "string"
}
Request examples
{
  "Password": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "credential_list_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "sid": "string",
  "uri": "https://example.com",
  "username": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "credential_list_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "sid": "string",
  "uri": "https://example.com",
  "username": "string"
}

Delete a credential resource

DELETE /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json

Username and password information for SIP Domains

Delete a credential resource.

Path parameters

  • AccountSid string Required

    The unique id of the Account that is responsible for this resource.

  • CredentialListSid string Required

    The unique id that identifies the credential list that contains the desired credentials.

  • Sid string Required

    The unique id that identifies the resource to delete.

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json \
 --user "username:password"

Get a Credential List

GET /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json

Lists of SIP credentials

Get a Credential List

Path parameters

  • AccountSid string Required

    The unique id of the Account that is responsible for this resource.

  • Sid string Required

    The credential list Sid that uniquely identifies this resource

Responses

  • OK

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

      The unique sid that identifies this account

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

    • date_created string(date-time-rfc-2822) | null

      The date this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The date this resource was last updated

    • friendly_name string | null

      Human readable descriptive text

    • sid string | null

      A string that uniquely identifies this credential

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

    • subresource_uris object(uri-map) | null

      The list of credentials associated with this credential list.

    • uri string(uri) | null

      The URI for this resource

GET /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "sid": "string",
  "subresource_uris": {},
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "sid": "string",
  "subresource_uris": {},
  "uri": "https://example.com"
}

Update a Credential List

POST /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json

Lists of SIP credentials

Update a Credential List

Path parameters

  • AccountSid string Required

    The unique id of the Account that is responsible for this resource.

  • Sid string Required

    The credential list Sid that uniquely identifies this resource

Body

  • FriendlyName string Required

    A human readable descriptive text for a CredentialList, up to 64 characters long.

Responses

  • OK

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

      The unique sid that identifies this account

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

    • date_created string(date-time-rfc-2822) | null

      The date this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The date this resource was last updated

    • friendly_name string | null

      Human readable descriptive text

    • sid string | null

      A string that uniquely identifies this credential

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

    • subresource_uris object(uri-map) | null

      The list of credentials associated with this credential list.

    • uri string(uri) | null

      The URI for this resource

POST /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'FriendlyName=string'
Request example
{
  "FriendlyName": "string"
}
Request examples
{
  "FriendlyName": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "sid": "string",
  "subresource_uris": {},
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "friendly_name": "string",
  "sid": "string",
  "subresource_uris": {},
  "uri": "https://example.com"
}

Delete a Credential List

DELETE /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json

Lists of SIP credentials

Delete a Credential List

Path parameters

  • AccountSid string Required

    The unique id of the Account that is responsible for this resource.

  • Sid string Required

    The credential list Sid that uniquely identifies this resource

Responses

  • The resource was deleted successfully.

DELETE /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json
curl \
 -X DELETE https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json \
 --user "username:password"

Retrieve a list of domains belonging to the account used to make the request

GET /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json

Custom DNS hostnames that can accept SIP traffic

Retrieve a list of domains belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the SipDomain resources to read.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • domains array[object]
      Hide domains attributes Show domains attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • api_version string | null

        The API version used to process the call

      • auth_type string | null

        The types of authentication mapped to the domain

      • byoc_trunk_sid string | null

        The SID of the BYOC Trunk resource.

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

      • domain_name string | null

        The unique address on Twilio to route SIP traffic

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • Whether an emergency caller sid is configured for the domain.

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

      • secure boolean | null

        Whether secure SIP is enabled for the domain

      • Whether emergency calling is enabled for the domain.

      • friendly_name string | null

        The string that you assigned to describe the resource

      • sid string | null

        The unique string that identifies the resource

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

      • sip_registration boolean | null

        Whether SIP registration is allowed

      • subresource_uris object(uri-map) | null

        A list mapping resources associated with the SIP Domain resource

      • uri string(uri) | null

        The URI of the resource, relative to https://api.twilio.com

      • voice_fallback_method string(http-method) | null

        The HTTP method used with voice_fallback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_fallback_url string(uri) | null

        The URL we call when an error occurs while executing TwiML

      • voice_method string(http-method) | null

        The HTTP method to use with voice_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_status_callback_method string(http-method) | null

        The HTTP method we use to call voice_status_callback_url

        Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

      • voice_status_callback_url string(uri) | null

        The URL that we call with status updates

      • voice_url string(uri) | null

        The URL we call when receiving a call

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json \
 --user "username:password"
Response examples (200)
{
  "domains": [
    {
      "account_sid": "string",
      "api_version": "string",
      "auth_type": "string",
      "byoc_trunk_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "domain_name": "string",
      "emergency_caller_sid": "string",
      "emergency_calling_enabled": true,
      "friendly_name": "string",
      "secure": true,
      "sid": "string",
      "sip_registration": true,
      "subresource_uris": {},
      "uri": "https://example.com",
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_status_callback_method": "HEAD",
      "voice_status_callback_url": "https://example.com",
      "voice_url": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "domains": [
    {
      "account_sid": "string",
      "api_version": "string",
      "auth_type": "string",
      "byoc_trunk_sid": "string",
      "domain_name": "string",
      "date_created": "string",
      "date_updated": "string",
      "emergency_caller_sid": "string",
      "secure": true,
      "emergency_calling_enabled": true,
      "friendly_name": "string",
      "sid": "string",
      "sip_registration": true,
      "subresource_uris": {},
      "uri": "https://example.com",
      "voice_fallback_method": "HEAD",
      "voice_fallback_url": "https://example.com",
      "voice_method": "HEAD",
      "voice_status_callback_method": "HEAD",
      "voice_status_callback_url": "https://example.com",
      "voice_url": "https://example.com"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}

Create a new Domain

POST /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json

Custom DNS hostnames that can accept SIP traffic

Create a new Domain

Path parameters

Body

  • The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with.

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

  • DomainName string Required

    The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and "-" and must end with sip.twilio.com.

  • Whether an emergency caller sid is configured for the domain. If present, this phone number will be used as the callback for the emergency call.

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

  • Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses.

  • A descriptive string that you created to describe the resource. It can be up to 64 characters long.

  • Secure boolean

    Whether secure SIP is enabled for the domain. If enabled, TLS will be enforced and SRTP will be negotiated on all incoming calls to this sip domain.

  • Whether to allow SIP Endpoints to register with the domain to receive calls. Can be true or false. true allows SIP Endpoints to register with the domain to receive calls, false does not.

  • VoiceFallbackMethod string(http-method)

    The HTTP method we should use to call voice_fallback_url. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • VoiceFallbackUrl string(uri)

    The URL that we should call when an error occurs while retrieving or executing the TwiML from voice_url.

  • VoiceMethod string(http-method)

    The HTTP method we should use to call voice_url. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • VoiceStatusCallbackMethod string(http-method)

    The HTTP method we should use to call voice_status_callback_url. Can be: GET or POST.

    Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

  • The URL that we should call to pass status parameters (such as call ended) to your application.

  • VoiceUrl string(uri)

    The URL we should when the domain receives a call.

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • api_version string | null

      The API version used to process the call

    • auth_type string | null

      The types of authentication mapped to the domain

    • byoc_trunk_sid string | null

      The SID of the BYOC Trunk resource.

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

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • domain_name string | null

      The unique address on Twilio to route SIP traffic

    • Whether an emergency caller sid is configured for the domain.

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

    • Whether emergency calling is enabled for the domain.

    • friendly_name string | null

      The string that you assigned to describe the resource

    • secure boolean | null

      Whether secure SIP is enabled for the domain

    • sid string | null

      The unique string that identifies the resource

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

    • sip_registration boolean | null

      Whether SIP registration is allowed

    • subresource_uris object(uri-map) | null

      A list mapping resources associated with the SIP Domain resource

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

    • voice_fallback_method string(http-method) | null

      The HTTP method used with voice_fallback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_fallback_url string(uri) | null

      The URL we call when an error occurs while executing TwiML

    • voice_method string(http-method) | null

      The HTTP method to use with voice_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_status_callback_method string(http-method) | null

      The HTTP method we use to call voice_status_callback_url

      Values are HEAD, GET, POST, PATCH, PUT, or DELETE.

    • voice_status_callback_url string(uri) | null

      The URL that we call with status updates

    • voice_url string(uri) | null

      The URL we call when receiving a call

POST /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'ByocTrunkSid=string&DomainName=string&EmergencyCallerSid=string&EmergencyCallingEnabled=true&FriendlyName=string&Secure=true&SipRegistration=true&VoiceFallbackMethod=HEAD&VoiceFallbackUrl=https%3A%2F%2Fexample.com&VoiceMethod=HEAD&VoiceStatusCallbackMethod=HEAD&VoiceStatusCallbackUrl=https%3A%2F%2Fexample.com&VoiceUrl=https%3A%2F%2Fexample.com'
Request example
{
  "ByocTrunkSid": "string",
  "DomainName": "string",
  "EmergencyCallerSid": "string",
  "EmergencyCallingEnabled": true,
  "FriendlyName": "string",
  "Secure": true,
  "SipRegistration": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceStatusCallbackMethod": "HEAD",
  "VoiceStatusCallbackUrl": "https://example.com",
  "VoiceUrl": "https://example.com"
}
Request examples
{
  "ByocTrunkSid": "string",
  "DomainName": "string",
  "EmergencyCallerSid": "string",
  "EmergencyCallingEnabled": true,
  "FriendlyName": "string",
  "Secure": true,
  "SipRegistration": true,
  "VoiceFallbackMethod": "HEAD",
  "VoiceFallbackUrl": "https://example.com",
  "VoiceMethod": "HEAD",
  "VoiceStatusCallbackMethod": "HEAD",
  "VoiceStatusCallbackUrl": "https://example.com",
  "VoiceUrl": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "api_version": "string",
  "auth_type": "string",
  "byoc_trunk_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "domain_name": "string",
  "emergency_caller_sid": "string",
  "emergency_calling_enabled": true,
  "friendly_name": "string",
  "secure": true,
  "sid": "string",
  "sip_registration": true,
  "subresource_uris": {},
  "uri": "https://example.com",
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_status_callback_method": "HEAD",
  "voice_status_callback_url": "https://example.com",
  "voice_url": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "api_version": "string",
  "auth_type": "string",
  "byoc_trunk_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "domain_name": "string",
  "emergency_caller_sid": "string",
  "emergency_calling_enabled": true,
  "friendly_name": "string",
  "secure": true,
  "sid": "string",
  "sip_registration": true,
  "subresource_uris": {},
  "uri": "https://example.com",
  "voice_fallback_method": "HEAD",
  "voice_fallback_url": "https://example.com",
  "voice_method": "HEAD",
  "voice_status_callback_method": "HEAD",
  "voice_status_callback_url": "https://example.com",
  "voice_url": "https://example.com"
}

Retrieve a list of credential list mappings belonging to the domain used in the request

GET /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json

Credential lists for SIP calls

Retrieve a list of credential list mappings belonging to the domain used in the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the CredentialListMapping resources to read.

  • DomainSid string Required

    The SID of the SIP domain that contains the resources to read.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • contents array[object]
      Hide contents attributes Show contents attributes array[object]
      • account_sid string | null

        The SID of the Account that created the resource

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

      • date_created string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was created

      • date_updated string(date-time-rfc-2822) | null

        The RFC 2822 date and time in GMT that the resource was last updated

      • friendly_name string | null

        The string that you assigned to describe the resource

      • sid string | null

        The unique string that identifies the resource

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

    • end integer
    • first_page_uri string(uri)
    • next_page_uri string(uri)
    • page integer
    • page_size integer
    • start integer
    • uri string(uri)
GET /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json \
 --user "username:password"
Response examples (200)
{
  "contents": [
    {
      "account_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "sid": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}
Response examples (200)
{
  "contents": [
    {
      "account_sid": "string",
      "date_created": "string",
      "date_updated": "string",
      "friendly_name": "string",
      "sid": "string"
    }
  ],
  "end": 42,
  "first_page_uri": "https://example.com",
  "next_page_uri": "https://example.com",
  "page": 42,
  "page_size": 42,
  "previous_page_uri": "https://example.com",
  "start": 42,
  "uri": "https://example.com"
}