cURL
curl --request POST \ --url 'https://api.example.com/api/v1/campaign/create?api_key=' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "type": "outbound_call", "start_time": "2023-11-07T05:31:56Z", "interval": 123, "widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "attributes": {}, "status": "not_started", "execution_weekdays": [], "time_window_start": "<string>", "time_window_end": "<string>", "time_zone": "UTC", "enabled": false } '
{ "message": "Data created successfully", "meta": {}, "data": { "name": "<string>", "type": "outbound_call", "start_time": "2023-11-07T05:31:56Z", "interval": 123, "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "attributes": {}, "status": "not_started", "execution_weekdays": [], "time_window_start": "<string>", "time_window_end": "<string>", "time_zone": "UTC", "enabled": false, "contacts": [], "widget_name": "<string>" } }
Create a new campaign
Your API key for authentication. You can generate it from the Settings page. Format: starts with in-.
in-
outbound_call
not_started
to_be_run
in_progress
paused
cancelled
completed
Successful Response
Show child attributes
Was this page helpful?