← Back to API Reference

POST /broadcasts

Create Broadcast

Compatibility endpoint to create broadcast data.

Request (cURL)

curl -X POST "http://localhost:8080/v1/broadcasts" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "order-delay-campaign",
  "audience_id": "aud_123",
  "segment_id": "seg_123",
  "subject": "We are still working on your order",
  "html": "<p>Thanks for your patience.</p>",
  "text": "Thanks for your patience.",
  "category": "reminder",
  "topic": "renewal_reminders"
}'

Response Example

{
  "id": "id_123"
}

Request Body Example

{
  "name": "order-delay-campaign",
  "audience_id": "aud_123",
  "segment_id": "seg_123",
  "subject": "We are still working on your order",
  "html": "<p>Thanks for your patience.</p>",
  "text": "Thanks for your patience.",
  "category": "reminder",
  "topic": "renewal_reminders"
}