Send a message
Updated
Every message is one request: a POST to /v1/. Start with a line of text, then add a title, links, Markdown, HTML, JSON, images, an alert, a thread, or a safe retry as you need them.
You need a send key in RIPPLE_KEY. An API token that's Send only, Read and send, or Everything can send too, to any source.
Send a line of text
Plain text becomes the message, shown exactly as you send it:
Ripple trims spaces and blank lines from the ends. The message takes its source's default alert and links.
To send a file, use --data-binary, which keeps its line breaks. curl's plain -d @file removes them.
A command's color codes stay in the message as sent. Notifications, previews, and search leave them out.
Add a title, links, and more
For anything beyond text, send JSON:
Include Content-Type: application/. Without it, curl sends the JSON as form data, and Ripple answers 400 invalid_payload rather than posting the raw JSON as your message.
Every field is optional, but a message needs a title, a body, or an image.
| Field | What it does |
|---|---|
title | A short headline, up to 120 characters. Without one, the body's first line is the headline, or for JSON, a field that names it, except in a thread |
body | The message, up to 64,000 characters, or 256,000 as HTML |
format | text, markdown, or html; see Markdown and HTML |
links | Links to open from the message, in order: https:/, email, phone, or app links. It keeps the first 4 it can open |
alert | quiet, standard, or important |
sound | Which sound plays, if one would |
images | Links to images, of which it takes the first 4 valid ones; see images |
thread | Adds the message to a thread of related updates; see threads |
source | Where an API token sends; leave it out with a send key |
- A title over 120 characters is shortened, never mid-emoji, and the response adds a warning.
- Each link is an
https:/, email, phone, or app link of up to 2,048 characters, counted again after any URL encoding, or an object with that/ urland atitleof up to 64 characters to name it. Without a title, Ripple shows the site, email address, or phone number it leads to. A web address withouthttps:/, such as/ example.com/, gets it, as in a browser, and anstatus http:/link opens over/ https:/./ - One link shows as the message's link, and several gather behind one button that opens them as a tray, in order, as Links shows.
- A link Ripple can't open, one listed twice, or one past the first 4 is left out, and the response adds a
link_droppedwarning saying why; the message still arrives. A blank one, as a no-code tool sends for an empty field, is skipped. A send lists up to 20. - Leave out
linksto use the source's default links, or send[]for none; only JSON can send[]. A list Ripple keeps none of, such as one blank field, uses the defaults too. In a form, repeatlink, each followed by itslinkTitleif it has one; see every option in a form. - Each web link shows its site's icon. Ripple fetches it once as the message arrives, from the site's home page,
/favicon.ico, or/apple-touch-icon.png, never from the link itself. - The sounds are
hop,arcade,clink,drop,echo,glow,lift,sparkle,swoop, andtick. Withoutsound, a message plays its source's sound, or else the account's. - With an API token,
sourcetakes a source ID from Sources. Without it, the message goes to Inbox.
Limits count characters as JavaScript does, so most emoji count as two.
Open another app
A link can open an app instead of a web page: a file in VS Code, a task in Codex, a Shortcut.
Before an app link opens, Ripple shows its full address and asks, because anyone with the send key could write one. The reader can choose to always open that kind of link, such as every vscode:/ link. Shortcuts links ask every time, since they run a Shortcut by name. App links in a Markdown or HTML body work the same way.
Format with Markdown
Ripple shows a body exactly as you send it, keeping every line break and space and reading nothing as formatting. A log line with *.log, __init__, or <your-token> reads as written.
To format a body, send it as Markdown. As plain text, set Content-Type: text/:
In JSON, add "format": "markdown":
Ripple reads GitHub's Markdown: headings, bold, italics, strikethrough, lists and task lists, quotes and alerts such as > [!NOTE], code, tables, links, pictures, and footnotes. Long reads shows a report, a log, and JSON as they read.
- HTML tags are left out. A body that would show nothing without them shows as its original text. To send HTML, use
htmlinstead. - Links open
https:/,/ http:/,/ mailto:, andtel:addresses, and app links once the reader confirms them. Any other link, such asjavascript:orfile:, reads as plain text. - Pictures need absolute
https:/addresses. Ripple fetches each one once, when the message arrives, and shows its own copy, so the picture's host never learns when the message is read. It takes up to 10 different pictures as JPEG, PNG, WebP, GIF, or SVG, each up to 10 MB, within the 20 MB a message's images share. Each has 5 seconds to answer, from a public address./ - A picture Ripple can't fetch or use shows its description, and the message still arrives.
- A body with extreme formatting, such as deeply nested quotes or thousands of emphasis marks, shows as its original text.
- Notifications and message previews show the text without its formatting.
Send a log
A failed job's answer is usually one line in hundreds. Wrap the log in a Markdown code block labeled log, and Ripple shows it in a console that opens at the first error, with three lines above it, as Logs and JSON shows:
- Error and warning lines are tinted, and the console's header says which error it shows, such as Error 1 of 3, with arrows to the previous and next. A line takes the first level it names:
ERROR,FATAL,[error],level=error,error:, or an exception such asTypeError:make it an error, andWARN,[warn], orwarning:a warning. - Five or more lines in a row that differ only in their numbers, such as retries, show their first and last, with a row you can open for the lines between. Error lines never fold.
- Color codes are cleared, and a progress bar shows its last state, as a terminal would. A log with no errors opens at its end. Copy log copies it exactly as sent.
A block labeled diff or patch shows its added and removed lines in green and red.
Send HTML
An email or a web page can go as it is. Ripple turns the HTML into Markdown when the message arrives and keeps no HTML. As plain text, set Content-Type: text/:
In JSON, add "format": "html". Either way, the message reads back with "format": "markdown".
- The page's
<title>becomes the message's title when you don't sendtitle. One over 120 characters is shortened at a word, and the response adds atitle_truncatedwarning. - What a reader never sees is left out: scripts, styles, forms, hidden text such as an email's preview line, and tracking pixels.
- Tables that lay out an email give way to their content, and tables of data stay tables. A button that's a link becomes a link, and an embedded video becomes a link to it.
- Links keep
https:/,/ http:/,/ mailto:, andtel:addresses and app links, exactly as sent, and pictureshttps:/ones, which Ripple fetches as it does Markdown's. Any other link, such as/ javascript:orfile:, keeps only its text, and any other picture is left out. - HTML can be up to 256,000 characters. When the Markdown it makes is more than a message holds, the message ends after the last paragraph, list item, or table row that fits, and the response adds a
body_truncatedwarning.
Send JSON
A webhook's payload, a job's report, or an API response can go as it is. When a body is one JSON object or array, Ripple shows it as JSON: each kind of value in its own color, long lists and deeper objects folded to a line that says what they hold, and every value a click away from the clipboard. Shift-click copies where a value sits instead, such as error.message.
Send the JSON as the body, beside a title. -F "body=<backup-report.json" reads it from a file:
To put a sentence above the JSON, send Markdown with the JSON in a code block marked json:
- Without a title, JSON is named by its first
title,subject,summary,message,msg,text, ordescriptionwith words, nearest the top, or else by its ownevent,type,action, orstatus. JSON with none of those takes its first line, as any message does. - The message list, notifications, and the API's
previewsay what the JSON holds in words: its sentences first, then fields likeeventandstatus, then the rest askey: value. IDs, times, links, and the value already in the title are left out. - The message keeps the JSON exactly as sent, every number and key in its order, and copying the whole of it gives back what arrived.
- JSON with comments or trailing commas, nested more than 64 levels deep, with more than 4,000 values, or holding a
\u0000escape shows as its original text.
Send images
A message can carry up to 4 JPEG, PNG, WebP, or GIF images, as Photos shows. Attach files as a form, repeating image for each one, with any other fields beside them:
Or link to them: in JSON with "images": ["https:/, or in a form as -F image=https:/, in any mix and order with files. Ripple fetches each link once, when the message arrives, from its own servers, so the image's host never learns when the message is read. A link has to answer within 5 seconds, from a public address.
From a terminal, ripple send --image snapshot.jpg "Motion at 7:42" attaches a file or a link; see the CLI.
- Each image can be up to 10 MB, and 20 MB in all.
- Ripple keeps a converted copy without location or camera details. A GIF keeps its first frame.
- An image Ripple can't use, such as one too large, past the first 4, or whose link doesn't answer, is left out, and the response adds an
image_droppedwarning saying why. A send lists or attaches up to 20. A blank link is skipped, and anhttp:/one loads over/ https:/./ - Ripple can't read HEIC, so convert iPhone photos to JPEG first.
- A message can be images alone, in a thread or not. When none of them can be used, the send is refused, saying why one couldn't:
400 invalid_image, or413 payload_too_largewhen it's too large.
Every option in a form
A form takes everything JSON does except "links": [], each in a field of its own, as text, under the same rules:
| In JSON | In a form |
|---|---|
"images": [...] | Repeat image, each a file or a link |
"links": [...] | Repeat link, each followed by its linkTitle if it has one |
"thread": "deploy-42" | thread |
"thread": { "key": "deploy-42", "title": "Deploy #42" } | thread and threadTitle |
"thread": { "id": "thr_06gq3h1x8rkm5zd2" } | threadId |
Anything else, such as "alert": "important" | A field of the same name |
Choose how loudly it alerts
A message's alert says how much it matters. The person receiving it decides how loud that is, and Quiet hours let only Important through at night.
| Alert | What it does |
|---|---|
quiet | Saves the message without alerting a device or bringing it to Home |
standard | Alerts the usual way, but stays silent during quiet hours |
important | Alerts through quiet hours too, and asks for more prominent presentation where the device supports it. It can't force an interruption. |
Without alert, a message takes its source's default, or standard if the source has none. At any level, the message is saved and counts as unread. The person can change a message's alert after it arrives, which never notifies.
sound picks the sound only when one would play anyway. Quiet messages, quiet hours, and turned-off sounds all stay silent.
Group updates into a thread
When one job sends a series of updates, such as a deploy moving through its steps, put them in a thread. They read as one conversation, listed once under the thread's title, and each update keeps its own title. Threads shows how they read.
Give the run a key, the same in every update, and the thread a title people will see:
The first send with a key starts the thread:
Every later send with that key, to the same source, joins it. Its thread title only names a new thread and is ignored once the thread exists, so a script can send the same thread every time:
thread takes one of three forms:
| Send | When |
|---|---|
"thread": "Nightly backup" | The key is also the title people see |
"thread": { "key": "deploy-42", "title": "Deploy #42" } | Your script's key, and a title for people |
"thread": { "id": "thr_06gq3h1x8rkm5zd2" } | You kept the threadId an earlier send returned; see below |
- A key and a thread's title can each be up to 120 characters. Keys match regardless of capitals and extra spaces, but punctuation counts, so
deploy-42anddeploy 42are different threads. - A key belongs to its source: the same key sent to another source starts another thread there.
- Without
title, a message in a thread has no title of its own, and its text reads under the thread's title. - Threads never end, so give each new run, such as the next deploy, a new key. A new message brings an archived thread back to All Messages, unread.
- A thread in Trash isn't joined: its key starts a new thread, and its ID gets
400 invalid_thread. - In a form, send the key as
thread, a title for it asthreadTitle, or an ID asthreadId; see every option in a form.
Continue from an earlier message
Every response carries a threadId, even for a message sent without thread. Keep it, and send it back as { "id": … } to add to that thread later, such as a follow-up to an alert:
If that earlier message wasn't in a thread, this starts one: it becomes the first message, and its title names the thread. An ID Ripple doesn't know, or one from another source, gets 400 invalid_thread.
Retry without sending twice
When a send times out, you can't tell whether Ripple got it. An idempotency key makes the retry safe. It's any unique string you choose for the message, sent as a header:
For 24 hours, the same key with the same message to the same source returns the first response instead of making a second message. The same key with a different message gets 409 idempotency_mismatch. The CLI does this for you: ripple send gives every message a key and retries with it.
Retry with exactly what you sent the first time, leaving out any field you left out, even if the source's defaults have changed since. Use a new key for each new message.
Read the response
A send that works returns 202 Accepted, which means Ripple saved the message:
source says where the message went. Its kind is system for Inbox and custom for a source you made. threadId is the thread to send back to continue from this message. A message in a thread also returns thread, with its title, whether this send created it, and the message's messageNumber.
When Ripple changed something to save the message, warnings says what, each with a code and a message for people: title_truncated, body_truncated for HTML cut short, and link_dropped or image_dropped for a link or image it left out.
When a send fails
Every error has the same shape: a code for your script and a message for people.
Match on code; the wording of message can change. These are the errors sends hit most, each with the message Ripple gives it:
| Error | Message | What to do |
|---|---|---|
400 invalid_payload | This looks like JSON. Add Content-Type: application/json. | Add -H "Content-Type: application/. Without it, curl sends JSON as form data. |
400 invalid_json | The body is not valid JSON. | Check the JSON's quotes and commas. In a shell, wrap it in single quotes. |
400 missing_content | Provide a title, body, or image. | Send some text. An empty variable is the usual cause. |
400 unsupported_field | Unsupported field: action | Ripple reads only its own fields, and names the first it doesn't know. To send another service's JSON, put it in body, as Send JSON shows. |
400 invalid_source | This key sends only to Backups. | Leave out source: a send key always sends to its own source. |
400 invalid_image | The image is HEIC. Send a JPEG, PNG, WebP, or GIF. | Convert the image. This refuses only a send with nothing else to show; otherwise the message arrives without it, with an image_dropped warning. |
401 invalid_credential | The key is invalid. | The key is missing, mistyped, reset, or removed. Copy it again, as Keys and tokens explains. |
401 invalid_credential | Send the key in the Authorization header or the address, not both. | Keep one: the header, or ?key= in a webhook URL. |
403 insufficient_access | This API token is Read only. This needs Send only, Read and send, or Everything. | Send with a send key, or with a token at one of those levels. |
403 source_disabled | This source is disabled. | Enable the source. source_deleted, “This source has been deleted.”, means it's in Trash: restore it. |
409 idempotency_mismatch | The idempotency key cannot be reused with a different payload. | Use a new idempotency key for each new message. |
413 payload_too_large | The request is too large. | Send less: a message holds 64,000 characters, or 256,000 as HTML, and 20 MB of images. When a send is only images and one is too large, the message names it, such as “The image is over 10 MB.” |
415 unsupported_media_type | Send plain text, Markdown (Content-Type: text/markdown), HTML (Content-Type: text/html), or JSON. | Change the Content-Type, or leave it out to send plain text. |
429 source_rate_limited | This source is temporarily contained due to high send volume. | The source sent 20 messages within a minute, so it's paused for 15 minutes. |
429 account_rate_limited | This account is temporarily rate limited due to high send volume. | The account sent 60 messages within a minute. |
429 connection_rate_limited | This connection can send 30 messages a minute. Try again in a moment. | A terminal signed in with ripple login, or an app connected to Ripple, such as an AI agent, sent 30 within a minute. Each connection has its own limit. |
After any 429, wait the Retry-After seconds. A replayed send with the same idempotency key doesn't count toward a limit, but a send whose images Ripple downloads or converts and then refuses does. Two more can answer 429:
image_busy, “Images are busy. Try again in a moment.”: another of the account's sends is still working on its images, or Ripple is busy with images for a moment, so retry after a second. A send whose only images are its Markdown's pictures waits up to 5 seconds instead, then arrives without them.invalid_key_rate_limited, “Too many invalid keys from this IP address. Try again in a moment.”: your IP address sent too many invalid keys.
A 500 or 503 is a problem on Ripple's side. Retry with the same idempotency key and message, after the Retry-After seconds if there are any: the first attempt may have been saved.
Text with a NUL character or a broken Unicode sequence is turned away before anything is saved. Every response has an x-request-id header; include it if you ever ask about a request.
A script that never shows its errors still gets noticed: the source's page in the Ripple app lists its refused sends from the last 30 days, how many and why, and marks the source until you look. A send counts once it reaches one of your sources, so one with a key Ripple never issued, or an API token's that Ripple can't read far enough to find its source, isn't listed. Ripple keeps only when each came, the error, and how it came in, never what was sent.
The API reference lists every field, limit, and error code.