GET
/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.jsonList short codes for an account
Lists short codes belonging to an account. Filter the results by FriendlyName or match numbers with ShortCode, which supports partial numbers and * as a wildcard; use the pagination parameters to retrieve additional pages.
AccountSidstringrequired
The 34-character account SID, beginning with `AC` and followed by 32 hexadecimal characters, whose short codes to list.
FriendlyNamestringoptional
Filter short codes by their friendly name.
ShortCodestringoptional
Filter by a full or partial short code number; use `*` as a wildcard for any digit.
PageSizeintegeroptional
Number of resources to return per page, from 1 to 1000. Defaults to 50 when omitted.
Pageintegeroptional
Zero-based page index used for client state.
PageTokenstringoptional
Page token supplied by the API to retrieve a specific page.
200Returns a paginated response containing short code resources and page metadata, including links to other pages when available.
endintegeroptional
first_page_uristringoptional
next_page_uristringoptional
pageintegeroptional
page_sizeintegeroptional
previous_page_uristringoptional
startintegeroptional
uristringoptional
short_codesarray<object>optional
Error handling
The AccountSid must be a 34-character account SID beginning with AC and ending with 32 hexadecimal characters. PageSize must be between 1 and 1000, and Page must be a non-negative integer.