Back to Help Centre

API Keys

Use the Chronos REST API to read and create tasks from your own scripts, servers and automation tools.

By Mark Norton, Founder of Byte Size Labs · Updated 30 October 2026

Creating and managing API keys needs the Pro or Business plan. Upgrade in Settings › Billing. There's no screen for API keys yet — Settings › Integrations lists Zapier, Make & public API as Coming Soon — so for now you create keys with a request, as shown below. This article is for developers.

Creating an API Key

  1. Sign in to Chronos on the web and open your browser's developer console on any Chronos page.
  2. Run this request. It uses your signed-in session, so it only works on the Chronos site:
    await fetch("/api/api-keys", {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify({
        name: "Zapier",
        scopes: ["tasks:read", "tasks:write"],
        expires_in_days: 90
      })
    }).then((r) => r.json());
  3. Copy the key from the response. It starts with chk_ and is only shown once — Chronos stores a fingerprint of it, not the key itself. Keep it in a password manager or secrets vault.

Options

  • name(required, up to 255 characters) — what the key is for, such as “Zapier”
  • scopes (optional) — any of tasks:read, tasks:write, projects:read, user:read. Leave it out for a key that can use every endpoint. Don't send an empty list: that key can't use any endpoint.
  • expires_in_days (optional) — the key stops working after this many days. Without it, the key lasts until you revoke it.

Making Requests

The base URL is https://chronos-calendar.com/api/api/v1 (the doubled /api is correct). Send your key in the Authorization header as a Bearer token on every request, and send JSON bodies with Content-Type: application/json. Call the API from a server or automation tool: browsers on other websites are blocked from reading its responses.

curl "https://chronos-calendar.com/api/api/v1/tasks?status=active&limit=20" \
  -H "Authorization: Bearer chk_YOUR_KEY"
curl -X POST "https://chronos-calendar.com/api/api/v1/tasks" \
  -H "Authorization: Bearer chk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title": "Send the invoice", "due_at": "2026-11-07T17:00:00+11:00", "priority": 3, "duration_minutes": 45}'

Successful responses wrap the result in { "data": ... }. Priority runs from 1 (low) to 4 (urgent). Every request only sees the key owner's own tasks and projects.

Endpoints

  • GET/tasks (tasks:read) — Your tasks and events, newest first. Optional query: status (active or completed), priority (1–4), project_id, limit (default 50, maximum 100).
  • POST/tasks (tasks:write) — Create a task. Required: title and due_at (an ISO 8601 date-time). Optional: notes, priority (1–4, default 2), type (task or event, default task), duration_minutes (default 30), project_id. Returns 201.
  • PATCH/tasks/:id (tasks:write) — Update any of title, notes, priority, completed, due_at, duration_minutes, project_id. Returns the task, or null for a task that isn't yours.
  • GET/projects (projects:read) — Your 100 most recently created projects.
  • GET/me (user:read) — Your account: id, email, first and last name, timezone.

Scheduling:creating or updating a task through the API doesn't start a scheduling run, so a new task stays unscheduled until Chronos next schedules your tasks (for example when you add or change a task in the app). API changes aren't sent to Google Calendar or GitHub.

Rate Limits and Errors

Each key can make 300 requests every 15 minutes. Responses carry the standard RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers. Errors come back as { "error": "..." }:

  • 400 — a missing or invalid field, such as no title or a bad due_at
  • 401 — the key is missing, wrong, revoked or expired (the message says which)
  • 403— the key doesn't have the scope the endpoint needs, for example Insufficient scope. Required: tasks:write
  • 429 — rate_limited: wait until the window resets

Managing API Keys

  • List your keys: a GET to /api/api-keysfrom the console returns each key's id, name, first 12 characters, scopes, last use, expiry and whether it's revoked.
  • Revoke a key: a DELETE to /api/api-keys/ID stops it working straight away. Do this if a key may have leaked.
  • Rotate a key: create a new key with the same scopes, update your systems, then revoke the old one.

Webhooks:Chronos doesn't send webhooks for task or project changes yet. To pick up changes, poll GET /tasks within the rate limit.

Security best practices:
  • Never commit API keys to source control — use environment variables or a secrets manager
  • Use one key per integration, with only the scopes it needs, so you can revoke access selectively
  • Give keys an expiry and rotate them, especially after someone leaves your team