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-Keyheader, so a retry never sends twice. - idempotency_conflict
- That
Idempotency-Keywas already used for a different broadcast. Use a new key for a new broadcast. - audience_unbounded
- The broadcast has no audience. Choose
group_ids,filterand/orsaved_filter_id, orall_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=truefirst, then send it. - campaign_ambiguous
- The workspace has several campaigns and none was chosen. Pass
campaign_id: the preview'scampaign_choices(and this answer's) list some. - tags_not_supported
- Contact tags cannot choose a broadcast audience. Use groups, or a
filterwithconversationTags. - input_not_allowed
bypass_rate_limitandbatchesare available in the app only.- schedule_invalid
scheduled_atis in the past, more than 30 days ahead, not a valid time intimezone, or combined withsend_now.- cap_exceeded
- Over a workspace limit, named by
cap,limitandvalue. For a large audience, sendconfirm_large_send: true. See the Sending broadcasts guide.
Returned by
- List channels
- List team members
- List contacts
- Create or update a contact
- Search contacts
- Get a contact
- Update a contact
- Delete a contact
- Find a contact by phone
- Count contacts
- Count contacts by filter
- List contact groups
- Create a contact group
- List custom fields
- Create a custom field
- Get a custom field
- Update a custom field
- Delete a custom field
- List contact tags
- Create a tag
- List saved filters
- Save a contact filter
- Get a saved filter
- Change a saved filter
- Delete a saved filter
- Check a contact filter
- Turn off do-not-disturb for a contact
- Add tags to contacts
- Remove tags from contacts
- Add contacts to a group
- Remove contacts from a group
- Rename a contact group
- Delete a contact group
- Delete a tag
- Import contacts in bulk
- List quick messages
- Create a quick message
- Update a quick message
- Delete a quick message
- List WhatsApp templates
- Create a WhatsApp template
- Get a template
- Edit a WhatsApp template
- Check a template draft
- Archive templates
- Upload a template header sample
- List broadcasts
- Create and send a WhatsApp broadcast
- Get a broadcast
- Pause a broadcast
- Stop a broadcast
- Cancel a scheduled broadcast
- Send a WhatsApp template
- List WhatsApp short links
- Create a short link
- Get a short link
- Change a short link's message
- Delete a short link
- List endpoints
- Create an endpoint
- Get an endpoint
- Update an endpoint
- Delete an endpoint
- List event types
- Get a sample payload
- List deliveries
- Get a delivery
- List events
- Get an event
- Turn an endpoint on
- Turn an endpoint off
- Rotate the signing secret
- Set subscriptions
- Send a test event
- Retry a delivery now
- Replay an event
- List conversations
- Get a conversation and its 24-hour window
- List messages of a conversation
- Send a message in a conversation
- Get the file of a message
- Count conversations
- Assign a conversation
- Unassign a conversation
- Close a conversation
- Reopen a conversation
- Add an internal note
- Tag a conversation
- Untag a conversation
- Set a reminder
- Share a conversation with a teammate
- Stop sharing a conversation
- List access rules
- Set an access rule
- Delete an access rule
- Send a message
- Add a system message
- Send a file in a conversation
- See whether the bot answers a conversation
- Turn the bot off or on for a conversation
- List business hours
- Create business hours
- Get business hours
- Update business hours
- Delete business hours
- Duplicate business hours
- Add a holiday or special day
- Change a holiday or special day
- Remove a holiday or special day
- List holiday templates
- Import public holidays
- Are we open now?