Schemas
Due
When a task is due: floating (the viewer's day) unless tz is set.
| Field | Type | Description |
|---|---|---|
date required | string (date) | YYYY-MM-DD. |
time | string | Optional wall-clock time, HH:MM. |
tz | string | Optional IANA time zone, only with time: the due is then the instant date time in that zone. |
Error
Every error answer: a stable machine-readable code and an English message (docs/api.md, top).
| Field | Type | Description |
|---|---|---|
error required | object | |
error.code required | string | A stable error code. New codes may be added in 1.x; treat an unknown one by its HTTP status. |
error.message required | string | A human-readable English message; do not parse it. |
Field
field: a custom field definition of one project (OpenSpec change custom-fields, design D1). Like a section it lives in its project's sharing scope and project_id never changes after creation; type is fixed too (the REST API refuses a change). type is text|number|date|choice|link|checkbox, carried as a string so a later type is additive; options holds a choice field's options, one per line. Values live on the task as fields.<id>.
| Field | Type | Description |
|---|---|---|
created_at | number | |
deleted_at | number | null | |
id required | string | The field's id. |
name | string | |
options | string | |
position | number | |
project_id | string | An id: a UUID, or for some entities a name-based id. |
type | string | |
workspace_id | string | null | The workspace a field without a project belongs to (workspace-fields D1): an empty project_id makes the definition a workspace field that applies to every project of this workspace, before the projects' own fields. Null is the default workspace, as for a label. It lives in the author's personal scope and never changes after creation; it is ignored on a field with a project. Additive. |
Label
task.labels holds label ids (a convention on the string array, not a format change).
| Field | Type | Description |
|---|---|---|
color | string | |
created_at | number | |
deleted_at | number | null | |
group_by | string | Display options of the label's page (OpenSpec change list-display-options, design D1): grouping, order and direction, enumerations carried as strings like a view's; "" or an unknown value reads as the default. Labels are personal, so the choice follows the user to their own devices only. |
id required | string | The label's id. |
manual_order | array of string | The label page's own manual order (OpenSpec change view-manual-order, design D1, D2): the ids of the tasks placed by hand, in order; tasks not listed follow by position. One whole-list register like view.panels, never a task's position. Not content. |
name | string | |
position | number | |
row_layout | string | The label page's row layout (row-layouts D1); "" follows the account's. |
sort_by | string | |
sort_dir | string | |
workspace_id | string | null | Workspace of the label, null for the default (OpenSpec change workspaces). |
Location
| Field | Type | Description |
|---|---|---|
address | string | |
lat | number | |
lon | number | |
name | string | |
place_id | string |
Note
note: a standalone note (OpenSpec change notes-overview, design D1), not a task: it never shows in task lists, counts, calendars, filters or reminders. It lives in its project's sharing scope like a task, in the author's personal scope without a project (design D2). Its pending appends are the appends.<id> family.
| Field | Type | Description |
|---|---|---|
created_at | number | |
day | string | A daily note's day, YYYY-MM-DD (daily-notes D1); "" for any other note. Set once at creation, only on the note whose id is the name-based id of its author and that day (NameID("daily-note", user + ":" + day)), so the same day is one note on every device. |
deleted_at | number | null | |
description | string | |
id required | string | The note's id. |
labels | array of string | Label ids, one whole-list register like task.labels. |
notes_doc | string | The note itself: Markdown in description, the mergeable document in notes_doc, written as a pair, as on tasks and projects. |
position | number | Written at creation (the creation time) and kept for a later manual order; the Notes page sorts by when the note last changed. |
project_id | string | null | The note's project, or null for a personal note; decides its scope. |
template | boolean | A template (note-templates D1): the note is offered under From template… and New note copies it; otherwise a note like any other. |
title | string | The note's title; an empty one reads "Untitled note". |
workspace_id | string | null | The workspace of a note without a project, or null for the default; a note with a project follows its project, as task.workspace_id. |
Objective
objective: one quarterly or weekly objective (OpenSpec change plan-objectives, design D1). Personal like place: it resolves to the author's personal scope, syncs to that user's devices only and derives no activity event. At most 5 open objectives per period: REST refuses a sixth, sync cannot refuse convergently and devices show all of them.
| Field | Type | Description |
|---|---|---|
created_at | number | |
deleted_at | number | null | |
done_at | number | When it was marked done, Unix ms; 0 = open. |
id required | string | The objective's id. |
period | string | The quarter "YYYY-Qn" or ISO week "YYYY-Www" it is for; never a month. |
position | number | Order within its period. |
title | string | The objective, one line of 1 to 140 characters (ciphertext for an encrypted account). |
Origin
Where a task came from (docs/api.md "Task fields").
| Field | Type | Description |
|---|---|---|
id | string | |
kind required | string | |
provider | string | |
title | string | |
url | string (uri) |
Project
| Field | Type | Description |
|---|---|---|
aisles | boolean | |
archived | boolean | |
color | string | |
created_at | number | |
deleted_at | number | null | |
description | string | The project's note (OpenSpec change project-notes): Markdown in description, the mergeable document in notes_doc, as on tasks. |
flow_mode | string | How the project's tasks flow (OpenSpec change project-flow-modes): "parallel", "sequential" or "area"; empty, missing or unknown reads as parallel. Sync checks the kind only, so a later value stays additive; REST and the agent tools check the set. Not user text. |
icon | string | null | An icon name from the app's set, or null for the colour dot (OpenSpec change ux-overhaul, project-organization "Project icon"). Not user text, so it is not an encrypted content field. |
id required | string | The project's id. |
name | string | |
no_next_action | boolean | The project needs no next action (OpenSpec change loop-next-structure, design D1): true mutes "without a next action" and the stalled marker, like maintenance, but leaves the health words alone; its tasks are unchanged. Shown as "Needs a next action", on while false. Shared and written by those who may change the project's other fields. A flag, not user text, so not content; additive. |
notes_doc | string | A mergeable notes document ("ydoc:v1:…"), see docs/sync.md "Mergeable documents". Write description (Markdown) instead unless you merge documents yourself. |
parent_id | string | null | |
position | number | |
reusable | boolean | The reusable-list mode (OpenSpec change reusable-lists, design D1): adding an item already in the project reopens it instead of duplicating it, and ticked items always show. aisles sorts new items into aisle sections and reads as false while reusable is false. Flags, not user text, so not content; additive. |
status | string | The project's status (OpenSpec change project-review-cadence, design D1): "active" or "maintenance"; empty, missing or unknown reads as active. Shared with the project's members and written by those who may change its other fields. Maintenance mutes the health words, the stalled marker and "without a next action"; a passed deadline still shows. Sync checks the kind only; REST and the agent tools check the set. Not user text. |
workspace_id | string | null | The workspace the project belongs to, or null for the owner's default workspace (OpenSpec change workspaces, design D2). A partition key, not user text, so it is not an encrypted content field; on a shared project only the owner may write it (CanWrite). |
Reminder
reminder: fires relative to its task's due time or at an absolute instant (OpenSpec change reminders, docs/sync.md). fire_at is always the resolved instant, recomputed by the device that changes the task's due; the server scheduler only compares it with the clock. delivered_at is written by the server (device "server") when a push went out.
| Field | Type | Description |
|---|---|---|
created_at | number | |
deleted_at | number | null | |
delivered_at | number | null | |
dismissed_at | number | null | |
fire_at | integer | null | A point in time in Unix milliseconds. |
id required | string | The reminder's id. |
kind | "relative" | "absolute" | "deadline" | "arrive" | "leave" | |
offset_minutes | integer | null | Minutes relative to the due time (negative: before). |
radius_m | number | null | A location reminder's radius in metres, 100 to 5,000 (OpenSpec change location-reminders, design D1): set only on the kinds "arrive" and "leave", which fire on a phone that enters or leaves the circle around the task's location and never have a fire_at or an offset (reminder_check.go refuses the mixes). Not content: the place is in the task's encrypted location. |
task_id | string | An id: a UUID, or for some entities a name-based id. |
urgent | boolean | An urgent reminder (OpenSpec changes ios-urgent-alarms, design D1, and android-urgent-alarms): the iPhone and Android apps ring it as an alarm where they can; everywhere else it fires as an ordinary reminder. Not content. |
Section
section: a named, ordered container inside one project (OpenSpec change board-view). It lives in the sharing scope of its project like a task does; project_id never changes after creation (Apply refuses a scope change, the REST API refuses any change).
| Field | Type | Description |
|---|---|---|
aisle | string | null | The aisle an aisle section stands for in a reusable list (OpenSpec change reusable-lists, design D1): produce, bakery, dairy, meat, frozen, pantry, drinks, household or personal, or null. A fixed key, not user text, so it survives a rename and reads the same in every language; clients read an unknown key as null, and the REST API refuses it (invalid_aisle). Sync checks the kind only. Additive. |
color | string | null | A palette colour (#rrggbb) and a name from the icon catalogue, or null (OpenSpec change icons-and-section-style, design D4–D5). Not user text, so neither is an encrypted content field. Sync checks the kind only: a newer client may write an icon this server does not know yet. |
created_at | number | |
deleted_at | number | null | |
flow_mode | string | How the section's tasks flow (OpenSpec change project-flow-modes): "parallel" or "sequential"; empty, missing or unknown follows the project. Sync checks the kind only. Not user text. |
icon | string | null | |
id required | string | The section's id. |
name | string | |
position | number | |
project_id | string | An id: a UUID, or for some entities a name-based id. |
SplitFrom
| Field | Type | Description |
|---|---|---|
date required | string (date) | |
series required | string |
Task
| Field | Type | Description |
|---|---|---|
assignee_id | string | null | Account id of the assignee or null (OpenSpec change task-assignment); additive. Apply checks it against the task scope's membership at receipt. |
blocked_by | array of string | The tasks this one waits for, in its own sharing scope (OpenSpec change task-dependencies): one whole-list register; the resolver refuses ids of other scopes and lists that close a cycle. |
completed_at | number | null | |
completed_by | string | null | Account id of whoever completed the task, or null (OpenSpec change completed-date-filters, design D5); additive. Written beside completed_at; ApplyStrict fills it in for server-side completions. |
created_at | number | |
day_part | string | null | The part of the day besides Evening (OpenSpec change day-parts, design D1): null, "morning" or "afternoon". Evening stays the evening flag; clients write both fields in one batch (D2), and a task with the flag set reads as Evening whatever this holds. Not content; additive. |
deadline | string | null (date) | The day the task must be finished by, separate from the planned due date (OpenSpec change deadlines); additive. |
deleted_at | number | null | |
description | string | |
due | Due | null | |
energy | string | null | The energy the task asks for (OpenSpec change task-energy, design D1): "" (none), "deep", "medium" or "low". Chosen from a menu, never written text, so not content (D2); additive. |
estimate_minutes | integer | null | Duration estimate in minutes (OpenSpec change nlp-quick-add); additive. |
evening | boolean | |
flow_mode | string | How the task's own subtasks flow (OpenSpec change subtask-flow, GitHub issue 1046): "sequential" offers its open subtasks one at a time in list order; empty, "parallel", missing or unknown read as parallel, as on a project. Sync checks the kind only, so a later value stays additive; a client that does not know it shows every subtask as available. Not user text, so not content. |
habit | boolean | Habit tracking (habits D1): habit flags a series as a habit; skipped marks a record written by a skip. Additive booleans, not content. |
habit_amount | number | habit-targets D2: the day's goal (0 none), the check button's step and the unit (content); the day's amount sums its habit_tally rows. |
habit_anchor | string | |
habit_color | string | The habit's own colour (OpenSpec change habits-polish, design D5): a palette hex such as "#22c55e", or "" for automatic (the project's colour, else one picked from the id). Not content, like project colours; additive. |
habit_graduated_at | number | null | When the habit was graduated (habits-home D7), Unix ms, or null: a graduated habit is in no list, projection, reminder or Today limit and keeps its records; Resume continues it as a new piece of its lineage. Not content; additive. |
habit_period | string | |
habit_step | number | |
habit_target | number | habit-targets D1: check-ins a period needs (0 none, at most 31) and the period ("", "week", "month"). Not content. |
habit_tiny | string | The habit's tiny version and anchor (OpenSpec change habits-home, design D5): the two-minute version that still counts ("One page") and the moment it follows ("After dinner"). User-written text, so content; additive. Records copy them with the series' other fields, harmlessly. |
habit_unit | string | |
ical_extra | string | null | Unmapped iCalendar content lines of the task's VTODO (OpenSpec change caldav, design D3): opaque text, stored and synced, never shown. |
id required | string | The task's id. |
labels | array of string | |
location | Location | string | null | Where the task happens (OpenSpec change task-locations): one whole-value register like origin, so concurrent locations never mix; additive. |
note_mentions | array of string | The members an @mention in the notes names (OpenSpec change editor-everywhere, design D7): written with notes_doc, filtered to current members of the task's shared project at receipt, plaintext. |
notes_doc | string | The note as a mergeable rich-text document (OpenSpec change collaborative-rich-text); additive. description stays its Markdown projection, written by clients in the same batch. Opaque here. |
occurrence_date | string | null (date) | The occurrence date an occurrence record stands for (OpenSpec change series-exceptions, design D1; iCalendar RECURRENCE-ID), kept when the record is moved. Written once with series_id; the resolver refuses it on a task without series_id and refuses a change once set. A date, not content; additive (a record without it stands for its due date). |
origin | Origin | string | null | Where the task came from (OpenSpec change task-origin): one whole-value register like due, so concurrent origins never mix; additive. |
parent_id | string | null | |
position | number | |
priority | 1 | 2 | 3 | 4 | 1 is the highest, 4 the default. |
project_id | string | null | |
recurrence | string | null | Recurrence rule and the series an occurrence record belongs to (OpenSpec change recurring-tasks); additive. See docs/recurrence.md. |
rotation | array of string | Who takes turns on a recurring task, in order (OpenSpec change chore-rotation; see rotation.go): plaintext member ids like assignee_id, not content; inert without a rule or a second member. |
sample | boolean | A start guide sample task (moments-and-onboarding D3): excluded from Statistics, the Loop pulse and the digest. Not content; additive. |
section_id | string | null | Section of the task's project or null (OpenSpec change board-view); additive. A reference to a deleted, foreign or unknown section is a display rule on clients ("No section"), never rejected on the sync path. |
sector | string | null | The period the task is planned for without a date (OpenSpec change time-sectors, design D1): "" (none), an ISO week "2026-W44", a month "2026-11" or a quarter "2026-Q4". A sector with no do-on date schedules the task (it leaves the Inbox and Anytime) and is never overdue; clients name it relative to the viewer's date and derive carry-over, never writing it. A scheduling field like start: plaintext, not content; additive. |
series_id | string | null | |
skipped | boolean | |
span | boolean | Draw the task as a span from its start date to its do-on date (OpenSpec change multi-day-tasks, design D1). Only drawing changes: start keeps deferring and due stays the do-on date, and a flag without a valid range (a date start before due.date) draws as a plain task. Not content; additive. |
split_from | SplitFrom | null | The series a piece of a split lineage continues and the date it starts (OpenSpec change series-split, design D2): {series, date}, one whole value. Set when the piece is created; the resolver refuses it on a task without a rule, with a series in another sharing scope, and as a change once set. Not content; additive (an older client sees an ordinary series). |
start | string | null (date) | When the task becomes relevant: a start date that defers it, or "someday" (parked); and the This Evening flag (OpenSpec change someday-and-evening); additive. |
tiny | boolean | An occurrence record logged as the habit's tiny version (habits-home D5): set in the completion batch, never copied from the series; a full completion writes false. Not content; additive. |
title | string | |
workspace_id | string | null | The workspace of a task without a project, or null for the default (OpenSpec change workspaces, design D2); a task with a project follows its project and this value is ignored there. |
View
view: a saved filter query with presentation options (OpenSpec custom-views). kind, group_by, sort_by and sort_dir are enumerations carried as plain strings so a future option value stays additive: clients map unknown values to defaults at read time and only the REST API rejects them. panels holds view ids (dashboards).
| Field | Type | Description |
|---|---|---|
card_notes | boolean | The Board layout's notes preview (OpenSpec change board-polish, design D4): each card shows two lines of its notes as plain text. A setting, not user text, so not content; missing reads as off. |
color | string | |
created_at | number | |
deleted_at | number | null | |
group_by | string | |
hidden_props | array of string | |
icon | string | null | A name from the icon catalogue, or null for the default icon of the view's kind (OpenSpec change sidebar-polish, design D4). Not user text, so not content. Any string is accepted here so a newer catalogue stays additive; REST checks it with iconset.Valid and clients render an unknown name as the default icon. |
id required | string | The view's id. |
kind | string | |
layout | string | Display options of a list view (OpenSpec change views-and-display): the layout (an enumeration carried as a string), whether completed matches are listed, and the row properties the view hides. |
manual_order | array of string | A list view's own manual order (OpenSpec change view-manual-order, design D1, D2): the ids of the tasks placed by hand, in order; tasks not listed follow by position. One whole-list register. Not content. |
name | string | |
on_drop | any | A section's on-drop rule (docs/sync.md). |
panels | array of string | |
pinned | boolean | |
position | number | |
query | string | |
row_layout | string | The view's row layout (row-layouts D1): "line" or "detailed"; "" follows the account's choice (user_prefs.row_layout). |
show_completed | boolean | |
sort_by | string | |
sort_dir | string | |
subtasks | string | Nest subtasks in the List layout (GitHub issue 1108): "nested" shows a match under its parent when both match, as Today's option does; "" or any other value is the flat list. |
workspace_id | string | null | Workspace of the view, null for the default (OpenSpec change workspaces). |