Skip to main content

Get started with the API

You can make your first API call in a few minutes. You need a workspace owner or admin to create an API key; the key belongs to exactly one workspace and can only ever see that workspace.

1. Create an API key​

  1. Open Settings → Integrations in Kalaaf (workspace owner or admin only).
  2. Under API keys, choose Create, give the key a name, pick its scopes, and set an expiry (never, or 30 / 90 / 365 days).
  3. Copy the key now. It is shown only once and can never be retrieved again — only its hash is stored. A key looks like klaf_live_….

Keep the key secret: anyone with it can act in your workspace up to its scopes and the key creator's permissions. See Authentication for rotation and revocation.

2. Make your first request​

curl -s https://api.kalaaf.online/api/v1/projects \
-H "Authorization: Bearer klaf_live_…"

A successful response uses this envelope:

{
"ok": true,
"data": { "items": [], "offset": 0, "hasMore": false },
"meta": { "tool": "project.list", "requestId": "…" }
}

Reads return the workspace's records; writes return the created or updated record (201 Created for creates). Errors carry an error message and a code — see Errors.

3. Page through lists​

List endpoints accept ?limit= and ?offset= (limit 1–20, offset 0–500), plus the filters the endpoint declares (for example projectId or query):

curl -s "https://api.kalaaf.online/api/v1/tasks?limit=20&offset=0" \
-H "Authorization: Bearer klaf_live_…"

Next steps​

  • Browse the endpoint reference for every endpoint, grouped by domain.
  • Try requests in the browser with the interactive reference — paste your key into its authorize dialog.
  • Read Scopes before handing a key to a third party, and Rate limits before building a sync loop.
  • To receive events instead of polling, set up Webhooks.