cURL
curl --request GET \ --url https://api.trillet.ai/v1/api/twilio/phone-numbers/{phoneNumberId}/config \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>'
{ "phoneNumberId": "665a1b2c3d4e5f6a7b8c9d0e", "agentId": "665a1b2c3d4e5f6a7b8c9d0f", "flowType": "call", "direction": "bidirectional", "status": "active", "recording": true, "officeHours": { "enabled": false }, "transferCallerIdMode": "agent", "metadataTags": ["sales", "priority"] }
Retrieve the call flow and message flow configuration for a phone number.