Skip to main content
POST
Create Campaign

Authorizations

X-API-Key
string
header
required

Your organization's API key (account in the bottom-left of the dashboard → Brosbots API).

Headers

authorization
string | null
X-API-Key
string | null

Body

application/json
name
string
required
Required string length: 1 - 255
workflow_id
integer
required
source_type
string
required
Pattern: ^(google-sheet|csv|manual|calendar)$
goal
string | null
Maximum string length: 64
source_id
string
default:""
manual_contacts
ManualContact · object[] | null
source_config
object | null
retry_config
RetryConfig · object | null
source_refresh_minutes
integer | null
Required range: 5 <= x <= 10080
scheduled_start_at
string<date-time> | null
calling_window
CallingWindowRequest · object | null

Hours a campaign may dial in, in the customer's own timezone.

Response

Successful Response

id
integer
required
name
string
required
workflow_id
integer
required
workflow_name
string
required
state
string
required
source_type
string
required
source_id
string
required
total_rows
integer | null
required
processed_rows
integer
required
failed_rows
integer
required
created_at
string<date-time>
required
started_at
string<date-time> | null
required
completed_at
string<date-time> | null
required
goal
string | null
source_config
object | null
source_refresh_minutes
integer | null
source_last_synced_at
string<date-time> | null
source_sync_error
string | null
scheduled_start_at
string<date-time> | null
calling_window
object | null