WalletPassAPI Docs

API reference · Broadcasts

Send a broadcast

POST/v1/broadcasts1 operation a passSafe to retry with Idempotency-Key

Sends one message to every active pass a search finds, as Send a notification would to each, in the background.

Body

messagestring, up to 256 charactersrequired

What holders see.

filtersobject

Which 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.

StatusCodeWhen
400validation_errorNo message, it's too long, it has a placeholder such as {{name}} (messages are sent exactly as written), or a filter isn't valid.
409idempotency_conflictThe Idempotency-Key was already used for a different request.
409broadcast_in_progressAnother broadcast is still sending: one at a time.
422no_matching_passesNo active pass matches.
429broadcast_over_allowanceIt 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.