Get short code
Retrieves one messaging Short Code connected to your SignalWire project. Use List short codes to find Short Codes, or Get phone number for a standard long code.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Numbers.
Authentication
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
Response
The type of number (always ‘shortcode’).
The ISO 3166-1 alpha-2 country code.
The lease duration of the short code (e.g., ‘12 months’).
The URL to send message requests to when using laml_webhooks handler.
The ID of the LāML application to handle messages when using laml_application handler.
The Relay context to use when using relay_context handler.