curl --request POST \
--url https://api.kejue.co/api/v1/persona-calls \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"persona_id": "<string>",
"contact_id": "<string>",
"contact": {
"phone": "<string>",
"whatsapp_number": "<string>",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"company": "<string>",
"job_title": "<string>",
"country": "<string>",
"timezone": "<string>",
"language": "<string>",
"tags": [
"<string>"
],
"metadata": {}
},
"agent_id": "<string>",
"phone_number_id": "<string>",
"schedule_at": "2023-11-07T05:31:56Z",
"priority": 50,
"config": {
"prompt": "<string>",
"first_message": "<string>",
"first_message_uninterruptible": true,
"voice_id": "<string>",
"temperature": 1,
"max_duration": 3615,
"silence_timeout": 62,
"recording_enabled": true,
"language_locale": "<string>",
"inactivity_messages": [
{
"delay_seconds": 15,
"end_behavior": "END_BEHAVIOR_UNSPECIFIED",
"message": "Are you still there?"
}
],
"call_start_hour": 11,
"call_start_minute": 29,
"call_end_hour": 11,
"call_end_minute": 29,
"allowed_days": [
123
],
"auto_retry": true,
"retry_schedule": [
123
],
"scoring_criteria": "<string>",
"tools": [
{
"id": "<string>",
"config": {}
}
],
"tags": [
{
"name": "<string>",
"description": "<string>"
}
],
"structured_data_schema": [
{
"key": "<string>",
"description": "<string>"
}
],
"server_url": "<string>",
"server_secret": "<string>",
"webhooks": [
{
"url": "<string>",
"events": [],
"signing_method": "hmac_sha256",
"secret": "<string>"
}
],
"webhook_ids": [
"<string>"
]
},
"external_reference": "<string>",
"context": {}
}
'