Cronus API
Read and edit your own Cronus data over HTTP. The API is free on every plan.
Get a key
In the Cronus app, open Settings → Integrations → API and click New key. Choose what the key can read. The key is shown once, so copy it then. Revoke it there at any time. Existing keys stay read-only. To enable writes, create a new key with the write permissions you need; they are off by default.
stats: daily totals by categoryactivity: blocks, intervals and events, with apps, titles and URLsmemories: what Cronus has learned about your workactivity:write: create, edit and delete manual entries, and correct categoriescategories:write: create, edit, archive and delete categoriesmemories:write: create, edit, rate and delete memoriesscreen_text: the text Cronus read off your screen. Off by default. With on-device categorization, screen text never leaves your Mac, so there is none to return.
Make a request
Send the key as a bearer token. Every response is JSON.
curl https://cronus-server.fly.dev/api/v1/stats/daily?from=2026-10-12\&to=2026-10-18 \
-H "Authorization: Bearer crn_..."Base URL: https://cronus-server.fly.dev/api/v1
Endpoints
| Endpoint | Scope | Returns | Parameters |
|---|---|---|---|
| POST /manual-entries | activity:write | Create a manual time entry. | JSON: name, categoryId, start, end |
| PATCH /manual-entries/:id | activity:write | Edit a manual entry. | JSON: name, categoryId, start, end (all optional) |
| DELETE /manual-entries/:id | activity:write | Delete a manual entry and restore observed time underneath it. | |
| PATCH /intervals/:id/category | activity:write | Correct one interval’s category. | JSON: categoryId |
| PATCH /blocks/:id/category | activity:write | Correct every interval behind a calendar block. | JSON: categoryId |
| POST /categories | categories:write | Create a category. | JSON: name, color, productive; optional description, emoji, groupId |
| PATCH /categories/:id | categories:write | Edit or archive a category. | JSON: name, color, productive, description, emoji, groupId, archived (all optional) |
| DELETE /categories/:id | categories:write | Delete a category, optionally moving its time to another category. | Optional query: reassignToId |
| POST /memories | memories:write | Store a memory, respecting the existing limits and deduplication. | JSON: text (max 200 characters) |
| PATCH /memories/:id | memories:write | Replace a memory’s text. | JSON: text |
| DELETE /memories/:id | memories:write | Delete a memory. | |
| POST /memories/:id/feedback | memories:write | Rate a memory. A down vote hides it; an up vote restores it. | JSON: vote (up or down), optional comment |
| GET /me | any | Your account, time zone and the key’s scopes. | |
| GET /categories | any | Every category, including archived ones. | |
| GET /stats/daily | stats | Per day: total, productive and unproductive time, app switches, time per category. | from, to (dates, up to 92 days) |
| GET /stats/day | stats | One day, with time per activity (app or website) as well. Summaries need activity. | date |
| GET /blocks | activity | Your calendar as Cronus draws it: blocks with their name, summary, category and activities. | from, to (dates, up to 31 days) |
| GET /intervals | activity | The timeline under the calendar: every span in an app or on a site, with title, URL and category. | from, to, limit, cursor |
| GET /events | activity | Every captured window switch, with the AI’s summary and reasoning. Screen text needs screen_text. | from, to, limit, cursor |
| GET /memories | memories | What Cronus has learned about your work. Evidence excerpts need screen_text. |
Write an entry
Write permissions are independent of read permissions. Pick both if your script needs to read back its changes. IDs come from the read endpoints; for manual entries, use the id returned by creation, or manualEntryId on an interval or block. A block’s own id is only for block operations.
curl -X POST "https://cronus-server.fly.dev/api/v1/manual-entries" \
-H "Authorization: Bearer $CRONUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Planning","categoryId":"YOUR_CATEGORY_ID","start":"2026-10-18T14:00:00Z","end":"2026-10-18T14:30:00Z"}'Send JSON bodies. Write timestamps must be epoch milliseconds or ISO timestamps with a time-zone offset. Manual entries must be in the past and last at least a minute (at most 31 days per entry). As in the app, creation may trim the entry to the available time beside another manual entry; read the returned start and end. An edit that overlaps another manual entry is refused with 409.
Category corrections use the app’s rollup/rebuild path. Deleting a category withoutreassignToId leaves its time uncategorized. Raw captured events cannot be rewritten, and these permissions do not allow changing billing, credentials or API keys.
Dates and times
- Dates are
YYYY-MM-DDin your account’s time zone. A range includes both ends, sofrom=2026-10-18&to=2026-10-18is that whole day. Without dates you get today. /intervalsand/eventsalso take ISO timestamps or epoch milliseconds forfromandto.- Times in responses are ISO 8601 in UTC. Durations are milliseconds.
Paging
/intervals and /events return up to limit rows (default 200, max 1000) and a nextCursor. Pass it back as cursor with the same range until it is null.
cursor=""
while :; do
page=$(curl -s "https://cronus-server.fly.dev/api/v1/events?from=2026-10-18&limit=500&cursor=$cursor" \
-H "Authorization: Bearer $CRONUS_API_KEY")
echo "$page" | jq -c '.events[]'
cursor=$(echo "$page" | jq -r '.nextCursor // empty')
[ -z "$cursor" ] && break
doneLimits and errors
60 requests per minute per key. Over that you get 429 with a Retry-After header. Errors look like {"error": {"code": "missing_scope", "message": "..."}}: 401 for a missing or revoked key, 403 for a missing scope, 400 for bad parameters, 404 for a missing record (including records belonging to another account), and 409 for duplicates, conflicts or a full memory store.