cURL
curl --request POST \ --url https://api.ravan.ai/api/v1/campaigns/ \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <api-key>' \ --data ' { "name": "<string>", "agent_id": "<string>", "phone_number_id": "<string>", "from_phone_number": "<string>", "contact_ids": [ "<string>" ], "schedule": { "start": "<string>", "end": "<string>", "window_start": "<string>", "window_end": "<string>", "window_days": [ 123 ], "timezone": "<string>", "max_concurrent": 123, "retry_attempts": 123, "retry_gap_min": 123 } } '
{ "success": true, "message": "<string>", "data": { "id": "<string>", "organization_id": "<string>", "name": "<string>", "agent_id": "<string>", "phone_number_id": "<string>", "from_phone_number": "<string>", "status": "<string>", "execution_status": "<string>", "schedule": { "start": "<string>", "end": "<string>", "window_start": "<string>", "window_end": "<string>", "window_days": [ 123 ], "timezone": "<string>", "max_concurrent": 123, "retry_attempts": 123, "retry_gap_min": 123 }, "contact_stats": { "total": 123, "contacted": 123, "successful": 123, "failed": 123, "no_answer": 123, "pending": 123, "in_progress": 123 }, "started_at": "<string>", "completed_at": "<string>", "created_at": "<string>", "updated_at": "<string>" } }
Create Campaign.
Documentation IndexFetch the complete documentation index at: https://docs.ravan.ai/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.ravan.ai/llms.txt
Use this file to discover all available pages before exploring further.
Show schedule
Show data
draft
running
paused
completed
Campaign name
UUID of the assigned agent
UUID of the phone number
Caller ID (E.164)
Array of contact UUIDs
Show child attributes
Successful response