Skip to main content
POST
/
api
/
v1
/
pbx_extension_connectors
Create a PBX extension connector
curl --request POST \
  --url https://{subdomain}.mihu.ai/api/v1/pbx_extension_connectors \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "phone_number": "+12084439178",
  "registrar_server": "sip.example.com",
  "username_extension": "user-100",
  "pbx_password": "<string>",
  "allowed_ip": "192.168.1.100",
  "setup_mode": "both",
  "connection_type": "udp",
  "port": 5060,
  "auth_username": "<string>",
  "auth_password": "<string>",
  "normalizer": {
    "default_prefix": "<string>",
    "condition_length": "<string>",
    "condition_prefix": "<string>"
  }
}
'
{
  "success": true,
  "data": {
    "pbx_extension_connector_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "status": "active",
    "phone_number": "<string>",
    "agent_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "agent_name": "<string>",
    "sip_connector_server": "<string>",
    "connection_type": "udp",
    "setup_mode": "both",
    "pbx": {
      "registrar_server": "<string>",
      "port": 123,
      "username_extension": "<string>"
    },
    "inbound": {
      "allowed_ip": "<string>"
    },
    "auth": {
      "has_separate_credentials": true,
      "username": "<string>"
    },
    "normalizer": {
      "default_prefix": "<string>",
      "condition_length": "<string>",
      "condition_prefix": "<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
agent_uuid
string<uuid>
required
phone_number
string
required
Example:

"+12084439178"

registrar_server
string
required
Example:

"sip.example.com"

username_extension
string
required
Example:

"user-100"

pbx_password
string
required
allowed_ip
string
required
Example:

"192.168.1.100"

setup_mode
enum<string>
default:both
Available options:
both,
inbound,
outbound
connection_type
enum<string>
default:udp
Available options:
udp,
tls
port
integer
default:5060
auth_username
string | null
auth_password
string | null
normalizer
object

Response

Created

success
boolean
data
object

A PBX extension connector that registers an existing SIP/PBX endpoint to an AI voice agent. Sensitive credentials (passwords) are never returned by the API.