Short Codes
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.
Learn more about API scopes.
get/api/relay/rest/short_codes/{id}
Path parameters
idstring uuid required
Universal Unique Identifier.
Unique ID of the short code.
Response
The request has succeeded.
Example response
{
"name": "My Short Code",
"number": "12345",
"number_type": "shortcode",
"country_code": "US",
"created_at": "2023-01-15T10:30:00Z",
"updated_at": "2023-01-15T10:30:00Z",
"next_billed_at": "2024-01-15T10:30:00Z",
"lease_duration": "12 months",
"message_request_url": "https://example.com/message",
"message_fallback_url": "https://example.com/fallback",
"message_relay_context": "my-context"
}Changes
No changes found, but 3 of the 137 revisions have a changelog that could not be searched — this endpoint may have changed in one of them.