Skip to main content
POST
Create a campaign

Authorizations

X-API-Key
string
header
required

An organization API key, prefixed bk_live_. Takes precedence over Authorization when both are sent. The key is bound to one organization, and the scopes it was issued with are enforced per endpoint.

Headers

X-Organization-Id
string<uuid>

Required when authenticating with an access token. Optional with an API key, whose own organization binding is authoritative; a value contradicting it is refused with 403.

Body

application/json
name
string
required
Required string length: 1 - 255
type
enum<string>
required
Available options:
regular,
ab_test
channels
enum<string>[]
required
Minimum array length: 1
Available options:
email,
sms,
whatsapp,
push
tags
string[]
brief
object | null
recipients
object
emailContent
object
smsContent
object
whatsappContent
object
pushContent
object
settings
object
abTest
object

Response

success
boolean
required
Example:

true

message
string
required
data
object
required