Create Campaign

Creates a new campaign. If no status is provided, campaigns default to INACTIVE.

See the campaign object reference for more information.

POST/campaigns

Body application/json

namestringrequired

Campaign name for identification.

account_idstringrequired

Your WHITELABEL account ID, found in the WHITELABEL Dashboard (UUID).

organization_codestringrequired

Your organization identifier (UUID).

countrystringrequired

ISO 3166-1 alpha-2 country code (e.g., CO, MX, BR).

channel"WHATSAPP_MESSAGE" | "PHONE_CALL"required

Communication channel.

focusstring

Campaign focus descriptor (e.g., payment_recovery).

scheduleobjectrequired

Scheduling configuration.

Show schedule properties
daily_start_timestringrequired

Start of daily send window in HH:MM format.

daily_end_timestringrequired

End of daily send window in HH:MM format.

time_zonestringrequired

IANA timezone (e.g., America/Bogota) or UTC offset (e.g., -05:00)

durationobjectrequired

Campaign active period.

Show duration properties
start_atstringrequired

Campaign start date in ISO 8601 format.

end_atstringrequired

Campaign end date in ISO 8601 format. Must be after start_at.

Response

Created

dataobject
Show data properties
idstring
namestring
account_idstring
organization_codestring
countrystring
channelstring
scheduleobject
Show schedule properties
daily_start_timestring
daily_end_timestring
time_zonestring
durationobject
Show duration properties
start_atstring
end_atstring
statusstring
created_atstring
updated_atstring
Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/campaigns" \
  -H "Content-Type: application/json" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>" \
  -d '{
  "name": "string",
  "account_id": "string",
  "organization_code": "string",
  "country": "string",
  "channel": "WHATSAPP_MESSAGE",
  "focus": "string",
  "schedule": {
    "daily_start_time": "string",
    "daily_end_time": "string",
    "time_zone": "string"
  },
  "duration": {
    "start_at": "string",
    "end_at": "string"
  }
}'
Response
(no body)