Kriyan

Agent API

Every operation is one HTTP call. These are the same operations your AI uses over MCP and the CLI runs, so anything one can do, the others can too.

Requests

Send POST https://kriyan.app/api/v1/<operation> with a JSON object as the body and a personal access token from Settings in the Authorization header. GET https://kriyan.app/api/v1 lists every operation with its JSON Schema.

Read today
curl -X POST https://kriyan.app/api/v1/get_today \
  -H "Authorization: Bearer $KRIYAN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Add a task from a sentence
curl -X POST https://kriyan.app/api/v1/add_task \
  -H "Authorization: Bearer $KRIYAN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"text": "essay fri 5pm #school every week remind 1h before"}'

Responses

A call that worked answers 200 with { "result": ... }. Anything else answers with { "error": "..." }, written to be shown to a person or fixed by an agent:

Dates are dates in your own calendar, like 2026-10-13, and “today” is today in the time zone from your profile. Times are minutes after midnight: 14:30 is 870. Lengths are minutes, and are only set when you know them.

Operations

get_today

Get today. Reads only, never changes anything.

Read the person's plan for a day (today by default): scheduled blocks, anytime tasks, tasks due that day with no day of their own, done tasks, tasks left from earlier days (earlier, each with ageDays, within the person's earlier window; older ones are in get_inbox), and habits. Read this before planning.

FieldTypeAbout
datestringA date like 2026-10-13, in the person's own calendar.

get_week

Get a week. Reads only, never changes anything.

Read seven days starting on a date (Monday of this week by default): each day's blocks, deadlines and planned hours against capacity, plus the inbox and unscheduled tasks.

FieldTypeAbout
startstringA date like 2026-10-13, in the person's own calendar.

get_inbox

Get the inbox. Reads only, never changes anything.

Read tasks captured without a date or a space (tasks), and older: tasks left from earlier days that are too old for Today's earlier window, each with ageDays.

Send an empty object.

get_space

Get a space. Reads only, never changes anything.

Read one space: its next and later tasks, child spaces, goals, note and stats.

FieldTypeAbout
spaceId (required)stringThe space's id.

get_task

Get a task. Reads only, never changes anything.

Read one task by id, with its note, repeat and reminders.

FieldTypeAbout
taskId (required)stringThe task's id.

list_spaces

List spaces. Reads only, never changes anything.

List every space as a tree, with ids, colours and paths like 'Work / Kriyan'.

Send an empty object.

get_progress

Get progress. Reads only, never changes anything.

Read time done this week and this year, time by space, goals against pace and habits.

Send an empty object.

add_task

Add a task. Changes your plan.

Add a task. Either pass text as one sentence the way a person types it ('essay fri 5pm #school every week remind 1h before') or pass the fields. Only the title is required. Never invent a length. Returns the task as saved, so check what was understood.

