RelayGrid logoRelayGrid

REST API Reference

Reference for all public APIs accessible with your API Key.

Resources

Authentication

All requests must include your API Key in the Authorization header:

Authorization: Bearer sk_your_key

Messages

Send and manage notifications

POST/api/v1/messages

Create and send a new notification message. All fields are nested under the message object. Identify the recipient and template either by your own external_user_id / message_template_name, or by their internal IDs.

Request Body

  • message[external_user_id]String (Required unless message[notification_user_id] is given)
  • message[message_template_name]String (Required unless message[message_template_id] is given)
  • message[notification_user_id]Integer (Required unless message[external_user_id] is given)
  • message[message_template_id]Integer (Required unless message[message_template_name] is given)
  • message[message_attributes_attributes]Array of {name, value} objects (Optional)
GET/api/v1/messages/:id

Retrieve details of a specific message

PATCH/api/v1/messages/:id/mark_as_seen

Mark a specific message as seen

PATCH/api/v1/messages/:id/mark_as_delivered

Mark a specific message as delivered

GET/api/v1/messages/:id/render_message

Get the fully rendered subject and body of a message

GET/api/v1/messages/new_messages_for

Get all unseen messages for a specific user

Query Parameters

  • notification_user_idInteger (Required)