← udle.app
Udle developer documentation

Todo API

Read and manage todos from agents, scripts, and integrations while Udle safely merges concurrent changes.

Prefer natural-language task management? Install the Udle CLI and agent skill.

Authentication

Create a personal access token in Settings → Account & billing → API access. The token is shown once. Send it with every request:

Authorization: Bearer udle_pat_...
A token with full access can read and modify everything in every profile in your account. Treat it like a password and revoke it immediately if it is exposed.

Token scopes

When you create a token you can limit it to some todos, using the same filter as a saved perspective: folders, projects, tags, statuses, due window, flag, delegation, and the people work is waiting on, plus optional exclusions and an optional single profile. The filter is copied into the token at creation, so editing a perspective later never widens a token. You can change a token's scope at any time from the same card (Edit scope), including back to full access; the token string stays the same.

Unlike a perspective, a scope's folders and projects add up: the token works inside any of those folders or any of those projects, and the other rows narrow that.

A limited token behaves like this:

Base URL

https://udle.app/api/v1

Endpoints

GET/profiles
GET/profiles/:profileId/todos
POST/profiles/:profileId/todos
PATCH/profiles/:profileId/todos/:todoId
DELETE/profiles/:profileId/todos/:todoId
GET/profiles/:profileId/status-marks
POST/profiles/:profileId/status-marks
PATCH/profiles/:profileId/status-marks/:markId
DELETE/profiles/:profileId/status-marks/:markId
PATCH/profiles/:profileId/status-marks/order
GET/profiles/:profileId/measurements
POST/profiles/:profileId/measurements
PATCH/profiles/:profileId/measurements/:measurementId
DELETE/profiles/:profileId/measurements/:measurementId
PATCH/profiles/:profileId/measurements/order
POST/profiles/:profileId/measurements/entries
POST/profiles/:profileId/measurements/:measurementId/entries
PATCH/profiles/:profileId/measurements/:measurementId/entries/:entryId
DELETE/profiles/:profileId/measurements/:measurementId/entries/:entryId
GET/profiles/:profileId/people
POST/profiles/:profileId/people
PATCH/profiles/:profileId/people/:personId
POST/profiles/:profileId/people/:personId/merge
GET/profiles/:profileId/waiting
GET/profiles/:profileId/check-ins
POST/profiles/:profileId/todos/:todoId/check-ins
GET/profiles/:profileId/changes?afterRevision=N

Start by listing profiles

curl -sS \
  -H "Authorization: Bearer $UDLE_TOKEN" \
  https://udle.app/api/v1/profiles

Use a returned profile id to fetch its todos. Include response headers so you retain the current ETag:

curl -i \
  -H "Authorization: Bearer $UDLE_TOKEN" \
  https://udle.app/api/v1/profiles/PROFILE_ID/todos

List a perspective

Every todo-list response includes the built-in and saved custom perspectives. Filter by a stable perspective ID or an unambiguous name. For calendar-day views such as Today, send the caller's JavaScript-style UTC offset in minutes.

curl -H "Authorization: Bearer $UDLE_TOKEN" \
  'https://udle.app/api/v1/profiles/PROFILE_ID/todos?perspective=Today&timezoneOffset=-120'

Built-in IDs are all, inbox, today, available, projects, flagged, and review. Saved perspectives can be selected by ID or name; duplicate names must use an ID.

Create a todo

Every mutation requires the latest known todo-list ETag in If-Match.

curl -X POST \
  -H "Authorization: Bearer $UDLE_TOKEN" \
  -H "Content-Type: application/json" \
  -H 'If-Match: W/"42"' \
  -d '{"title":"Book dentist","tags":["health"],"dueAt":"2026-08-12T09:00:00Z"}' \
  https://udle.app/api/v1/profiles/PROFILE_ID/todos

Update or complete a todo

curl -X PATCH \
  -H "Authorization: Bearer $UDLE_TOKEN" \
  -H "Content-Type: application/json" \
  -H 'If-Match: W/"43"' \
  -d '{"completed":true}' \
  https://udle.app/api/v1/profiles/PROFILE_ID/todos/TODO_ID

