Attach a number to a SIP trunk
Routes the number's calls to the trunk: the external platform receives its inbound directly and can present it as outbound caller ID. While attached, Zernio-side voice features are off for this number (call forwarding, IVR, voicemail, recording, the softphone, and WhatsApp calling), so the number must have Calls and WhatsApp calling disabled before attaching. SMS and WhatsApp messaging are unaffected.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Phone number record ID (from GET /v1/phone-numbers).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
{ "attached": true, "phoneNumber": "string", "trunkId": "string"}Disable phone calling on a number
Turns off PSTN calling for the number. The stored forward destination and settings are preserved, so re-enabling restores the prior config.
Detach a number from its SIP trunk
Returns the number's calls to Zernio routing. Idempotent when the number is not attached to any trunk.