List short codes
Lists the messaging Short Codes connected to your SignalWire project. These leased codes can send and receive high-volume messages through their configured handlers. Standard long-code phone numbers are available through List phone numbers. Results are sorted by creation date, most recent first.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Numbers.
Authentication
AuthorizationBasic
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.
Example:
Authorization: Basic base64(project_id:token)
Query parameters
filter_name
Filter by name. Returns all short codes containing this value as a substring.
filter_number
Filter by number. Returns all short codes containing this value as a substring.
page_number
The page number to retrieve.
page_size
The number of results per page.
page_token
Token for cursor-based pagination.
Response
The request has succeeded.
links
Pagination links.
data
List of short codes.
Errors
400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error