POST
/
api
/
v1
/
campaign
/
create
{
  "message": "<string>",
  "meta": {},
  "data": {
    "name": "<string>",
    "widget_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "outbound_call",
    "attributes": {},
    "status": "not_started",
    "execution_weekdays": [],
    "time_window_start": "<string>",
    "time_window_end": "<string>",
    "time_zone": "UTC",
    "start_time": "2023-11-07T05:31:56Z",
    "interval": 123,
    "enabled": false,
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "contacts": [],
    "widget_name": "<string>"
  }
}

Authorizations

api_key
string
query
required

Your API key for authentication. You can generate it from the Settings page. Format: starts with in-.

Body

application/json
name
string
required
type
enum<string>
required
Available options:
outbound_call
start_time
string<date-time>
required
interval
integer
required
widget_id
string<uuid> | null
attributes
object
status
enum<string>
Available options:
not_started,
to_be_run,
in_progress,
paused,
cancelled,
completed
execution_weekdays
integer[]
time_window_start
string<time> | null
time_window_end
string<time> | null
time_zone
string
default:UTC
enabled
boolean
default:false

Response

Successful Response

message
string | null
default:Data created successfully
meta
data
object | null