API reference · Passes
Send a notification
POST/v1/passes/{serial}/notifications1 operationSafe to retry with Idempotency-KeyShows a message on holders' lock screens, and keeps it in the pass's Latest message field.
Path
serialstringrequiredThe pass's serialNumber.
Body
messagestring, up to 256 charactersrequiredWhat holders see.
Answer
200Sent
The same as an update's, with the message. firstMessage is true when the pass had no Latest message field before: this one adds it, and may not show a banner.
Errors
Every error has the same shape: see Errors.
| Status | Code | When |
|---|---|---|
| 400 | validation_error | No message, it's too long, or it has a placeholder such as {{name}}: messages are sent exactly as written. |
| 404 | not_found | No pass with that serial number in this workspace. |
| 409 | pass_not_active | It's revoked, or not published yet. |
| 409 | idempotency_conflict | The Idempotency-Key was already used for a different request. |
| 429 | usage_limit_exceeded | This month's operations on your plan are used up. |
| 429 | workspace_limit_reached | This workspace's monthly limit, set by its organization, is used up. |
| 429 | platform_usage_limit | A test pass, and the 1,000 test operations a month are used up. |
- To tell every pass, or the ones a search finds, at once, send a broadcast.