Skip to content
API PlatformDevelopers

Error codes

invalid_input

HTTP 400 · The request is not valid

What it means

Something in the request is missing or has the wrong format. errors[] points at each field.

What to do

Read detail and errors[], fix the fields, and send it again.

Reasons

Some answers carry a reason that says which rule refused the request:

idempotency_required
A broadcast send needs an Idempotency-Key header, so a retry never sends twice.
idempotency_conflict
That Idempotency-Key was already used for a different broadcast. Use a new key for a new broadcast.
audience_unbounded
The broadcast has no audience. Choose group_ids, filter and/or saved_filter_id, or all_contacts: true.
audience_empty
Nobody can receive the broadcast: no contact matches, or all are on do-not-disturb or have no number.
audience_count_required
Preview the broadcast with ?dry_run=true first, then send it.
campaign_ambiguous
The workspace has several campaigns and none was chosen. Pass campaign_id: the preview's campaign_choices (and this answer's) list some.
tags_not_supported
Contact tags cannot choose a broadcast audience. Use groups, or a filter with conversationTags.
input_not_allowed
bypass_rate_limit and batches are available in the app only.
schedule_invalid
scheduled_at is in the past, more than 30 days ahead, not a valid time in timezone, or combined with send_now.
cap_exceeded
Over a workspace limit, named by cap, limit and value. For a large audience, send confirm_large_send: true. See the Sending broadcasts guide.

Returned by