POST
/
v1
/
api
/
agents
/
{agentId}
/
release
/
{phoneNumberId}
curl --request POST \
  --url https://api.trillet.ai/v1/api/agents/{agentId}/release/{phoneNumberId} \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>'
{
  "status": "success",
  "message": "Call flow released from phone number successfully"
}

Path Parameters

agentId
string
required

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

phoneNumberId
string
required

The ID of the phone number to release.

Headers

x-workspace-id
string
required

Workspace identifier for the API.

Response Fields

status
string

Indicates the success or failure of the unbinding operation.

message
string

Provides feedback about the unbinding process.

Request Body

No request body is required for this endpoint.

{
  "status": "success",
  "message": "Call flow released from phone number successfully"
}