Writable fields

FieldTypeNotes
titlestringRequired when creating a todo.
notesstring or nullPlain-text notes.
tagsstring[]Up to 100 tags.
dueAtISO 8601 or nullDue date and time.
deferUntilISO 8601 or nullHide until this date and time.
effectiveDueAtread-only, ISO 8601 or nullDue date after inheriting from the nearest ancestor that has one; the todo's own dueAt always wins. dueAt stays the raw own value.
effectiveDeferUntilread-only, ISO 8601 or nullDefer date after ancestor inheritance; the todo's own deferUntil always wins. deferUntil stays the raw own value.
completedbooleanComplete or reopen the todo.
flaggedbooleanSet the flagged state.
delegatedbooleanMark work as handed off to an agent (robot badge in the app). A todo can be flagged and delegated at the same time; responses also return true when the todo carries a tag from the profile's delegated tags.
urls{ url, title? }[] or nullThe todo's link references (up to 50). url must be an http(s) address; a missing scheme is assumed to be https://, and anything else is 422 invalid_todo. title is optional (max 300 chars) and defaults to the hostname. A PATCH replaces the whole list, and null clears it. Every todo response returns read-only urls: [{ url, title }], [] when the todo has none.
parentIdstring or nullMove below another todo or back to the root.
positionnonnegative integerPosition among siblings. Creation inserts at that index (clamped to the end); an update re-inserts after removing the todo from its old slot.
containerMode"sequential" | "parallel" | "singleActionList"Project type; projects only, otherwise 422 not_project. Sequential projects make each child wait for the previous one.

Project context

