Create VoiceLink call routing
Creates a call-routing record for a DID (one record per DID). Provide either did_id or did_number. for_inbound_call and for_outbound_call are VoiceLink mode integers; 3 routes to a WebSocket bot. For the common outbound case, prefer POST /voicelink/call-ready, which performs the same setup safely. This endpoint never purchases or renews DIDs, runs KYC, allocates wallet or credit, or deletes local Vocobase data. Numeric fields are validated strictly: zero, negative, non-integer, or non-finite values are rejected with a 400 VALIDATION_ERROR naming the field.
Authorizations
API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.
Body
- Option 1
- Option 2
Creates a call-routing record for a DID. Provide either did_id or did_number.
VoiceLink DID ID. Provide either did_id or did_number.
x >= 1VoiceLink inbound mode: 1 mobile, 2 SIP, 3 WebSocket bot.
x >= 0VoiceLink outbound mode: 2 SIP, 3 WebSocket bot, 4 only-answer.
x >= 0Optional unless multiple active VoiceLink connections exist. connectionId is accepted for backwards compatibility.
DID number. Used when did_id is not available.
VoiceLink bot ID when for_inbound_call is 3.
x >= 1VoiceLink SIP trunk ID when for_inbound_call is 2.
x >= 1VoiceLink bot ID when for_outbound_call is 3.
x >= 1VoiceLink SIP trunk ID when for_outbound_call is 2.
x >= 1Routing status: 1 active (default), 0 inactive.
0, 1