POST
/
v1
/
api
/
agents
/
{agentId}
/
release
/
{phoneNumberId}
Release Phone Number from Agent
curl --request POST \
  --url https://api.trillet.ai/v1/api/agents/{agentId}/release/{phoneNumberId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '{
  "confirmation": true
}'
{
  "status": "success",
  "message": "Call flow released from phone number successfully"
}

Path Parameters

agentId
string
required
The ID of the agent whose phone number will be released.
phoneNumberId
string
required
The ID of the phone number to release from the agent.

Headers

x-workspace-id
string
required
Workspace identifier for the API. Required to scope the release operation.

Request Body

confirmation
boolean
Are you sure you want to unbind this?

Response Fields

agent
object
The updated agent object after the phone number has been released.

Request Body

No request body is required for this endpoint.
{
  "status": "success",
  "message": "Call flow released from phone number successfully"
}