Your assistant over the API
Talk to your personal assistant, decide what it holds for you, ask it to act, work with Tracks and teams, and push events from your own systems into its routines.
Everything your personal assistant does for you in the app is reachable from your own programs too: talking to it, what it remembers, what it holds for your approval, your Tracks, your project teams and their shared assistant, your lists, notes, people and calendar, its background Works and routines, and your notifications.
| Area | Path | Scopes |
|---|---|---|
| Talk, conversations | /assistant/chat/..., /assistant/conversations | ASSISTANT_CHAT, ASSISTANT_CONVERSATIONS_READ |
| Status, profile, memory | /assistant, /assistant/profile, /assistant/memory/... | ASSISTANT_READ, ASSISTANT_MEMORY_READ, ASSISTANT_MEMORY_WRITE |
| Approvals and requests | /assistant/approvals/..., /assistant/requests/... | ASSISTANT_APPROVALS_*, ASSISTANT_REQUESTS |
| Lists, notes, journal, documents, pages | /assistant/lists, /assistant/notebooks, /assistant/journal, /assistant/documents, /assistant/sheets, /assistant/pages | ASSISTANT_LISTS_*, ASSISTANT_NOTES_*, ASSISTANT_PAGES_* |
| People, places, calendar | /assistant/contacts, /assistant/world/..., /assistant/addresses, /assistant/away, /assistant/calendar, /assistant/meetings, /assistant/outbox, /assistant/free-times | ASSISTANT_PEOPLE_*, ASSISTANT_CALENDAR_* |
| Household: health, places and things, money | /assistant/household/... | ASSISTANT_HOUSEHOLD_* |
| Works, routines, events | /assistant/works, /assistant/routines, /assistant/events | ASSISTANT_WORKS_*, ASSISTANT_ROUTINES_*, ASSISTANT_EVENTS_* |
| Tracks | /tracks/... | TRACKS_READ, TRACKS_WRITE, TRACKS_SHARE, TRACKS_SCOUT |
| Teams and the team assistant | /teams/..., /team-assistant/... | TEAMS_READ, TEAMS_WRITE, TEAMS_MANAGE, TEAM_ASSISTANT |
| Notifications | /notifications/... | NOTIFICATIONS_READ, NOTIFICATIONS_WRITE |
Every route, with its fields and error codes, is in the API reference.
Give a key personal scopes
These scopes are personal. They are never part of Full access: a key holds one only when you tick it in the key dialog's Personal scopes section, on a Full-access key too. Agents in your calls and chats can never use them, whatever key the workspace holds. See API keys and permissions.
A key with personal scopes reads your private things. Give those only to programs of your own, and give each program only the scopes it needs.
Talk to your assistant
POST /assistant/chat/messages says something to your assistant as if you typed it in the
app's chat window — the same assistant, tools, memory and approvals — and waits for the
answer.
curl -s https://api.kilevel.com/api/external/v1/assistant/chat/messages \
-H "X-API-Key: $KILEVEL_API_KEY" -H "Content-Type: application/json" \
-d '{"message": "What is on my calendar tomorrow morning?", "waitSeconds": 30, "clientMessageId": "cal-2026-11-26"}'- Without
conversationIdit continues your current chat in the app, or begins one. Pass theconversation.idof an answer to keep writing in that one. 200when the turn ended withinwaitSeconds(at most 60):replyis the answer,messageseverything written after yours,turnthe steps it took.202while it still works: wait again withpoll.reply, or readpoll.turn.409 TURN_RUNNINGwhen a turn already runs in that conversation.- Send
clientMessageId: a retry with the same id never says the message twice. offTheRecord: truewrites in your off-the-record chat, of which nothing is kept — neither by the assistant nor in the API's access log.
Each answered turn counts against your plan like a turn in the app.
Approvals
What your assistant may only do with your yes waits in GET /assistant/approvals.
POST /assistant/approvals/{approvalId}/approve and /decline decide one, with these
limits:
- A decline always counts.
- A request the app alone shows whole, or one approved only as written, answers
409 APP_ONLYor409 DECIDED_AS_WRITTEN: approve it in the app. - A request made through the API is never approved through it (
409 ASKED_THROUGH_API), so no program can ask for something and approve it with nobody reading it.
Ask your assistant to act
POST /assistant/requests (follow up, research, book, call), POST /assistant/requests/messages
(an email or a text, in the exact words you approve) and POST /assistant/requests/bookings
hold the request for your yes. Its notice names the key that asked. Nothing runs before you
approve it, whatever your assistant may otherwise do on its own. GET /assistant/requests
lists how the requests of this key stand.
Push events into your routines
A routine set off by webhooks also takes events from your own systems through the API — no signature needed, your key says who sends:
POST /assistant/events
{
"routineId": "6f1c2a8e-3b7d-4c55-9a0e-2d4f8b1c7e90",
"eventId": "inv_2026_0042_paid",
"type": "invoice.paid",
"data": { "invoice": "2026-0042", "customer": "Acme GmbH", "amount": 1250.00 }
}The same eventId again is the same event: it is answered as a duplicate and the routine
does not run twice. The routine's webhook limits apply to both ways in together.
Tracks and teams
Tracks you create through the API are marked as coming from an app, and your assistant
reads their words as data, never as instructions. Writes in teams — comments, channel
posts, standup answers, decisions — are yours, as in the app. Asking a team's assistant
(POST /teams/{teamId}/assistant/messages) answers at once with the question and a
waiting answer; follow it with GET /teams/{teamId}/assistant/changes.
Errors
Errors carry error, message and a stable code to branch on:
| Status | Meaning |
|---|---|
400 | The request is malformed: MISSING_FIELD, INVALID_ID, INVALID_TIME, or the feature's own code |
403 | FEATURE_NOT_ENABLED (the account's plan or settings close the feature), a role a team needs |
404 | Not yours, or not there: TRACK_NOT_FOUND, TEAM_NOT_FOUND, CONVERSATION_NOT_FOUND ... |
409 | A state that refuses it: TURN_RUNNING, APP_ONLY, WATCH_HELD, plan limits with their reason |
429 | A rate limit: the key's, or the feature's own |
Texts written for people come in the account's app language unless lang asks for another.
Built for your own programs
These routes act as you. Keep the key in a secret store on your server, never in a browser or a mobile app, and revoke it the moment it may have leaked.