/ docsWebsite

Notifications

Queue restaurant notifications with a scoped key.

Server-to-server · Bearer API key · Restaurant scoped

Queue a notification#

POST/api/v1/notifications

Creates a campaign for your restaurant and queues delivery to eligible users. 202 means queued, not device display. Delivery depends on enabled channels, eligible recipients, registered devices and provider configuration. restaurant_id is prohibited.

Authentication: IntegrationKey · Scope: notifications.write

Request body

ParameterTypeDescription
titleRequiredstringMaximum 255 characters.
bodyRequiredstringMaximum 10,000 characters.
channelRequiredstringDelivery channel.
in_app · push
curl
curl --request POST \
  "https://api.rinili.com/api/v1/notifications" \
  --header "Accept: application/json" \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"title": "Your order is ready", "body": "Please collect at the counter.", "channel": "in_app"}'

Response · 202

Illustrative response. Empty summary objects stand for configuration-dependent fields.

JSON
{
  "id": 31,
  "status": "queued",
  "recipients": 2
}

Search guides, endpoints, parameters and authentication.