Skip to main content
POST
/
api
/
v1
/
channels
/
sip-trunk
/
connections
Add a new SIP trunk connection
curl --request POST \
  --url https://{subdomain}.mihu.ai/api/v1/channels/sip-trunk/connections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "phone_number": "<string>",
  "gateway": "<string>",
  "username": "<string>",
  "password": "<string>",
  "secondary_gateway": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "phone_number": "<string>",
    "gateway": "<string>",
    "secondary_gateway": "<string>",
    "status": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

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}"

Body

application/json
name
string
required

Friendly label. Free-form.

Maximum string length: 255
phone_number
string
required

The phone number the trunk routes calls to. Stored exactly as provided.

Maximum string length: 32
gateway
string
required

Primary SIP server hostname or IP from your provider. Examples: sip.telnyx.com, sip.zadarma.com. Not a phone number, not a URL with scheme — just the host.

Maximum string length: 255
username
string
required

SIP auth username. Never returned in responses.

Maximum string length: 255
password
string
required

SIP auth password. Never returned in responses.

Maximum string length: 255
secondary_gateway
string | null

Optional fallback SIP server. Same format as gateway. Leave blank if your provider has only one.

Maximum string length: 255

Response

Connection created

success
boolean
message
string
data
object