Rolyx API
Read and write your Rolyx outline from your own scripts and agents: add a task from a shortcut, file notes from another tool.
Base URL
https://api.rolyx.app/v1 HTTPS only. Requests and responses are JSON (content-type: application/json), at most 16 KB per request body.
Authentication
Make a personal token in Settings → API and send it with every request. Each token carries scopes that limit what it can do; see Tokens and scopes.
curl https://api.rolyx.app/v1/… -H "Authorization: Bearer $ROLYX_TOKEN" The API is for servers and scripts. It sends no CORS headers, so a web page can't call it from the browser, and a token in a web page would be visible to anyone anyway.
How writes reach your devices
The API writes to your synced account, like another device would. Your devices pick changes up on their next sync, and edits merge with what you change in the app.
Versioning
The version is in the path: /v1. Within v1, changes are additive only: new endpoints, new optional request fields, new response
fields. Ignore response fields you don't know. Anything that would break a working script gets a new version.
Paging
GET /v1/nodes/{id}/children and GET /v1/search return a page at a time: limit sets its size (1 to
200; the default is on each endpoint's page) and the reply's nextCursor is the cursor for the next page, or null on the last one. Cursors are opaque; send one back with the same other parameters. GET /v1/days is not paged: it
takes at most 31 days.
Spaces
Your data lives in spaces: your personal space, and one for each item shared with you (see GET /v1/me). Reads cover every space
your token reaches. A new node goes into its parent's space. Days and the Journal are personal only. Moves stay within one space, and the top
of a shared item can't be moved or deleted here; do those in the app. See Tokens and scopes.
Retries and idempotency
There are no idempotency keys yet. A POST retried after a timeout may run twice and add a duplicate, so retry writes only when you
know the first attempt failed (an error response, not a dropped connection).
Errors and limits
Errors are always { "error": { "code", "message" } }; see Errors. Requests are rate limited per token and
per address; see Rate limits.
Endpoints
| Endpoint | Scope | What it does |
|---|---|---|
| GET /v1/me | any | Who this token is |
| GET /v1/types | nodes:read | List types |
| GET /v1/nodes/{id} | nodes:read | Get a node |
| GET /v1/nodes/{id}/children | nodes:read | List a node's children |
| POST /v1/nodes | nodes:write | Add a node |
| PATCH /v1/nodes/{id} | nodes:write | Change a node |
| POST /v1/nodes/{id}/move | nodes:write | Move a node |
| DELETE /v1/nodes/{id} | nodes:delete | Delete a node |
| GET /v1/days/{date} | nodes:read | A day's dump |
| GET /v1/days | nodes:read | Several days |
| GET /v1/search | search | Search |
Machine-readable spec
openapi.json is the OpenAPI 3.1 description of every endpoint, generated from the same definitions the API runs on.