A Messaging Service resource to add, fetch or remove short code numbers from a Messaging Service.
Path parameters
-
The SID of the Service to read the resources from.
Minimum length is
34, maximum length is34. Format should match the following pattern:^MG[0-9a-fA-F]{32}$.
GET
/v1/Services/{ServiceSid}/ShortCodes
curl \
--request GET 'https://messaging.twilio.com/v1/Services/{ServiceSid}/ShortCodes' \
--user "username:password"
Response examples (200)
{
"meta": {
"first_page_url": "https://example.com",
"key": "string",
"next_page_url": "https://example.com",
"page": 42,
"page_size": 42,
"previous_page_url": "https://example.com",
"url": "https://example.com"
},
"short_codes": [
{
"account_sid": "string",
"capabilities": [
"string"
],
"country_code": "string",
"date_created": "2026-05-04T09:42:00Z",
"date_updated": "2026-05-04T09:42:00Z",
"service_sid": "string",
"short_code": "string",
"sid": "string",
"url": "https://example.com"
}
]
}