Push a notice to a person's browsers (or one subscription)
post/notify/push/send
Push a notice to a person's browsers (or one subscription): title, body, an address to open, a tag that replaces an earlier notice. A subscription the push service says has ended is marked and raised as campaigns.push.expired.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
campaigns:write- Mcp
rivier_notify_push_send- Graphql
Mutation.campaignsNotifyPushSend- Sdk
campaigns.notifyPush.send- Cli
campaigns notify push send- Events
campaigns.push.expired
Request bodyapplication/json, required
- titlestringrequiredAt most 200 characters.
- bodystringDefault: . At most 1000 characters.
- urlstring (uri)At most 1000 characters.
- iconstring (uri)At most 1000 characters.
- userRefstringYour own id for the person; Rivier keeps it as given and never shows it to anyone else At most 200 characters.
- subscriptionIdstring (uuid)
- tagstringA later notice with the same tag replaces this one on the device At most 64 characters.
- dataobject
- ttlSecondsintegerDefault: 86400. At least 0. At most 2419200.
- urgencystringOne of: very-low, low, normal, high. Default: normal.
- topicstringA push waiting with the same topic is replaced at the push service Pattern: ^[A-Za-z0-9_-]{1,32}$.
Responses
- 200application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring