Skip to main content
POST
Register or update your SIP gateway

Authorizations

Authorization
string
header
required

Bearer token obtained from POST /api/v1.1/auth/token.

Body

application/json
sipIngressIp
string
required

Public IPv4 address of your gateway. See the destination rules above.

Example:

"44.205.10.20"

sipPort
integer
default:5060
Required range: 1024 <= x <= 65535
Example:

5060

transport
enum<string>
default:udp
Available options:
udp,
tcp,
tls
codecs
string[]

Stored and returned, but not applied yet — calls are offered with the voice node's standard codec set.

didRanges
string[]

Which of your numbers to route. Each entry is an exact E.164 number (+14155550123) or an E.164 prefix ending in * (+1628555*). Empty routes every line on your account. Entries in any other form — such as +1415000xxxx — match nothing.

Example:
allowedSourceIps
string[]

Stored and returned, but not enforced yet.

Example:
isSIPEnabled
boolean
default:true

Send false to save the configuration without routing any calls. GET then returns sipConfig: null.

Response

Saved. sipConfig shows every field with defaults filled in.

message
string
Example:

"SIP configuration registered successfully"

sipConfig
object

Where Spenza delivers inbound calls for your lines.

isSIPEnabled
boolean
Example:

true