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/messagesCreate 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/:idRetrieve details of a specific message
PATCH
/api/v1/messages/:id/mark_as_seenMark a specific message as seen
PATCH
/api/v1/messages/:id/mark_as_deliveredMark a specific message as delivered
GET
/api/v1/messages/:id/render_messageGet the fully rendered subject and body of a message
GET
/api/v1/messages/new_messages_forGet all unseen messages for a specific user
Query Parameters
- notification_user_idInteger (Required)