KavanahKavanah

AI Agents

Auto-Planning

AI builds your sprint

Smart Triage

Auto-prioritize & assign

Agent Workflows

Automate any process

Risk Detection

Flag blockers early

Platform

Boards & Views

Kanban, timeline, list

Team Spaces

Shared project hubs

Team Chat

Communicate in context

Smart Alerts

AI-curated notifications

Learn

Courses

Two free courses

Blog

Tips and updates

Documentation

Guides and references

Support

Help Center

Get answers fast

Community

Connect with others

Trust & Compliance

SOC 2, ISO, HIPAA, GDPR

PricingApps
Log inGet started

Docs

Documentation

User GuideDeveloper API
+
+

API REFERENCE

Full API ReferenceAuthenticationTasks APIProjects APIWorkspace APIMessages APIKnowledge APIAI Agent APIPlanning & Reports APIRBAC, Audit & ComplianceIntegrations APISCIM & SSO APIClient Portal APIBilling & WebhooksSystem & Cron API

API REFERENCE

Full API ReferenceAuthenticationTasks APIProjects APIWorkspace APIMessages APIKnowledge APIAI Agent APIPlanning & Reports APIRBAC, Audit & ComplianceIntegrations APISCIM & SSO APIClient Portal APIBilling & WebhooksSystem & Cron API
Listen
0:00 / ~3:19
+
+
Full API ReferenceNextTasks API
KavanahKavanah

© AW3 Technology, Inc. All rights reserved.

Authentication

Two ways to authenticate: a signed JWT in an HTTP-only kavanah_session cookie (what the browser app uses — set by the auth endpoints below), or an API key sent as a Bearer token — the right choice for integrating Kavanah with your own app or scripts.

API keys (integrations & server-to-server)

A workspace admin can mint an API key under Settings → API keys. The kvn_live_… token is shown exactly once at creation — Kavanah stores only a hash, so copy it immediately. Lost keys can't be recovered; revoke and mint a new one from the same panel. Minting needs an account whose email address is verified, and a key stops working as soon as the person who minted it is suspended.

Send it on every request:

Request header
Authorization: Bearer kvn_live_...
  • Scope: a key is bound to the workspace and user that created it — requests act as that user, with their permissions, in that one workspace. Integrating two workspaces means two keys.
  • No cookies, no CSRF: API-key requests skip the session cookie and CSRF token entirely, so plain server-to-server POSTs just work. The Bearer is authoritative — an invalid key is a 401, never a silent fallback to a session.
  • Management: GET/POST /api/settings/api-keys lists and mints keys, DELETE /api/settings/api-keys/[id] revokes one (admin session required — a key can't mint more keys). The list shows only prefixes and last-used timestamps, never secrets.
Building an AI agent or LLM integration? Point any MCP client at https://kavanah.ai/api/mcp instead of hand-wiring endpoints — Claude signs in with OAuth; other clients send this same key as Authorization: Bearer kvn_live_….

Other ways to get a token

  • kvn login (the Claude Code plugin's CLI) — a device sign-in: the CLI shows a code, someone approves it at /cli/authorize, and an ordinary kvn_live_… key is minted for them. Approving needs a workspace admin with a verified email address, just like minting a key in Settings.
  • Claude connector — when someone adds https://kavanah.ai/api/mcp as a custom connector in Claude and signs in, Claude receives an OAuth token (kvn_oat_…). It acts as that person in the workspace they approved, works only at /api/mcp (never on the REST endpoints), and is listed under Settings → API keys → Connected apps, where they can disconnect it. Any active member with a verified email address may connect.
  • App keys (kvn_app_…) are minted per installed community app and act as the app, not a person — see Building Apps.

Endpoints

Sign up

POST/api/auth/signup

Creates an account and signs the user in. The response sets the session cookie. password must be at least 8 characters.

POST /api/auth/signup
{
  "firstName": "Ada",
  "lastName": "Lovelace",
  "email": "ada@example.com",
  "password": "an-eight-char-min-password"
}

Log in

POST/api/auth/login

Exchanges email + password for a session cookie. Pass nextPath to receive a redirect target in the response.

POST /api/auth/login
{
  "email": "demo@kavanah.ai",
  "password": "Demo1234!"
}

Log out

POST/api/auth/logout

Ends the session on the server — including the refresh token the device would otherwise use to sign itself back in — and clears the cookies. No body required.

Forgot password

POST/api/auth/forgot-password

Sends a reset link to the email if it exists. The endpoint always returns 200 to avoid leaking which addresses are registered.

Reset password

POST/api/auth/reset-password

Consumes a token from the reset email and sets a new password (also 8-character minimum).

POST /api/auth/reset-password
{
  "token": "9a1d…",
  "password": "a-new-strong-password"
}

Errors

  • 400 — validation failure, duplicate email, or weak password.
  • 401 — invalid credentials, expired token, or missing session.
On a 401 response from any API route, the SPA automatically redirects to /login. If you're writing a server-to-server client, treat 401 as a signal to refresh the session.