API reference
Every operation the Ripple API publishes, with its fields, its responses and code to copy.
Requests
https://api.ripplepush.com- Format
- JSON in and out. A send can also be plain text.
- Keys
- A send key or API token, sent as
Authorization: Bearer. - Errors
- Every error has a
codeto match on and amessagefor people. - Paging
- Send a list’s
nextCursorback ascursorto get the next page.
Authentication
- Send key
A source's send key, from that source's settings in Ripple. It can only send, and only to its source.
- Key in the address
The send key as
?key=in the address, for tools that only let you set a URL. OnlyPOST/v1/accepts it, and it never takes an API token.send - API token
An API token, made in Ripple under Settings > Developer > API tokens. A full-access token can use every operation in this reference on your account, including permanent deletion. A read-only token can only list, read and search; anything else returns
403 read_only_token. Send it in theAuthorizationheader, never in the address.
Keys and tokens explains which to use.
Operations
Send
Post a message with a send key or an API token.
Messages
List, read, search, organize and snooze messages and threads.
- GETList messages
/v1/messages - GETWatch for new messages
/v1/messages/stream - GETRead a message
/v1/messages/{messageId} - POSTMark messages read
/v1/messages/read - POSTMark messages unread
/v1/messages/unread - POSTArchive messages
/v1/messages/archive - POSTUnarchive messages
/v1/messages/unarchive - POSTMove messages to Trash
/v1/messages/trash - POSTSearch messages
/v1/messages/search - POSTMove messages between sources
/v1/messages/move - PUTSnooze a message
/v1/messages/{messageId}/snooze - DELETECancel a snooze
/v1/messages/{messageId}/snooze - GETRead a thread
/v1/threads/{threadId}
Sources
Create sources, change their settings and manage their send keys.
- GETList sources
/v1/sources - POSTCreate a source
/v1/sources - GETRead a source
/v1/sources/{sourceId} - PATCHUpdate a source
/v1/sources/{sourceId} - DELETEMove a source to Trash
/v1/sources/{sourceId} - POSTMute a source
/v1/sources/{sourceId}/mute - POSTUnmute a source
/v1/sources/{sourceId}/unmute - POSTDisable a source
/v1/sources/{sourceId}/disable - POSTEnable a source
/v1/sources/{sourceId}/enable - POSTMark a source's messages read
/v1/sources/{sourceId}/read - POSTGet a source's send key
/v1/sources/{sourceId}/send-key - POSTReset a source's send key
/v1/sources/{sourceId}/send-key/reset
Trash
See what was deleted, restore it or delete it for good.
- GETList Trash
/v1/trash - POSTSearch Trash
/v1/trash/search - GETRead a trashed message
/v1/trash/messages/{messageId} - DELETEPermanently delete a message
/v1/trash/messages/{messageId} - POSTRestore a message
/v1/trash/messages/{messageId}/restore - GETRead a trashed thread
/v1/trash/threads/{threadId} - DELETEPermanently delete a thread
/v1/trash/threads/{threadId} - POSTRestore a thread
/v1/trash/threads/{threadId}/restore - DELETEPermanently delete a source
/v1/trash/sources/{sourceId} - POSTRestore a source
/v1/trash/sources/{sourceId}/restore