get

View as MarkdownOpen in Claude

Retrieve a single SIP gateway resource.

Path parameters

idstringRequiredformat: "uuid"
Unique ID of a SIP Gateway.

Response

idstringRequiredformat: "uuid"
Unique ID of the resource.
project_idstringRequiredformat: "uuid"
Project ID associated with the resource.
display_namestringRequired
Display name of the SIP Gateway.
typeenumRequired
Type of the resource.
created_atdatetimeRequired
Timestamp when the resource was created.
updated_atdatetimeRequired
Timestamp when the resource was last updated.
sip_gatewayobjectRequired
SIP Gateway configuration details.

Response Example

Response
{
"id": "0823a606-0aff-4c90-9eba-f88ba118fe05",
"project_id": "bc949800-7b40-43cf-8438-a85facfcbdd1",
"display_name": "My SIP Gateway",
"type": "sip_gateway",
"created_at": "2024-05-06T12:20:00Z",
"updated_at": "2024-05-06T12:20:00Z",
"sip_gateway": {
"id": "cce59cad-104d-4c28-ada4-98cfd102ae09",
"uri": "user3@domain.com",
"name": "My SIP Gateway",
"ciphers": [
"AEAD_AES_256_GCM_8"
],
"codecs": [
"OPUS"
],
"encryption": "required"
}
}

Example

import { RestClient } from "@signalwire/sdk";
const client = new RestClient({
project: "your-project-id",
token: "your-api-token",
host: "your-space.signalwire.com",
});
const gateway = await client.fabric.sipGateways.get("gateway-id");
console.log("Sip Gateway:", gateway.display_name, "ID:", gateway.id);