GET
/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.jsonList short codes
Lists short codes belonging to the account used for the request. Filter the collection by FriendlyName or a wildcard-capable ShortCode pattern, and use the pagination parameters to control the result page.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
AccountSidstringrequired
The account SID whose short codes you want to list. Must be a 34-character SID beginning with `AC`.
FriendlyNamestringoptional
Filters short codes by the string assigned to identify the resources.
ShortCodestringoptional
Filters short codes by number pattern; partial numbers and `*` as a wildcard for any digit are supported.
PageSizeintegeroptional
The number of resources to return per page. Must be between 1 and 1000 and defaults to 50 when omitted.
Pageintegeroptional
The page index used for client-side pagination state. Must be zero or greater when provided.
PageTokenstringoptional
The pagination token supplied by the API for retrieving a subsequent page.
200Returns a paginated object containing short code resources and navigation metadata including page boundaries, page links, and page size.
endintegeroptional
first_page_uristringoptional
next_page_uristringoptional
pageintegeroptional
page_sizeintegeroptional
previous_page_uristringoptional
startintegeroptional
uristringoptional
short_codesarray<object>optional
Error handling
AccountSid must be a 34-character account SID beginning with AC. PageSize must be between 1 and 1000, Page must be zero or greater, and ShortCode can contain partial numbers with * used as a wildcard for any digit.