← Home

API

Your notes, from your own code.

The personal API lets your scripts and AI agents read and write your Sprwl notes. Six endpoints, JSON in and out, one key per thing you connect.

Last updated 18 November 2026

Get a key

In the app, open the account menu and choose API keys. Name the key after what will use it ("Home Assistant", "Claude"), choose read-only or read-and-write, and copy it. The key is shown once. Sprwl keeps only a fingerprint of it, so a lost key can't be recovered. Make a new one instead.

  • Keys are read-only unless you choose otherwise, and a read-only key can't be upgraded later.
  • You can have up to 10 keys. Revoke one on the same screen and it stops working straight away.
  • Changing your password revokes every key.
  • Anything holding a key can read every note in your account. Treat it like a password.

Send the key as a bearer token on every request:

curl https://api.sprwl.co/v1/notes \
  -H "Authorization: Bearer sprwl_…"

The base URL is https://api.sprwl.co/v1. Requests and responses are JSON. Send Content-Type: application/json with a body.

Endpoints

MethodPathWhat it doesKey
GET/notesList notes, newest first. Search and filter by tag.Any
POST/notesCreate a note.Write
GET/notes/{id}Get one note.Any
PATCH/notes/{id}Replace a note's text.Write
DELETE/notes/{id}Delete a note and its images.Write
GET/tagsList your tags.Any

Notes

Every endpoint that returns a note returns it in this shape:

{
  "id": "6f1c2a0e-4b7d-4c1e-9a53-2f8d0b6e1a47",
  "content": "Call the plumber about the upstairs sink #HOME",
  "source": "api",
  "pinned": false,
  "remind_at": null,
  "created_at": "2026-11-18T14:02:11.483920+00:00",
  "updated_at": "2026-11-18T14:02:11.483920+00:00",
  "tags": ["HOME"],
  "image_count": 0
}
  • source is where the note came from: app, share or api.
  • tags are tag names, in the order they were added. Tag names are uppercase.
  • pinned, remind_at and images are read-only through the API. Change them in the app.

List notes: GET /notes

ParameterMeaning
limitNotes per page, 1 to 100. Default 50.
qOnly notes whose text contains this, ignoring case. 1 to 200 characters. It's a plain substring match, so % and _ mean themselves.
tagOnly notes with this tag, e.g. HOME. Case doesn't matter.
cursorThe next_cursor from the previous page.
curl "https://api.sprwl.co/v1/notes?tag=home&q=plumber&limit=20" \
  -H "Authorization: Bearer sprwl_…"
{
  "notes": [ { …note… }, { …note… } ],
  "next_cursor": "2026-11-12T09:15:02.118204Z_1d6e…"
}

When next_cursor is null there are no more pages. Otherwise pass it back unchanged as cursor, with the same q and tag.

Create a note: POST /notes

curl -X POST https://api.sprwl.co/v1/notes \
  -H "Authorization: Bearer sprwl_…" \
  -H "Content-Type: application/json" \
  -d '{"content": "Buy oat milk #GROCERY"}'

Returns 201 with {"note": {…}}. #tags in the text and your keyword rules are applied just as they are in the app. Text can be up to 50,000 characters.

Get, change or delete one note

  • GET /notes/{id} returns {"note": {…}}.
  • PATCH /notes/{id} with {"content": "…"} replaces the note's whole text and returns {"note": {…}}. Tags in the new text are applied the same way.
  • DELETE /notes/{id} deletes the note and any images on it, and returns 204 with no body. It can't be undone.

A note that doesn't exist, or isn't yours, returns 404.

Tags: GET /tags

{
  "tags": [
    { "name": "GROCERY", "parent": null, "keywords": ["milk", "eggs"] },
    { "name": "PLUMBING", "parent": "HOME", "keywords": [] }
  ]
}

parent is set for sub-tags. Tags are managed in the app.

Limits

  • 60 requests a minute and 1,000 a day per account, across all your keys. Days reset at midnight UTC.
  • Every response tells you what's left: X-RateLimit-Remaining-Minute and X-RateLimit-Remaining-Day.
  • Over the limit you get 429 with a Retry-After header, in seconds.
  • The same account limits as the app apply, including 5,000 notes. Going over returns 422.

Errors

Errors return JSON with a plain-English message: {"error": "This API key is read-only"}.

StatusMeaning
400Bad input: invalid JSON, empty text, a bad limit or cursor.
401Missing, wrong or revoked key.
403A read-only key tried to write.
404No such note, or no such endpoint.
405That method isn't supported on this path.
413Request body too large.
422An account limit was reached.
429Too many requests. See Limits.
500Something broke on our side. Try again later.

Getting errors you can't explain? Email support@sprwl.co with the time, the endpoint and the status code. Never send your key.

Good to know

  • Not for web pages. The API sends no CORS headers, so browsers block calls from a website. That's deliberate: a key in a web page is a key anyone can copy. Call it from a script, server or agent.
  • Giving a key to an AI service sends it your notes. What that service does with them is covered by its privacy policy, not ours. See Privacy.
  • We log requests, not notes. Each request is logged with the key that made it, what it did and the result, so we can look into problems. Never the key itself or what your notes say.
  • The API is part of Pro. During the beta every Pro feature is free.
  • The /v1 in the URL is the version. Changes that would break your code will come as a new version.