curl --location 'https://api.snakk.ai/api/calls/outbound-dynamic' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"toNumber": "string",
"fromNumber": "string",
"agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2",
"dynamicVariables": {
"property1": "string",
"property2": "string"
},
"trunkId": "string",
"agentConfig": {
"name": "Dynamic Agent",
"instructions": "stringstri",
"voice": "cedar",
"temperature": 0.8,
"recording_enabled": false,
"silent_recording_enabled": false,
"recording_prompt": "string",
"greeting_message": "string",
"greeting_speaks_first": true,
"transfer_enabled": false,
"transfer_number": "string",
"turn_detection_settings": {
"threshold": 0,
"prefix_padding_ms": 0,
"silence_duration_ms": 0
},
"structured_output_enabled": true,
"structured_output_schema": {
"property1": "string",
"property2": "string"
},
"structured_output_prompt": "string",
"structured_output_webhook": "http://example.com",
"end_call_webhook": "http://example.com",
"summary_prompt": "string",
"tools": [
{
"name": "string",
"display_name": "string",
"description": "string",
"type": "webhook",
"webhook_url": "http://example.com",
"webhook_method": "string",
"parameters": {
"property1": "string",
"property2": "string"
},
"transfer_number": "string",
"enabled": true
}
]
}
}'