API reference · Broadcasts
Send a broadcast
POST/v1/broadcasts1 operation a passSafe to retry with Idempotency-KeySends one message to every active pass a search finds, as Send a notification would to each, in the background.
Body
messagestring, up to 256 charactersrequiredWhat holders see.
filtersobjectWhich passes: the same search and filters as List passes, such as { "q": "gold", "appleInstalled": "true" }. Left out or empty, every active pass. An unknown filter is refused, so a typo can't reach everyone.
Answer
202Started
Which passes it reaches is fixed now: passes made later aren't included. Follow it with Get a broadcast.
Errors
Every error has the same shape: see Errors.
| Status | Code | When |
|---|---|---|
| 400 | validation_error | No message, it's too long, it has a placeholder such as {{name}} (messages are sent exactly as written), or a filter isn't valid. |
| 409 | idempotency_conflict | The Idempotency-Key was already used for a different request. |
| 409 | broadcast_in_progress | Another broadcast is still sending: one at a time. |
| 422 | no_matching_passes | No active pass matches. |
| 429 | broadcast_over_allowance | It would go past this month's operations. preview says what's left. |
- A pass is never sent the same broadcast twice, even if part of it runs again.