Skip to main content
POST
/
api
/
v1
/
agents
/
{uuid}
/
channels
/
call
/
sip-trunk
Assign a SIP trunk connection to an agent for calls
curl --request POST \
  --url https://{subdomain}.mihu.ai/api/v1/agents/{uuid}/channels/call/sip-trunk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "connection_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "force": false
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "agent_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "connection_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "phone_number": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://developers.mindhunters.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Path Parameters

uuid
string<uuid>
required

Agent UUID

Body

application/json
connection_uuid
string<uuid>
required

UUID of an existing SIP trunk connection.

force
boolean
default:false

When true, bypass the phone_in_use collision check. Inbound routing always goes to the most recently assigned agent. Use this when multiple agents share a number for outbound.

Response

Assignment successful

success
boolean
message
string
data
object