Rolyx API openapi.json

Several days

GET https://api.rolyx.app/v1/days

Scope: nodes:read · Operation getDays

Each day from from to to (inclusive, at most 31 days) with the nodes written directly in it, empty days included.

Query parameters

NameTypeRequiredDescription
fromstringyesFirst day.
format date · ≤ 10 chars · matches /^\d{4}-\d{2}-\d{2}$/
tostringyesLast day.
format date · ≤ 10 chars · matches /^\d{4}-\d{2}-\d{2}$/

Example

curl 'https://api.rolyx.app/v1/days?from=2026-11-25&to=2026-11-25' \
  -H "Authorization: Bearer $ROLYX_TOKEN"

Response

200, JSON.

NameTypeDescription
daysarray of object
≤ 31 items
days[].datestring
format date
days[].nodesarray of objectThe day's top-level nodes, in outline order. Their children: GET /v1/nodes/{id}/children.
days[].nodes[].idstringNode id: a UUID.
days[].nodes[].parentIdstring or nullThe parent: a node id, day:YYYY-MM-DD (a day in the Journal) or root:home.
days[].nodes[].orderstringSort key among its siblings: siblings sort by (order, id), compared byte by byte. Opaque.
days[].nodes[].textstringThe text; the first line is its name. Markdown, [[links]] and #tags as in the app.
days[].nodes[].typestringnote, task, project, aim, habit, search, or custom:<id> (see GET /v1/types).
days[].nodes[].sizestringTask size, when set.
one of sm, md, lg
days[].nodes[].donebooleanCompleted. For a repeating item: the series has ended.
days[].nodes[].scheduleobject or nullWhen it matters, or null. Date, window, someday and repeat replace one another.
days[].nodes[].schedule.datestringDo on this day.
format date
days[].nodes[].schedule.windowobjectSometime in these days.
days[].nodes[].schedule.window.startstringFirst day.
format date
days[].nodes[].schedule.window.endstringLast day.
format date
days[].nodes[].schedule.timestringTime of day, HH:MM, wall clock.
matches /^([01]\d|2[0-3]):[0-5]\d$/
days[].nodes[].schedule.durationintegerLength in minutes, when not the default for its size.
≥ 1 · ≤ 1440
days[].nodes[].schedule.somedaybooleanParked (someday / maybe). Always true when present.
days[].nodes[].schedule.repeatobjectA repeating item's current occurrence. Read-only: repeats are set up in the app.
days[].nodes[].schedule.repeat.startstringFirst day.
format date
days[].nodes[].schedule.repeat.endstringLast day.
format date
days[].nodes[].createdAtstringWhen it was made.
format date-time
days[].nodes[].updatedAtstringWhen it last changed, on any device.
format date-time
days[].nodes[].spacestringThe space it lives in: your personal space (your user id) or a shared one (see GET /v1/me).
format uuid
{
  "days": [
    {
      "date": "2026-11-25",
      "nodes": [
        {
          "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"
        }
      ]
    }
  ]
}

Errors

Always { "error": { "code", "message" } }; see Errors.

StatusCodeWhen
400bad_requestBad input: unknown field, wrong type, too long.
401unauthorizedMissing, malformed, expired or revoked token.
403insufficient_scopeThe token lacks the scope this endpoint needs.
404not_foundNo such resource, or the token cannot see it.
429rate_limitedRate limited; see retry-after.
500internalInternal error.
502upstream_errorThe database failed.
503unavailableThe API is not set up on this server.