FieldTypeAbout
textstringOne sentence, parsed like the app's quick add.
titlestring
spaceIdstringThe space's id.
datestringA date like 2026-10-13, in the person's own calendar.
timeinteger, 0 to 1439Start time, in minutes after midnight (14:30 is 870).
lengthinteger, 1 to 1440Length in minutes. Leave it out unless the person said how long; never guess.
deadlinestringWhen it's due, if different from the day it's planned for.
dueTimeinteger, 0 to 1439The time on the deadline when it's due (23:55 is 1435). Needs a deadline. Put due times here, never in the title, in minutes after midnight (14:30 is 870).
repeatobjectHow the task repeats. Examples: every Tue and Thu {freq:'week',interval:1,weekdays:[1,3]}; last day of each month {freq:'month',interval:1,monthly:{kind:'last'}}; second Tuesday {freq:'month',interval:1,monthly:{kind:'nth',n:2,weekday:1}}; yearly {freq:'year',interval:1}; every 2 days after done {freq:'day',interval:2,fromCompletion:true}. Weekdays: 0 Monday to 6 Sunday.
reminderslist of objectReminders. {kind:'before',minutes:10} fires 10 minutes before the start (or before 09:00 for a task with no time); {kind:'day',offset:-1,time:1200} fires the day before at 20:00.
notestringMarkdown.
stepslist of objectA short checklist inside the task, in order, like [{title:'Outline',done:true},{title:'Draft',done:false}]. Send the whole list; it replaces the old one.
eventbooleanTrue for something attended (a class, a meeting) rather than ticked off.
goalIdstringThe goal's id.
prepForstringThe id of the test or deadline this task prepares for, like a daily study session before an exam event. Its view then says the test and how many days are left.
externalIdstringThe id your source gives this item (a Moodle assignment's id). Unique per person; upsert_tasks finds the task by it.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

update_task

Change a task. Changes your plan.

Change fields of a task. Pass null to clear a field. Changing the date of a repeating task moves only that occurrence; later ones keep their usual days. To change the days, change repeat.

FieldTypeAbout
taskId (required)stringThe task's id.
titlestring
spaceIdstring or nullThe space's id.
datestring or nullA date like 2026-10-13, in the person's own calendar.
timeinteger, 0 to 1439 or nullStart time, in minutes after midnight (14:30 is 870).
lengthinteger, 1 to 1440 or nullLength in minutes. Leave it out unless the person said how long; never guess.
deadlinestring or nullWhen it's due, if different from the day it's planned for.
dueTimeinteger, 0 to 1439 or nullThe time on the deadline when it's due (23:55 is 1435). Needs a deadline. Put due times here, never in the title, in minutes after midnight (14:30 is 870).
repeatobject or nullHow the task repeats. Examples: every Tue and Thu {freq:'week',interval:1,weekdays:[1,3]}; last day of each month {freq:'month',interval:1,monthly:{kind:'last'}}; second Tuesday {freq:'month',interval:1,monthly:{kind:'nth',n:2,weekday:1}}; yearly {freq:'year',interval:1}; every 2 days after done {freq:'day',interval:2,fromCompletion:true}. Weekdays: 0 Monday to 6 Sunday.
reminderslist of object or nullReminders. {kind:'before',minutes:10} fires 10 minutes before the start (or before 09:00 for a task with no time); {kind:'day',offset:-1,time:1200} fires the day before at 20:00.
notestring or nullMarkdown.
stepslist of object or nullA short checklist inside the task, in order, like [{title:'Outline',done:true},{title:'Draft',done:false}]. Send the whole list; it replaces the old one.
eventboolean or nullTrue for something attended (a class, a meeting) rather than ticked off.
goalIdstring or nullThe goal's id.
prepForstring or nullThe id of the test or deadline this task prepares for, like a daily study session before an exam event. Its view then says the test and how many days are left.
externalIdstring or nullThe id your source gives this item (a Moodle assignment's id). Unique per person; upsert_tasks finds the task by it.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

complete_task

Complete a task. Changes your plan.

Tick a task off. A repeating task moves to its next date. Send the date you read it on (null for a task with no date): if it has moved since, as after a retried call, the tick is refused instead of ticking the next occurrence too. The reply's completionId and date undo it with undo_complete.

FieldTypeAbout
taskId (required)stringThe task's id.
datestring or nullA date like 2026-10-13, in the person's own calendar.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

undo_complete

Undo a tick. Changes your plan.

Take back a tick from complete_task: the task returns to the date it was on and the tick stops counting. Send the completionId and date from complete_task's reply.

FieldTypeAbout
taskId (required)stringThe task's id.
completionId (required)stringThe completion's id.
date (required)string or nullA date like 2026-10-13, in the person's own calendar.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

reopen_task

Reopen a task. Changes your plan.

Mark a finished task as not done. A repeating task isn't finished by a tick (it moves to its next date); use undo_complete for that.

FieldTypeAbout
taskId (required)stringThe task's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

delete_task

Delete a task. Changes your plan.

Delete a task, with all its repeats. restore_task brings it back within 30 days. Check with the person first.

FieldTypeAbout
taskId (required)stringThe task's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

restore_task

Restore a deleted task. Changes your plan.

Bring back a task deleted in the last 30 days, as it was.

FieldTypeAbout
taskId (required)stringThe task's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

move_tasks

Move tasks. Changes your plan.

Move tasks to a date, optionally at a time. Pass date null to unschedule.

FieldTypeAbout
taskIds (required)list of string
date (required)string or nullA date like 2026-10-13, in the person's own calendar.
timeinteger, 0 to 1439 or nullStart time, in minutes after midnight (14:30 is 870).
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

close_day

Close the day. Changes your plan.

Move everything still open today to tomorrow, keeping times. Events, done tasks and proposals stay.

FieldTypeAbout
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

add_space

Add a space. Changes your plan.

Add a space, optionally inside another one. Colour defaults to the parent's.

FieldTypeAbout
name (required)string
colorone of "blue", "green", "orange", "purple", "red", "yellow", "teal", "pink"
parentIdstringThe parent space's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

update_space

Change a space. Changes your plan.

Rename a space, change its colour or parent, or replace its Markdown note.

FieldTypeAbout
spaceId (required)stringThe space's id.
namestring
colorone of "blue", "green", "orange", "purple", "red", "yellow", "teal", "pink"
parentIdstring or nullThe parent space's id.
notestring
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

add_habit

Add a habit. Changes your plan.

Add a habit with a weekly target (1 to 7 times a week), optionally feeding a goal (goalId). To do it as part of a routine, add it here, then put its id on the routine's part.

FieldTypeAbout
title (required)string
target (required)integer, 1 to 7
spaceIdstringThe space's id.
goalIdstringThe goal it feeds's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

check_habit

Check a habit. Changes your plan.

Mark a habit done or not done on a day (today by default).

FieldTypeAbout
habitId (required)stringThe habit's id.
done (required)boolean
datestringA date like 2026-10-13, in the person's own calendar.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

add_goal

Add a goal. Changes your plan.

Add a goal: a number to reach (kind 'number', e.g. 100 km) or a count of linked tasks to finish (kind 'tasks'). why is an optional line on why it matters, shown under the title.

FieldTypeAbout
title (required)string
whystring
kind (required)one of "number", "tasks"
target (required)number
unitstring
dueDatestringA date like 2026-10-13, in the person's own calendar.
spaceIdstringThe space's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

update_goal

Change a goal. Changes your plan.

Update a goal's progress (current), title, reason (why, null clears it), target, unit or due date.

FieldTypeAbout
goalId (required)stringThe goal's id.
titlestring
whystring or null
targetnumber
currentnumber
unitstring or null
dueDatestring or nullA date like 2026-10-13, in the person's own calendar.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

propose_plan

Propose a plan. Changes your plan.

Propose new time blocks. They appear in the app as proposals the person accepts or discards, so use this for plans rather than add_task. Each block is a new task with a date, a time and a length.

FieldTypeAbout
blocks (required)list of object
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

get_asks

Get waiting requests. Reads only, never changes anything.

Read what the person typed in Kriyan's Ask tab that Kriyan couldn't do on its own and is waiting for an agent, oldest first. Kriyan has no AI of its own: you are the one who answers. Do what each asks with the other tools, then call answer_ask.

Send an empty object.

answer_ask

Answer a request. Changes your plan.

Reply to one request from get_asks. The reply shows in the Ask tab under the request, with Undo on every change you made since it was asked, so say briefly what you did ('Moved the lab report to 14:00 and added 2 reading blocks') or answer the question. Plain sentences, no Markdown headings.

FieldTypeAbout
askId (required)stringThe request's id.
reply (required)string
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

search_tasks

Search tasks. Reads only, never changes anything.

Find tasks without reading whole views: by words in the title or note, space (with the spaces inside it), planned date range, deadline range, status, kind, the agent that added them or externalId. Open tasks by default. Returns compact rows with ids, newest first; pass the cursor back for the next page. Dates match a task's planned date (a repeat's next one); get_range lists every occurrence.

FieldTypeAbout
textstringWords that must all appear in the title or note, in any case.
spaceIdstringThe space's id.
includeChildSpacesbooleanInclude the spaces inside spaceId. Default true.
dateFromstringPlanned on or after, inclusive.
dateTostringPlanned on or before, inclusive.
deadlineFromstringDue on or after, inclusive.
deadlineTostringDue on or before, inclusive.
statusone of "open", "done", "deleted", "any"Default open.
kindone of "event", "task"event: attended (a class); task: ticked off.
addedBystringThe agent's name the task was added under, like 'Chitti school'.
externalIdstringThe one task with this source id.
limitinteger, 1 to 100Rows per page. Default 25.
cursorstringThe cursor from the previous page.

get_range

Get a range of days. Reads only, never changes anything.

Read any run of days up to 62 (a month or two): each day's blocks, anytime tasks, deadlines and planned hours against capacity, with repeats on every day they fall. Like get_week, without the inbox.

FieldTypeAbout
start (required)stringThe first day, inclusive.
end (required)stringThe last day, inclusive.

add_tasks

Add many tasks. Changes your plan.

Add up to 100 tasks in one call, each like add_task (text or fields). Use this instead of many add_task calls. Each result says what was saved or why that one was refused; the rest still go in. For a sync you'll run again, use upsert_tasks.

FieldTypeAbout
tasks (required)list of objectThe tasks, each with either text or a title.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

update_tasks

Change many tasks. Changes your plan.

Change up to 100 tasks in one call, each patch like update_task (null clears a field). Each result says what was saved or why that one was refused.

FieldTypeAbout
updates (required)list of objectOne patch per task.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

upsert_tasks

Sync tasks by externalId. Changes your plan.

Create or update up to 100 tasks by externalId, for a sync you run again and again (coursework from Moodle every morning): a new externalId adds the task, a known one changes only the fields that differ, and the same input again changes nothing. Fields you leave out stay as they are; null clears one. Reports created, updated, unchanged and skipped (deleted by the person, so not brought back). A done task stays done.

FieldTypeAbout
tasks (required)list of objectThe tasks, each with its externalId; a new one needs a title.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

complete_tasks

Complete many tasks. Changes your plan.

Tick off up to 100 tasks, each like complete_task: send the date you read it on so a retry can't tick a repeat's next occurrence. Each result has the completionId and date undo_complete takes.

FieldTypeAbout
tasks (required)list of objectThe tasks to tick off.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

delete_tasks

Delete many tasks. Changes your plan.

Delete up to 100 tasks, each with all its repeats. restore_tasks brings them back within 30 days. Check with the person first.

FieldTypeAbout
taskIds (required)list of stringUp to 100 task ids.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

restore_tasks

Restore many tasks. Changes your plan.

Bring back up to 100 tasks deleted in the last 30 days, as they were.

FieldTypeAbout
taskIds (required)list of stringUp to 100 task ids.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

skip_occurrence

Skip one occurrence. Changes your plan.

Skip one date of a repeating task (a class that's cancelled this week) without ticking it off: it moves to its next date by its rule. Send the date you read it on. Skipping the last one of an ended repeat deletes it.

FieldTypeAbout
taskId (required)stringThe task's id.
datestring or nullA date like 2026-10-13, in the person's own calendar.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

list_changes

List your changes. Reads only, never changes anything.

List what agents changed in the last days (7 by default, at most 31), grouped into runs the way the app shows them ('Chitti school added 31'), newest first, each change with its id and whether it can be undone.

FieldTypeAbout
daysinteger, 1 to 31
bystringOnly this agent's changes, by the name they're listed under.

undo_changes

Undo changes. Changes your plan.

Undo a whole run (runId from list_changes) or chosen changes (actionIds), the same as Undo in the app: an add is deleted, a change or move put back, a tick taken back, a delete restored. Changes to spaces, habits, goals and settings can't be undone here.

FieldTypeAbout
runIdstringA run's id from list_changes.
actionIdslist of stringChanges' ids from list_changes.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

delete_space

Archive a space. Changes your plan.

Archive a space, as the app's Archive space does: it leaves every list. Its tasks stay as they are (open, dated, with reminders) and show with no space; spaces inside it move to the top level. It can't be brought back through the API, so check with the person first.

FieldTypeAbout
spaceId (required)stringThe space's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

update_habit

Change a habit. Changes your plan.

Rename a habit, change its weekly target (1 to 7), its space or the goal it feeds (goalId; null for none).

FieldTypeAbout
habitId (required)stringThe habit's id.
titlestring
targetinteger, 1 to 7
spaceIdstring or nullThe space's id.
goalIdstring or nullThe goal it feeds's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

delete_habit

Archive a habit. Changes your plan.

Archive a habit: it leaves Today's check-ins and Progress. Its history stays.

FieldTypeAbout
habitId (required)stringThe habit's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

delete_goal

Archive a goal. Changes your plan.

Archive a goal: it leaves Goals and the task editor. Tasks linked to it stay.

FieldTypeAbout
goalId (required)stringThe goal's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

get_settings

Get settings. Reads only, never changes anything.

Read the person's time zone, day start (Wake up) and end (Wind down), daily capacity, default reminders, review time, semester dates, whether agents edit directly, and how Today looks: todayLayout, earlierWindow, showSpace, hideDone, nowBadge.

Send an empty object.

update_settings

Change settings. Changes your plan.

Change the day's start (Wake up) and end (Wind down), the daily capacity (minutes of planned work), default reminders for new timed tasks, the review time, the semester dates (null clears one) or how Today looks. The time zone follows the person's device, and whether agents edit directly is theirs to choose in Settings.

FieldTypeAbout
dayStartinteger, 0 to 1439When the day starts, in minutes after midnight (14:30 is 870).
dayEndinteger, 1 to 1440When the day ends, in minutes after midnight.
dailyCapacityinteger, 0 to 1440
defaultReminderslist of objectReminders. {kind:'before',minutes:10} fires 10 minutes before the start (or before 09:00 for a task with no time); {kind:'day',offset:-1,time:1200} fires the day before at 20:00.
reviewTimeinteger, 0 to 1439When Review today shows, in minutes after midnight (14:30 is 870).
semesterStartstring or nullA date like 2026-10-13, in the person's own calendar.
semesterEndstring or nullA date like 2026-10-13, in the person's own calendar.
todayLayoutone of "blocks", "list"Time blocks (default) or one line per item.
earlierWindowone of "none", "week", "month", "all"How far back Today shows what's left from earlier days. Default week.
showSpacebooleanShow the space's name after a row's title.
hideDonebooleanHide finished items from Today.
nowBadgebooleanMark the item happening now.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

list_routines

List routines. Reads only, never changes anything.

List the person's routines with every part (each with its index, length, habit and weekdays). get_today shows the day's routines with only that day's parts, what's ticked and the streak.

Send an empty object.

add_routine

Add a routine. Changes your plan.

Add a routine: one block of small parts done in a row at a time of day, like a morning routine at 07:00. Morning routines sit right after Wake up on Today, night routines right before Wind down.

FieldTypeAbout
title (required)string
time (required)integer, 0 to 1439When it starts, in minutes after midnight (14:30 is 870).
parts (required)list of objectThe parts in order, like [{title:'Brush teeth',length:5},{title:'Gym',length:45,habitId:'...',weekdays:[0,2,4,5]}]. Send the whole list; it replaces the old one. Ticks are kept by a part's place, so add new parts at the end.
spaceIdstringThe space's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

update_routine

Change a routine. Changes your plan.

Rename a routine, move its time, change its space (null for none) or replace its parts.

FieldTypeAbout
routineId (required)stringThe routine's id.
titlestring
timeinteger, 0 to 1439When it starts, in minutes after midnight (14:30 is 870).
partslist of objectThe parts in order, like [{title:'Brush teeth',length:5},{title:'Gym',length:45,habitId:'...',weekdays:[0,2,4,5]}]. Send the whole list; it replaces the old one. Ticks are kept by a part's place, so add new parts at the end.
spaceIdstring or nullThe space's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

delete_routine

Archive a routine. Changes your plan.

Archive a routine: it leaves Today. Its habits stay and show on their own again; their history stays.

FieldTypeAbout
routineId (required)stringThe routine's id.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

tick_routine

Tick a routine. Changes your plan.

Tick one part of a routine on a day (today by default), or every part that runs that day when index is left out. done false takes ticks back. A part that's a habit checks or unchecks the habit too.

FieldTypeAbout
routineId (required)stringThe routine's id.
indexinteger, at least 0The part's index, from list_routines or get_today.
done (required)boolean
datestringA date like 2026-10-13, in the person's own calendar.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.

log_goal

Log a goal. Changes your plan.

Log where a number goal stands now ($1,240 saved, 1.4 kg lost): value is the new total, not a change. It becomes the goal's current value and an entry on its trend line, one per day (a second log that day replaces the first). Pass an earlier date to fill in history. A tasks goal counts its linked tasks instead.

FieldTypeAbout
goalId (required)stringThe goal's id.
value (required)number, at least 0
datestringToday by default.
agentstringYour name as the person should see it, like 'Claude' or 'Codex'. Kriyan lists what each agent changed, with Undo. Defaults to the access token's name.