Get started

Get a send key or an API token

Updated

Ripple has two kinds of key: a send key sends to one source, and an API token does what its access level allows, from sending to managing everything. Most scripts only send, and need nothing more than a send key. On your own computer, the CLI needs neither: ripple login connects it to your account through your browser.

Which one you need

Send keyAPI token
CanSend to its own sourceWhat its access level allows, in the sources it reads
Looks likerpl_send_…rpl_api_…
Find it inThe source's menu or pageSettings → Developer
Copy it againAny timeNever; only when you add it
Stops workingWhen you reset itWhen you remove it, or after 180 days unused
If it leaksSomeone can post to that sourceSomeone can do whatever its level allows

Either one goes in the same header:

HTTP
Authorization: Bearer YOUR_KEY

The examples in these docs read the key from RIPPLE_KEY, and the CLI uses it in place of a sign-in whenever it's set.

Send keys

Every source has its own send key, Inbox included. In Ripple's sidebar, open the source's menu and choose Copy send key. The source's page has it too: click the source's name above its messages, then choose Copy send key at the top of the page, or open Code under Ways to send for a ready request with the key in it.

The key already knows its source, so a send doesn't need to name one. A send that names a different source gets 400 invalid_source.

Send from a tool that only takes a URL

Some tools, such as another service's webhook settings, take a URL but no headers, as Webhooks shows. For those, open Webhook under Ways to send on the source's page and copy its URL. It has the key in it:

Terminal
curl -d "Backup finished" "https://api.ripple.do/v1/send?key=$RIPPLE_KEY"

The webhook URL takes what /v1/send takes: plain text, Markdown, HTML, or Ripple's own JSON fields. A service that posts its own JSON, such as a GitHub webhook, gets 400 unsupported_field, because Ripple reads only its own fields.

This works only for sending, only as a POST, and only with a send key. Put the key in the header or the URL, never both.

Warning

URLs end up in logs and browser history, and the key goes with them. Use the header whenever the tool allows it.

Send from a device that only sends email

Some devices, such as a NAS, a camera, or a printer, can only send email, as Email shows. For those, open Email under Ways to send on the source's page and copy its address. It has the key in it:

Code
nas.7k2m9xq4hv3tn8wcj5rb6fpdz1@mail.ripple.do

The name in front is there so you recognize the address. Ripple reads only the key after it, so renaming the source doesn't change where the address sends.

Each email becomes a message:

  • The subject is its title, and the email's text is its body. An email with only HTML keeps its formatting.
  • Images attach, within a message's image limits. Other files aren't kept, and a last line names them, such as “Not attached: report.pdf”.
  • Emails with the same subject join one thread, so a device that repeats an alert adds to it rather than filling your list. The first email on a subject arrives on its own, and the next one starts the thread and takes it in. A Re: or Fwd: in front doesn't count. To keep each email its own message, turn off Group by subject under Email on the source's page.

Ripple never replies to an email. It drops automatic replies, delivery reports, mail flagged as spam or a virus, email over 30 MB, and mail to an address whose key was reset. It also drops an email its source turns away, such as one to a disabled source or one over the send limits, since there's nobody to tell.

Warning

Ripple doesn't check who sent an email, so anyone with the address can post to the source, as anyone with the key can. If the address leaks, reset the key, and the address changes with it.

Reset a send key

If a key may have leaked, replace it. Open the source's menu, or More on its page, and choose Reset send key. Ripple asks first, then copies the new key, and the old one stops working at once, with its webhook URL and email address, so update every tool that used them.

API tokens

Add one token for each machine or job, so you can remove one without breaking the rest.

  1. Open Settings → Developer.
  2. Under API tokens, choose Add token.
  3. Name it after where it runs, such as “Backup server”, and choose its access and sources. Open a message it sent and “via Backup server” appears beside the source, unless the source has the same name.
  4. Enter the code Ripple emails you, which confirms it's you, then copy the token.
Important

Copy the token while Ripple shows it. Ripple keeps only a fingerprint, so it can't show the token again.

Choose its access

Each token has one of four levels. Give it the least that does the job.

LevelCanSuits
Read onlyList, read, search, and watch messages, threads, sources, and TrashA dashboard, a backup, or a report
Send onlySend to any source, and see your sources' namesA script that posts to several sources
Read and sendBoth of those, and mark read or unread, change alerts, archive, snooze, and moveAn AI agent, or a tool that sorts what arrives
EverythingAll of that, and create, change, and delete sources; get and reset send keys; and move to Trash, restore, and delete for goodA tool you trust with your whole account

A token that tries something its level doesn't include gets 403 insufficient_access, which names the levels that can, and nothing changes. The API reference shows what each operation needs. A terminal connected with ripple login can do everything on every source, and an AI agent gets the level you choose when you connect it.

Choose its sources

A level that reads can read All sources, including ones you create later, or only the sources you pick. Anything in another source is out of its reach: lists and searches leave it out, and asking for it by ID answers 404, as if it weren't there. A token that creates a source can read it too.

Sending still reaches every source, so a Send only token always has all of them. It sees each source's name, ID, and kind, enough to choose where to send, and nothing else.

Access and sources are fixed when you add a token. To change them, add a new token and remove the old one. Its name can change at any time: choose Rename beside it, and the messages it already sent show the new name.

Send only, or a send key?

Both only send. Choose a send key for one source, and a Send only token for a script that picks among several.

Send keySend only token
Sends toIts own sourceAny source, named with source
Works in a URLYes, as a webhook URLNo, only in the header
Works by emailYes, as its email addressNo
Copy it againAny timeNever
Lists sourcesNoNames only

Remove a token

The API tokens list shows when each token was last used. Choose Remove to end one at once. A token unused for 180 days ends on its own. Messages a removed token sent keep showing its name.

Note

Some things stay in the signed-in app on purpose: account settings, sign-in, API tokens themselves, devices, and sync.

Check a key

To see what a key is and what it may do, send it to GET /v1/access. Any key works, send keys included, and each learns only about itself:

Terminal
curl https://api.ripple.do/v1/access \
  -H "Authorization: Bearer $RIPPLE_KEY"
JSON
{ "kind": "send_key", "source": { "sourceId": "src_06gnkvcmntkp91yv", "name": "Backups" } }

A send key names its source. An API token gives its name, its access level, and the sources it reads, as all or a list of IDs. In a terminal, ripple status shows the same, for RIPPLE_KEY or your sign-in.

When a key is turned away

ResponseWhat it means
401The key is missing, mistyped, reset, or removed. A send key also gets 401 for anything but sending and checking itself, since reading and managing need an API token. Sends with a send key reset in the last 30 days show on its source's page in the app, so you can find the script still using it.
403 insufficient_accessThe token's access level doesn't include this. neededAccess lists the levels that do.
404Nothing has that ID, or it's in a source the token doesn't read.
429 invalid_key_rate_limitedYour IP address sent 20 invalid keys within a minute, so Ripple refuses every key from it, valid ones too, until that minute ends. Wait the Retry-After seconds, and check that scripts on your network use current keys.