Skip to main content
POST
Link an agent to a phone number

Authorizations

Authorization
string
header
required

Secret API key (omic_...) obtained from the OpenMic dashboard. The public key (omic_pub_...) is only accepted by /whoami, /create-web-call, and the agent test-call endpoints; every other endpoint rejects it with 403 This endpoint requires a private API key.

Body

application/json
phone_number_id
string
required
agent_uid
string
required
direction
enum<string>
required
Available options:
inbound,
outbound,
both

Response

Updated phone number.

id
string
required
phone_number
string
required
name
string
inbound_agent_uid
string
outbound_agent_uid
string
created_at
string<date-time>
updated_at
string<date-time>