Skip to main content
POST
assign an agent to a sip trunk

Authorizations

Authorization
string
header
required

your rumik api key, e.g. rk_live_.... create one in the rumik dashboard.

Path Parameters

trunk_id
string<uuid>
required

the SIP trunk's id.

Body

application/json

Which agent answers a number; null detaches it.

agentId
string | null

the agent's UUID or ua_… handle; null unassigns.

Maximum string length: 64

Response

ok.

one of your own numbers registered on the platform.

id
string<uuid>
required

the trunk's id — fromTrunkId on POST /v1/calls.

phoneNumber
string
required

the number, E.164.

displayName
string
required
terminationUri
string
required
hasAuth
boolean
required

whether credentials are stored.

status
string
required

active.

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
authUsername
string | null
originationUri
string | null

the SIP address your carrier must send inbound calls to.

assignedAgentId
string<uuid> | null

the agent answering the number, or null.

assignedAgentName
string | null

that agent's name.