Skip to navigation

createSipEndpoint

View as MarkdownOpen in Claude

Create a new SIP endpoint for a subscriber.

Path parameters

fabric_subscriber_idstringRequiredformat: "uuid"
Unique ID of a Fabric Subscriber.

Request

usernamestringRequired
Username of the Sip Endpoint.
passwordstringRequired
Password of the Sip Endpoint.
caller_idstringOptional
Caller ID of the Sip Endpoint.
send_asstringOptional
The Number to send as.
cipherslist of enumsOptional
Ciphers of the Sip Endpoint.
Allowed values:
codecslist of enumsOptional
Codecs of the Sip Endpoint.
encryptionenumOptionalDefaults to default
Encryption requirement of the Sip Endpoint.
Allowed values:

Response

idstringRequiredformat: "uuid"
Unique ID of the Sip Endpoint.
usernamestringRequired
Username of the Sip Endpoint.
caller_idstringRequired
Caller ID of the Sip Endpoint.
send_asstringRequired
Purchased or verified number
cipherslist of enumsRequired
Ciphers of the Sip Endpoint.
Allowed values:
codecslist of enumsRequired
Codecs of the Sip Endpoint.
encryptionenumRequired
Encryption requirement of the Sip Endpoint.
Allowed values:

Response Example

Response
{
"id": "acaa5c49-be5e-4477-bce0-48f4b23b7720",
"username": "justice-league",
"caller_id": "call-id-123",
"send_as": "+14632322867",
"ciphers": [
"AEAD_AES_256_GCM_8"
],
"codecs": [
"PCMU"
],
"encryption": "optional"
}

Example

import { RestClient } from "@signalwire/sdk";
const client = new RestClient({
project: "your-project-id",
token: "your-api-token",
host: "your-space.signalwire.com"
});
const result = await client.fabric.subscribers.createSipEndpoint("subscriber-id", {
username: "alice-sip",
password: "s3cret"
});
console.log("Created SIP endpoint:", result.id);