Search
GET https://api.rolyx.app/v1/search
Finds nodes in every space the token reads, with the app's search syntax: words, #tags and the filters is:, done:, in:[[…]], on:, when:, nested:, someday:, sort:. Unlike the app: words match as prefixes of words (plum finds "plumber"), with no typo tolerance; there is no relevance score, so open hits come before done or dropped ones, newest first, unless sort: says otherwise; a node field matches by the linked node's id, not its name; and a query that is a date doesn't add that day's scheduled and done items. is:<name> finds that custom type in every space. At most 3 in: filters. A query that would look at more than 20,000 nodes (or 8 MB of them) is refused as too broad (400): add words or filters.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | yes | The query, as typed in the app. not empty · ≤ 500 chars · trimmed |
cursor | string | no | Where to continue: nextCursor from the previous page. ≤ 400 chars · matches /^[A-Za-z0-9_-]+$/ |
limit | integer | no | Rows per page, 1 to 200. Default 50. ≥ 1 · ≤ 200 |
tz | string | no | IANA time zone for today, when: and relative dates. Default UTC. ≤ 64 chars · trimmed |
Example
curl 'https://api.rolyx.app/v1/search?q=is%3Atask+done%3Ano+%23reno' \
-H "Authorization: Bearer $ROLYX_TOKEN" Response
200, JSON.
| Name | Type | Description |
|---|---|---|
items | array of object | |
items[].id | string | Node id: a UUID. |
items[].parentId | string or null | The parent: a node id, day:YYYY-MM-DD (a day in the Journal) or root:home. |
items[].order | string | Sort key among its siblings: siblings sort by (order, id), compared byte by byte. Opaque. |
items[].text | string | The text; the first line is its name. Markdown, [[links]] and #tags as in the app. |
items[].type | string | note, task, project, aim, habit, search, or custom:<id> (see GET /v1/types). |
items[].size | string | Task size, when set. one of sm, md, lg |
items[].done | boolean | Completed. For a repeating item: the series has ended. |
items[].schedule | object or null | When it matters, or null. Date, window, someday and repeat replace one another. |
items[].schedule.date | string | Do on this day. format date |
items[].schedule.window | object | Sometime in these days. |
items[].schedule.window.start | string | First day. format date |
items[].schedule.window.end | string | Last day. format date |
items[].schedule.time | string | Time of day, HH:MM, wall clock. matches /^([01]\d|2[0-3]):[0-5]\d$/ |
items[].schedule.duration | integer | Length in minutes, when not the default for its size. ≥ 1 · ≤ 1440 |
items[].schedule.someday | boolean | Parked (someday / maybe). Always true when present. |
items[].schedule.repeat | object | A repeating item's current occurrence. Read-only: repeats are set up in the app. |
items[].schedule.repeat.start | string | First day. format date |
items[].schedule.repeat.end | string | Last day. format date |
items[].createdAt | string | When it was made. format date-time |
items[].updatedAt | string | When it last changed, on any device. format date-time |
items[].space | string | The space it lives in: your personal space (your user id) or a shared one (see GET /v1/me). format uuid |
total | integer | Hits on every page together. ≥ 0 |
nextCursor | string or null | Pass as cursor for the next page; null on the last one. |
unknown | array of string | is: and in: values that name nothing; the search then finds nothing. |
{
"items": [
{
"id": "019ab1c2-3d4e-7f00-8a1b-2c3d4e5f6a7b",
"parentId": "day:2026-11-25",
"order": "a0V3k",
"text": "Call the dentist",
"type": "task",
"size": "sm",
"done": false,
"schedule": {
"date": "2026-11-27",
"time": "09:30"
},
"createdAt": "2026-11-25T09:00:00.000Z",
"updatedAt": "2026-11-25T09:00:00.000Z",
"space": "0b7e9a52-1c3d-4e5f-8a9b-0c1d2e3f4a5b"
}
],
"total": 1,
"nextCursor": null,
"unknown": []
} Errors
Always { "error": { "code", "message" } }; see Errors.
| Status | Code | When |
|---|---|---|
| 400 | bad_request | Bad input: unknown field, wrong type, too long. |
| 401 | unauthorized | Missing, malformed, expired or revoked token. |
| 403 | insufficient_scope | The token lacks the scope this endpoint needs. |
| 404 | not_found | No such resource, or the token cannot see it. |
| 429 | rate_limited | Rate limited; see retry-after. |
| 500 | internal | Internal error. |
| 502 | upstream_error | The database failed. |
| 503 | unavailable | The API is not set up on this server. |