For the complete documentation index, see llms.txt. This page is also available as Markdown.

Short Code Numbers

Overview

A short number (4-6 digits) used for sending and receiving SMS and MMS messages to mobile phones in a single country. Short code numbers are strictly domestic and are not recommended for sending international traffic.

API Access

The following API requests can only be made using a valid access key, and attached to an access role, with an access policy that at least specifies the permissions to the resources outlined in each section below. Learn more about API access.

List Short Code Numbers

In order to retrieve all short code numbers available in your workspace you can use this request.

List workspace short code numbers

get

Get a list of all short code numbers assigned to your workspace. The results can be paginated. To learn more about the pagination, please refer to the pagination section on API Access Common API Usage section.

Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token

Path parameters
workspaceIdstring · uuidRequired

The unique identifier of the workspace.

Query parameters
limitinteger · max: 100Optional

Limits the number of results to return.

Default: 25
pageTokenstringOptional

The cursor that keeps track of the current position in the results.

reversebooleanOptional

Reverses the order in which the results are returned.

Default: false
Responses
200

OK

application/json
nextPageTokenstringOptional

The token that can be passed as pageToken in URL to retrieve the next set of results. If missing, no more results to display. To know more, refer to the pagination section.

get/workspaces/{workspaceId}/numbers-short-code
200

OK

Get a Short Code Number

In order to retrieve the details of a short code number available in your workspace you can use this request.

Get workspace short code number by id

get

This endpoint returns the previously created short code number by its ID.

Authorizations
HTTPRequired

Uses the Authorization header: 'AccessKey ' followed by your access key token

Path parameters
workspaceIdstring · uuidRequired

The unique identifier of the workspace.

shortCodeNumberIdstringRequired

Your short code number/endpoint ID.

Example: 65b18a3d-6515-4ee5-bd6d-6d638cf9bc78
Responses
200

OK

application/json
idstring · uuidRequired
endpointIdstring · uuidRequired
typestring · enumRequiredPossible values:
numberStringstringRequired
countryCodestring · iso3166-1Required

The country code in ISO 3166-1 alpha-2 format.

Example: US
createdAtstring · date-timeRequired
updatedAtstring · date-timeRequired
get/workspaces/{workspaceId}/numbers-short-code/{shortCodeNumberId}

Last updated

Was this helpful?