Retrieve a Short Code

View as Markdown

Retrieves the details of a short code.

Permissions

The API token used to authenticate must have the following scope(s) enabled to make a successful request: Numbers.

Learn more about API scopes.

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) ```

Path parameters

idstringRequiredformat: "uuid"
Unique ID of the short code.

Response

The request has succeeded.
idstringformat: "uuid"
The unique identifier of the short code.
namestring or null
The name given to the short code.
numberstring
The short code number.
capabilitieslist of enums
The messaging capabilities of the short code.
Allowed values:
number_typeenum

The type of number (always ‘shortcode’).

Allowed values:
code_typeenum
The type of short code.
Allowed values:
country_codestring

The ISO 3166-1 alpha-2 country code.

created_atstring
The date and time when the short code was created.
updated_atstring
The date and time when the short code was last updated.
next_billed_atstring or null
The date and time when the short code will next be billed.
lease_durationstring or null

The lease duration of the short code (e.g., ‘12 months’).

message_handlerenum or null
The message handler type for incoming messages.
Allowed values:
message_request_urlstring or null

The URL to send message requests to when using laml_webhooks handler.

message_request_methodenum or null
The HTTP method to use for message requests.
Allowed values:
message_fallback_urlstring or null
The fallback URL for message requests.
message_fallback_methodenum or null
The HTTP method to use for fallback requests.
Allowed values:
message_laml_application_idstring or nullformat: "uuid"

The ID of the LāML application to handle messages when using laml_application handler.

message_relay_contextstring or null

The Relay context to use when using relay_context handler.

Errors