POST
/
v1
/
api
/
agents
/
{agentId}
/
bind
/
{phoneNumberId}
curl --request POST \
  --url https://api.trillet.ai/v1/api/agents/{agentId}/bind/{phoneNumberId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '{
  "name": "<string>"
}'
{
  "status": "success",
  "message": "Call flow bound to phone number successfully"
}

Path Parameters

agentId
string
required

The ID of the call flow (agent) to bind.

phoneNumberId
string
required

The ID of the phone number to bind the call flow to.

Headers

x-workspace-id
string
required

Workspace identifier for the API.

Response Fields

status
string

Indicates the success or failure of the binding operation.

message
string

Provides feedback about the binding process.

Request Body

name
string

This is just a dummy object (have nothing adding to this call).

Example Response

{
  "status": "success",
  "message": "Call flow bound to phone number successfully"
}