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

  • 200

    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
      • 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"
}