Skip to main content
POST
Link Bot to Phone Number

Authorizations

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header as: Authorization: Bearer <your-api-key>

Body

application/json

Bot linking details

phone_number_id
string
required

Unique identifier of the phone number

agent_id
string
required

Bot ID to link

direction
enum<string>
required

Direction for the bot assignment

Available options:
inbound,
outbound,
both

Response

Bot linked to phone number successfully

phone_number_id
string
required

Unique identifier of the phone number

phone_number
string
required

Phone number in E.164 format

message
string
required

Success message

inbound_agent_id
string

Bot ID for inbound calls

outbound_agent_id
string

Bot ID for outbound calls