Import SIP trunk
Import a phone number associated with a SIP trunk.
Phone number in E.164 format (starting with `+`).
SIP server hostname or IP.
Name for this SIP trunk (must be unique within your account).
Optional friendly name for the imported number.
SIP server port.
curl -X POST 'https://backend.omnidim.io/api/v1/phone_number/import/sip' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "phone_number": "+12025550123", "sip_host": "sip.yourprovider.com", "sip_port": 5060 }'
{ "success": true, "message": "SIP trunk registered successfully", "id": 3360 }
Authorization
BearerAuth Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
