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.
curl -X POST https://kriyan.app/api/v1/get_today \
-H "Authorization: Bearer $KRIYAN_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'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:
- 400: the body isn't valid, or Kriyan refused the change. The message names the field.
- 401: no token, or the token was revoked.
- 404: there's no operation with that name.
- 500: something failed on Kriyan's side. Try again.
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 todayget_week: Get a weekget_inbox: Get the inboxget_space: Get a spaceget_task: Get a tasklist_spaces: List spacesget_progress: Get progressadd_task: Add a taskupdate_task: Change a taskcomplete_task: Complete a taskundo_complete: Undo a tickreopen_task: Reopen a taskdelete_task: Delete a taskrestore_task: Restore a deleted taskmove_tasks: Move tasksclose_day: Close the dayadd_space: Add a spaceupdate_space: Change a spaceadd_habit: Add a habitcheck_habit: Check a habitadd_goal: Add a goalupdate_goal: Change a goalpropose_plan: Propose a planget_asks: Get waiting requestsanswer_ask: Answer a requestsearch_tasks: Search tasksget_range: Get a range of daysadd_tasks: Add many tasksupdate_tasks: Change many tasksupsert_tasks: Sync tasks by externalIdcomplete_tasks: Complete many tasksdelete_tasks: Delete many tasksrestore_tasks: Restore many tasksskip_occurrence: Skip one occurrencelist_changes: List your changesundo_changes: Undo changesdelete_space: Archive a spaceupdate_habit: Change a habitdelete_habit: Archive a habitdelete_goal: Archive a goalget_settings: Get settingsupdate_settings: Change settingslist_routines: List routinesadd_routine: Add a routineupdate_routine: Change a routinedelete_routine: Archive a routinetick_routine: Tick a routinelog_goal: Log a goal
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.
| Field | Type | About |
|---|---|---|
date | string | A 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.
| Field | Type | About |
|---|---|---|
start | string | A 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.
| Field | Type | About |
|---|---|---|
spaceId (required) | string | The space's id. |
get_task
Get a task. Reads only, never changes anything.
Read one task by id, with its note, repeat and reminders.
| Field | Type | About |
|---|---|---|
taskId (required) | string | The 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.
| Field | Type | About |
|---|---|---|
text | string | One sentence, parsed like the app's quick add. |
title | string | |
spaceId | string | The space's id. |
date | string | A date like 2026-10-13, in the person's own calendar. |
time | integer, 0 to 1439 | Start time, in minutes after midnight (14:30 is 870). |
length | integer, 1 to 1440 | Length in minutes. Leave it out unless the person said how long; never guess. |
deadline | string | When it's due, if different from the day it's planned for. |
dueTime | integer, 0 to 1439 | The 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). |
repeat | object | How 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. |
reminders | list of object | Reminders. {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. |
note | string | Markdown. |
steps | list of object | A 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. |
event | boolean | True for something attended (a class, a meeting) rather than ticked off. |
goalId | string | The goal's id. |
prepFor | string | The 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. |
externalId | string | The id your source gives this item (a Moodle assignment's id). Unique per person; upsert_tasks finds the task by it. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
taskId (required) | string | The task's id. |
title | string | |
spaceId | string or null | The space's id. |
date | string or null | A date like 2026-10-13, in the person's own calendar. |
time | integer, 0 to 1439 or null | Start time, in minutes after midnight (14:30 is 870). |
length | integer, 1 to 1440 or null | Length in minutes. Leave it out unless the person said how long; never guess. |
deadline | string or null | When it's due, if different from the day it's planned for. |
dueTime | integer, 0 to 1439 or null | The 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). |
repeat | object or null | How 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. |
reminders | list of object or null | Reminders. {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. |
note | string or null | Markdown. |
steps | list of object or null | A 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. |
event | boolean or null | True for something attended (a class, a meeting) rather than ticked off. |
goalId | string or null | The goal's id. |
prepFor | string or null | The 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. |
externalId | string or null | The id your source gives this item (a Moodle assignment's id). Unique per person; upsert_tasks finds the task by it. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
taskId (required) | string | The task's id. |
date | string or null | A date like 2026-10-13, in the person's own calendar. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
taskId (required) | string | The task's id. |
completionId (required) | string | The completion's id. |
date (required) | string or null | A date like 2026-10-13, in the person's own calendar. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
taskId (required) | string | The task's id. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
taskId (required) | string | The task's id. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
taskId (required) | string | The task's id. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
taskIds (required) | list of string | |
date (required) | string or null | A date like 2026-10-13, in the person's own calendar. |
time | integer, 0 to 1439 or null | Start time, in minutes after midnight (14:30 is 870). |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
name (required) | string | |
color | one of "blue", "green", "orange", "purple", "red", "yellow", "teal", "pink" | |
parentId | string | The parent space's id. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
spaceId (required) | string | The space's id. |
name | string | |
color | one of "blue", "green", "orange", "purple", "red", "yellow", "teal", "pink" | |
parentId | string or null | The parent space's id. |
note | string | |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
title (required) | string | |
target (required) | integer, 1 to 7 | |
spaceId | string | The space's id. |
goalId | string | The goal it feeds's id. |
agent | string | Your 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).
| Field | Type | About |
|---|---|---|
habitId (required) | string | The habit's id. |
done (required) | boolean | |
date | string | A date like 2026-10-13, in the person's own calendar. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
title (required) | string | |
why | string | |
kind (required) | one of "number", "tasks" | |
target (required) | number | |
unit | string | |
dueDate | string | A date like 2026-10-13, in the person's own calendar. |
spaceId | string | The space's id. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
goalId (required) | string | The goal's id. |
title | string | |
why | string or null | |
target | number | |
current | number | |
unit | string or null | |
dueDate | string or null | A date like 2026-10-13, in the person's own calendar. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
blocks (required) | list of object | |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
askId (required) | string | The request's id. |
reply (required) | string | |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
text | string | Words that must all appear in the title or note, in any case. |
spaceId | string | The space's id. |
includeChildSpaces | boolean | Include the spaces inside spaceId. Default true. |
dateFrom | string | Planned on or after, inclusive. |
dateTo | string | Planned on or before, inclusive. |
deadlineFrom | string | Due on or after, inclusive. |
deadlineTo | string | Due on or before, inclusive. |
status | one of "open", "done", "deleted", "any" | Default open. |
kind | one of "event", "task" | event: attended (a class); task: ticked off. |
addedBy | string | The agent's name the task was added under, like 'Chitti school'. |
externalId | string | The one task with this source id. |
limit | integer, 1 to 100 | Rows per page. Default 25. |
cursor | string | The 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.
| Field | Type | About |
|---|---|---|
start (required) | string | The first day, inclusive. |
end (required) | string | The 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.
| Field | Type | About |
|---|---|---|
tasks (required) | list of object | The tasks, each with either text or a title. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
updates (required) | list of object | One patch per task. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
tasks (required) | list of object | The tasks, each with its externalId; a new one needs a title. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
tasks (required) | list of object | The tasks to tick off. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
taskIds (required) | list of string | Up to 100 task ids. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
taskIds (required) | list of string | Up to 100 task ids. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
taskId (required) | string | The task's id. |
date | string or null | A date like 2026-10-13, in the person's own calendar. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
days | integer, 1 to 31 | |
by | string | Only 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.
| Field | Type | About |
|---|---|---|
runId | string | A run's id from list_changes. |
actionIds | list of string | Changes' ids from list_changes. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
spaceId (required) | string | The space's id. |
agent | string | Your 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).
| Field | Type | About |
|---|---|---|
habitId (required) | string | The habit's id. |
title | string | |
target | integer, 1 to 7 | |
spaceId | string or null | The space's id. |
goalId | string or null | The goal it feeds's id. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
habitId (required) | string | The habit's id. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
goalId (required) | string | The goal's id. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
dayStart | integer, 0 to 1439 | When the day starts, in minutes after midnight (14:30 is 870). |
dayEnd | integer, 1 to 1440 | When the day ends, in minutes after midnight. |
dailyCapacity | integer, 0 to 1440 | |
defaultReminders | list of object | Reminders. {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. |
reviewTime | integer, 0 to 1439 | When Review today shows, in minutes after midnight (14:30 is 870). |
semesterStart | string or null | A date like 2026-10-13, in the person's own calendar. |
semesterEnd | string or null | A date like 2026-10-13, in the person's own calendar. |
todayLayout | one of "blocks", "list" | Time blocks (default) or one line per item. |
earlierWindow | one of "none", "week", "month", "all" | How far back Today shows what's left from earlier days. Default week. |
showSpace | boolean | Show the space's name after a row's title. |
hideDone | boolean | Hide finished items from Today. |
nowBadge | boolean | Mark the item happening now. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
title (required) | string | |
time (required) | integer, 0 to 1439 | When it starts, in minutes after midnight (14:30 is 870). |
parts (required) | list of object | The 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. |
spaceId | string | The space's id. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
routineId (required) | string | The routine's id. |
title | string | |
time | integer, 0 to 1439 | When it starts, in minutes after midnight (14:30 is 870). |
parts | list of object | The 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. |
spaceId | string or null | The space's id. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
routineId (required) | string | The routine's id. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
routineId (required) | string | The routine's id. |
index | integer, at least 0 | The part's index, from list_routines or get_today. |
done (required) | boolean | |
date | string | A date like 2026-10-13, in the person's own calendar. |
agent | string | Your 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.
| Field | Type | About |
|---|---|---|
goalId (required) | string | The goal's id. |
value (required) | number, at least 0 | |
date | string | Today by default. |
agent | string | Your 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. |