Retrieve a list of outgoing-caller-ids belonging to the account used to make the request
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
Retrieve a list of outgoing-caller-ids belonging to the account used to make the request
Path parameters
-
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.
-
FriendlyName string
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 is1000
.
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"
}