5 minutes to help shape OpenTodo. Anonymous, no account. Take the survey

Schemas

Due

When a task is due: floating (the viewer's day) unless tz is set.

Fields
FieldTypeDescription
date requiredstring (date)YYYY-MM-DD.
timestringOptional wall-clock time, HH:MM.
tzstringOptional 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).

Fields
FieldTypeDescription
error requiredobject
error.code requiredstringA stable error code. New codes may be added in 1.x; treat an unknown one by its HTTP status.
error.message requiredstringA 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>.

Fields
FieldTypeDescription
created_atnumber
deleted_atnumber | null
id requiredstringThe field's id.
namestring
optionsstring
positionnumber
project_idstringAn id: a UUID, or for some entities a name-based id.
typestring
workspace_idstring | nullThe 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).

Fields
FieldTypeDescription
colorstring
created_atnumber
deleted_atnumber | null
group_bystringDisplay 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 requiredstringThe label's id.
manual_orderarray of stringThe 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.
namestring
positionnumber
row_layoutstringThe label page's row layout (row-layouts D1); "" follows the account's.
sort_bystring
sort_dirstring
workspace_idstring | nullWorkspace of the label, null for the default (OpenSpec change workspaces).

Location

Fields
FieldTypeDescription
addressstring
latnumber
lonnumber
namestring
place_idstring

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.

Fields
FieldTypeDescription
created_atnumber
daystringA 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_atnumber | null
descriptionstring
id requiredstringThe note's id.
labelsarray of stringLabel ids, one whole-list register like task.labels.
notes_docstringThe note itself: Markdown in description, the mergeable document in notes_doc, written as a pair, as on tasks and projects.
positionnumberWritten at creation (the creation time) and kept for a later manual order; the Notes page sorts by when the note last changed.
project_idstring | nullThe note's project, or null for a personal note; decides its scope.
templatebooleanA template (note-templates D1): the note is offered under From template… and New note copies it; otherwise a note like any other.
titlestringThe note's title; an empty one reads "Untitled note".
workspace_idstring | nullThe 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.

Fields
FieldTypeDescription
created_atnumber
deleted_atnumber | null
done_atnumberWhen it was marked done, Unix ms; 0 = open.
id requiredstringThe objective's id.
periodstringThe quarter "YYYY-Qn" or ISO week "YYYY-Www" it is for; never a month.
positionnumberOrder within its period.
titlestringThe objective, one line of 1 to 140 characters (ciphertext for an encrypted account).

Origin

Where a task came from (docs/api.md "Task fields").

Fields
FieldTypeDescription
idstring
kind requiredstring
providerstring
titlestring
urlstring (uri)

Project

Fields
FieldTypeDescription
aislesboolean
archivedboolean
colorstring
created_atnumber
deleted_atnumber | null
descriptionstringThe project's note (OpenSpec change project-notes): Markdown in description, the mergeable document in notes_doc, as on tasks.
flow_modestringHow 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.
iconstring | nullAn 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 requiredstringThe project's id.
namestring
no_next_actionbooleanThe 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_docstringA mergeable notes document ("ydoc:v1:…"), see docs/sync.md "Mergeable documents". Write description (Markdown) instead unless you merge documents yourself.
parent_idstring | null
positionnumber
reusablebooleanThe 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.
statusstringThe 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_idstring | nullThe 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.

Fields
FieldTypeDescription
created_atnumber
deleted_atnumber | null
delivered_atnumber | null
dismissed_atnumber | null
fire_atinteger | nullA point in time in Unix milliseconds.
id requiredstringThe reminder's id.
kind"relative" | "absolute" | "deadline" | "arrive" | "leave"
offset_minutesinteger | nullMinutes relative to the due time (negative: before).
radius_mnumber | nullA 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_idstringAn id: a UUID, or for some entities a name-based id.
urgentbooleanAn 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).

Fields
FieldTypeDescription
aislestring | nullThe 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.
colorstring | nullA 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_atnumber
deleted_atnumber | null
flow_modestringHow 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.
iconstring | null
id requiredstringThe section's id.
namestring
positionnumber
project_idstringAn id: a UUID, or for some entities a name-based id.

SplitFrom

Fields
FieldTypeDescription
date requiredstring (date)
series requiredstring

Task

Fields
FieldTypeDescription
assignee_idstring | nullAccount id of the assignee or null (OpenSpec change task-assignment); additive. Apply checks it against the task scope's membership at receipt.
blocked_byarray of stringThe 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_atnumber | null
completed_bystring | nullAccount 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_atnumber
day_partstring | nullThe 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.
deadlinestring | null (date)The day the task must be finished by, separate from the planned due date (OpenSpec change deadlines); additive.
deleted_atnumber | null
descriptionstring
dueDue | null
energystring | nullThe 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_minutesinteger | nullDuration estimate in minutes (OpenSpec change nlp-quick-add); additive.
eveningboolean
flow_modestringHow 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.
habitbooleanHabit tracking (habits D1): habit flags a series as a habit; skipped marks a record written by a skip. Additive booleans, not content.
habit_amountnumberhabit-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_anchorstring
habit_colorstringThe 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_atnumber | nullWhen 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_periodstring
habit_stepnumber
habit_targetnumberhabit-targets D1: check-ins a period needs (0 none, at most 31) and the period ("", "week", "month"). Not content.
habit_tinystringThe 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_unitstring
ical_extrastring | nullUnmapped iCalendar content lines of the task's VTODO (OpenSpec change caldav, design D3): opaque text, stored and synced, never shown.
id requiredstringThe task's id.
labelsarray of string
locationLocation | string | nullWhere the task happens (OpenSpec change task-locations): one whole-value register like origin, so concurrent locations never mix; additive.
note_mentionsarray of stringThe 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_docstringThe 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_datestring | 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).
originOrigin | string | nullWhere the task came from (OpenSpec change task-origin): one whole-value register like due, so concurrent origins never mix; additive.
parent_idstring | null
positionnumber
priority1 | 2 | 3 | 41 is the highest, 4 the default.
project_idstring | null
recurrencestring | nullRecurrence rule and the series an occurrence record belongs to (OpenSpec change recurring-tasks); additive. See docs/recurrence.md.
rotationarray of stringWho 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.
samplebooleanA start guide sample task (moments-and-onboarding D3): excluded from Statistics, the Loop pulse and the digest. Not content; additive.
section_idstring | nullSection 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.
sectorstring | nullThe 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_idstring | null
skippedboolean
spanbooleanDraw 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_fromSplitFrom | nullThe 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).
startstring | 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.
tinybooleanAn 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.
titlestring
workspace_idstring | nullThe 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).

Fields
FieldTypeDescription
card_notesbooleanThe 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.
colorstring
created_atnumber
deleted_atnumber | null
group_bystring
hidden_propsarray of string
iconstring | nullA 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 requiredstringThe view's id.
kindstring
layoutstringDisplay 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_orderarray of stringA 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.
namestring
on_dropanyA section's on-drop rule (docs/sync.md).
panelsarray of string
pinnedboolean
positionnumber
querystring
row_layoutstringThe view's row layout (row-layouts D1): "line" or "detailed"; "" follows the account's choice (user_prefs.row_layout).
show_completedboolean
sort_bystring
sort_dirstring
subtasksstringNest 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_idstring | nullWorkspace of the view, null for the default (OpenSpec change workspaces).