Skip to main content
POST
Create agent assignment on SIP trunk

Authorizations

Authorization
string
header
required

Send your organization API key as Authorization: Bearer <key>.

Path Parameters

id
string<uuid>
required

SIP trunk id

Body

application/json

Create assignment. Use number for digest-auth trunks (unique on this trunk). Use alternate_number for ACL trunks (globally unique). Both may be set if you use both routing styles.

agent_id
string<uuid>
required
number
string

Target number to dial for digest inbound auth; unique among assignments on this SIP trunk.

alternate_number
string

Globally unique alternate number to dial when the trunk uses ACL inbound auth.

Response

Created assignment

Binds an org agent to a SIP trunk. With digest inbound auth, routing uses number. With ACL inbound auth, routing uses alternate_number (globally unique).

id
string<uuid>
agent_id
string<uuid>
sip_trunk_id
string<uuid>
number
string

Number to dial for this agent when the trunk uses digest inbound auth; must be unique among assignments on this trunk.

alternate_number
string

Globally unique alternate dial string when the trunk uses ACL inbound auth; used instead of per-trunk number routing in that mode.

created_at
string<date-time>