cURL
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" }
Release a phone number from an agent’s call flow. This unbinds the number and automatically cleans up associated SIP trunking.