Retrieve a list of short-codes belonging to the account used to make the request
Messaging short codes
Retrieve a list of short-codes belonging to the account used to make the request
Path parameters
-
The SID of the Account that created the ShortCode resource(s) to read.
Query parameters
-
FriendlyName string
The string that identifies the ShortCode resources to read.
-
ShortCode string
Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit.
-
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}/SMS/ShortCodes.json
curl \
-X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.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",
"short_codes": [
{
"account_sid": "string",
"api_version": "string",
"date_created": "string",
"date_updated": "string",
"friendly_name": "string",
"short_code": "string",
"sid": "string",
"sms_fallback_method": "HEAD",
"sms_fallback_url": "https://example.com",
"sms_method": "HEAD",
"sms_url": "https://example.com",
"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",
"short_codes": [
{
"account_sid": "string",
"api_version": "string",
"date_created": "string",
"date_updated": "string",
"friendly_name": "string",
"short_code": "string",
"sid": "string",
"sms_fallback_method": "HEAD",
"sms_fallback_url": "https://example.com",
"sms_method": "HEAD",
"sms_url": "https://example.com",
"uri": "https://example.com"
}
],
"start": 42,
"uri": "https://example.com"
}