Server SDKs
Build AI agents, control calls, send messages, and more
Retrieve a specific short code.
format: "uuid"
1{2 "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",3 "name": "My Short Code",4 "number": "12345",5 "capabilities": [6 "sms"7 ],8 "number_type": "shortcode",9 "code_type": "vanity",10 "country_code": "US",11 "created_at": "2023-01-15T10:30:00Z",12 "updated_at": "2023-01-15T10:30:00Z",13 "next_billed_at": "2024-01-15T10:30:00Z",14 "lease_duration": "12 months",15 "message_handler": "relay_context",16 "message_request_url": "https://example.com/message",17 "message_request_method": "GET",18 "message_fallback_url": "https://example.com/fallback",19 "message_fallback_method": "GET",20 "message_laml_application_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",21 "message_relay_context": "my-context"22}
1import { RestClient } from "@signalwire/sdk";23const client = new RestClient({4 project: "your-project-id",5 token: "your-api-token",6 host: "your-space.signalwire.com"7});89const code = await client.shortCodes.get("short-code-id");10console.log(code.number);