Each todo includes isProject, projectId, projectName, projectPath, and read-only containerMode (the project's type, or null for plain todos). Use the stable project ID for mutations and show the full path when project names are duplicated.

Status marks

Status marks are your own labelled numbers - weight, open PRs, chapters read. Create any label/value pair and update the number from your scripts, cron jobs, or agents; pinned marks also show inside the Udle sidebar.

curl -X POST \
  -H "Authorization: Bearer $UDLE_TOKEN" \
  -H "Content-Type: application/json" \
  -H 'If-Match: W/"42"' \
  -d '{"label":"Weight (kg)","value":82.5,"pinned":true}' \
  https://udle.app/api/v1/profiles/PROFILE_ID/status-marks

curl -X PATCH \
  -H "Authorization: Bearer $UDLE_TOKEN" \
  -H "Content-Type: application/json" \
  -H 'If-Match: W/"43"' \
  -d '{"value":82.4}' \
  https://udle.app/api/v1/profiles/PROFILE_ID/status-marks/MARK_ID

Writable fields are label (required when creating), value (any finite number), pinned (boolean), url (an http(s) link shown as an external-link icon when pinned, or null to clear), unit (a short display string, max 8 chars — $ renders before the value, other units after; null clears), plus presentation-only symbol and colorHex. Mutations use the same ETag and sparse-merge rules as todos. GET returns marks in display order, and PATCH /status-marks/order with { "order": [markId, …] } (plus If-Match) sets it — drag to reorder in the app, or reorder from any API client.

Every create and every value-changing PATCH appends to the mark's history ledger, which the app charts as a sparkline. GET /status-marks?withHistory=1 adds history: [{ "at": ISO-8601, "value": number }] to each mark. Ledgers are kept forever: the newest 400 points stay raw, older ones fold to the last value per UTC day.

People and check-ins

People are records in your account for the colleagues you wait on; they never sign in and Udle never contacts them. Set assigneeId on a todo or project to a person id ("me" overrides a person inherited from the project, null inherits again). Waiting work leaves Today, Available and Flagged, reports nextAction: false, and appears in the waiting perspective with a read-only checkIn object: next check-in, whether it is due, deadline state, ask count and log.

GET /check-ins groups due check-ins per person ("Check in with Adrian: 3 open tasks, 1 overdue"). POST /todos/:todoId/check-ins records one with kind asked (optional note, nextAt), rescheduled (newDue; the old deadline is logged), done, or snoozed (until). checkInRhythm and checkInBeforeDueDays on create and update override the default rhythm: every 14 days from the last check-in, plus 7 days before and on the deadline. Full field reference: docs/web/API.md and udle checkin --help.

Measurements

Measurements are tracked readings — weight, LDL, resting heart rate, estimated 1RM. Create a measurement once, then log point-in-time entries from your scripts, cron jobs, or agents; GET /measurements?withEntries=1 adds entries: [{ "id": …, "at": ISO-8601, "value": number, "note": string|null, "externalID"?: string }] to each measurement, ascending by at.

curl -X POST \
  -H "Authorization: Bearer $UDLE_TOKEN" \
  -H "Content-Type: application/json" \
  -H 'If-Match: W/"42"' \
  -d '{"label":"Weight","unit":"kg","category":"Body","better":"down","pinned":true}' \
  https://udle.app/api/v1/profiles/PROFILE_ID/measurements

curl -X POST \
  -H "Authorization: Bearer $UDLE_TOKEN" \
  -H "Content-Type: application/json" \
  -H 'If-Match: W/"43"' \
  -d '{"at":"2026-08-08T07:00:00Z","value":82.4,"note":"morning"}' \
  https://udle.app/api/v1/profiles/PROFILE_ID/measurements/MEASUREMENT_ID/entries

Writable fields are label (required when creating), symbol, colorHex (#RRGGBB), unit (a short display string, max 8 chars — $ renders before the value, other units after; null clears), category, rangeLow/rangeHigh (a low that is not below the high clears both), better ("up" or "down"), and pinned. On creation you can also set source ({"kind":"exercise","exerciseID":…,"metric":"oneRepMax"|"topSet"|"volume"}) to derive the series from logged workouts; derived measurements are read-only — entry writes return 409 derived_read_only. Entry writes take at (ISO 8601 or Apple-epoch seconds), value, note, and — at insert only — externalID, a caller dedupe key such as a HealthKit UUID. linkedID is managed in the app, not by the API. Mutations use the same ETag and sparse-merge rules as todos and share the app's per-account measurement write budget.

GET returns measurements in display order, and PATCH /measurements/order with { "order": [measurementId, …] } (plus If-Match) sets it — unknown ids are dropped and unlisted measurements fall back to creation order at the end.

POST /measurements/entries batch-logs up to 50 {"measurementID", "at", "value", "note"?, "externalID"?} rows in one revision: { "revision":…, "added":n, "skippedDuplicate":n, "unknown":[…], "rejectedDerived":[…] }. Unknown measurement ids land in unknown, derived ones in rejectedDerived, and a repeated externalID is skipped instead of inserted twice — a replay spends no write and returns the current revision. The single-entry endpoints are stricter: missing ids return 404 measurement_not_found or 404 measurement_entry_not_found, and bad input, a missing ETag, or a derived write return 422/409 codes (invalid_measurement, invalid_measurement_entry, invalid_date, revision_required, derived_read_only).

Concurrent changes

Udle uses sparse synchronization. A stale ETag can still succeed when another client changed a different todo or a different field. If both clients changed the same field or structural relationship, the API returns 409 sync_conflict with the conflicting paths. Reload the todo list and decide which value to keep.

Incremental synchronization

Poll /changes?afterRevision=N to retrieve sparse operations after a known revision. Change cursors are retained for 1,000 sparse revisions. If requiresFullSnapshot is true, reload the complete todo list before continuing.

Errors

Errors use a consistent JSON shape:

{
  "error": {
    "code": "sync_conflict",
    "message": "The same todo fields changed elsewhere.",
    "fields": ["tasks/{todo-id}/completedAt"]
  }
}

Common statuses are 401 for an invalid token, 404 for a missing profile or todo, 422 for invalid input or a missing ETag, and 409 for a synchronization conflict or expired revision.