calvana/Docs
Docs pages

Authentication

Last updated: November 20, 2026

Every /v1 request carries an API key, which belongs to one workspace. The key's scopes decide what it can read and change. OAuth tokens are only for AI assistants on the MCP server.

API keys

An API key belongs to one workspace, and the key decides which workspace a request reads. There is no workspace header, so an agency running ten workspaces holds ten keys. Send the key as a Bearer token on every request:

Every request
Authorization: Bearer calvana_live_4kGq0x...
  • An Owner or Admin makes keys on Settings > Developers, with a name and scopes. A workspace holds up to 50 keys, Zapier's included. Making a 51st answers 400 until one is revoked.
  • Calvana shows the whole key once, when you create or roll it. It keeps a SHA-256 hash and the first 16 and last 4 characters, which the developer page shows.
  • A key is calvana_live_, 32 random characters and a 6-character checksum: 51 characters that match calvana_live_[0-9A-Za-z]{38}. The checksum lets Calvana refuse a mistyped key before any lookup. Add the pattern to your own secret scanner to catch a leaked key.
  • Keys made before the API look like sk_live_ and 48 hex characters. They keep working until rolled, and Settings > Developers marks each one Made before scopes. Rolling one keeps its ID and gives it a calvana_live_ secret.
  • /v1 accepts no session cookie and no HTTP Basic, so a signed-in browser can't call it.
  • A key belongs to the workspace, not the member who made it. When you offboard a member, the preview lists their keys with Revoke ticked. Untick a key that runs a shared integration to keep it working.
  • Keys made for Zapier keep working on Zapier's own endpoints. In a workspace in the beta they also call /v1, with the Zapier preset's scopes.

How Calvana checks a request

Calvana reads the key from the Authorization header only. A key in the query string, a JSON body or a form field counts as no key. Send one Authorization header with the Bearer scheme, matched in any case, and the key after one space. Two checks come before the key is read: a URL over 8,000 bytes answers 414 uri_too_long, and an operation past its sunset answers 410 version_retired. The other checks run in this order, and the first that fails answers:

  1. An Origin header, which only a browser sends: 403 browser_not_allowed, before the key is read. /v1 sends no CORS headers, so a browser's preflight OPTIONS gets the same 403. GET /v1/openapi.json is the one route a browser may call.
  2. No Authorization header, or an empty one: 401 missing_credentials.
  3. Another scheme such as Basic, Bearer with no key, anything after the key, a key with a bad checksum, or one that is unknown, revoked, expired or past its roll overlap: 401 invalid_credentials. So does an OAuth token, which works only at /mcp (see OAuth is for AI assistants). After 30 failed lookups in a minute from one IP with the same key prefix, that pair gets 429 rate_limited for the rest of the minute.
  4. A workspace outside the API beta: 403 api_access_not_enabled.
  5. A key with an IP allowlist that doesn't hold the caller's address: 403 ip_not_allowed.
  6. Over a rate limit: 429 rate_limited.
  7. A beta operation without its Calvana-Beta header: 404 beta_not_enabled.
  8. A credential without the operation's scope: 403 insufficient_scope, with the scope named in detail. Calvana checks the scope before it looks anything up, so this 403 never says whether an ID exists.
  9. An ID in the path, a filter or the body that isn't in this workspace: 404 resource_not_found. A malformed ID, an unknown one and another workspace's get the same answer.

A 401 carries WWW-Authenticate: Bearer realm="calvana". When a key or token was sent and refused, it adds error="invalid_token". A missing credential or another scheme adds no error. A 403 insufficient_scope carries Bearer realm="calvana", error="insufficient_scope", scope="bookings:write" with the scope it needs. The other 403s and the failed-lookup 429 carry no challenge. The /v1 challenge names no resource_metadata. Only the /mcp 401 does, as the Claude and MCP page shows.

Scopes

Each operation needs one scope. The reference names it on every operation.

ScopeAllows
members:readGET /v1/members
calendars:readGET /v1/calendars
availability:readGET /v1/calendars/{id}/availability and POST /v1/forms/{id}/route
forms:readGET /v1/forms
bookings:readGET /v1/bookings and booking events
bookings:writeCancel, reschedule, change host and confirm a booking
bookings:createPOST /v1/bookings
submissions:readGET /v1/submissions and submission events
prospects:readGET /v1/prospects, their notes, and prospect and note events
prospects:writePATCH /v1/prospects/{id} and POST /v1/prospects/{id}/notes
links:readThe prospect's own links: links on bookings and resume_url on submissions. Without it both are null.
webhooks:readWebhook endpoints, their deliveries and attempts
webhooks:writeCreate endpoints for the event types the credential can read. On the endpoints it owns: change, test, replay, rotate the secret, delete, and retry deliveries.

Four routes need no scope. GET /v1/workspace answers any key. GET /v1/openapi.json takes no key at all. GET /v1/events and GET /v1/events/{id} show only the events about objects the key may read, so a key with only bookings:read sees only booking events.

links:read stands apart because the links are bearer links. Anyone holding a booking's manage_url can cancel or move that call. A key that reads bookings for a report never needs them.

Presets

The create dialog offers three presets. You can tick scopes by hand instead.

PresetScopes
Read onlyEvery :read scope except links:read. Nothing it calls can change data.
Full accessEvery scope
Zapierbookings:read, submissions:read, prospects:read, calendars:read, forms:read, links:read, webhooks:read, webhooks:write

Rolling and revoking

ActionWhat happens
RollA new secret on the same key, with the same ID, name, scopes and webhook endpoints. The old secret keeps working for the overlap you pick: none, 1 hour, 24 hours or 7 days.
EditChange the name and scopes. A removed scope applies from the next request and the next webhook.
RevokeDeletes the key at once. Its next request gets 401, and Calvana disables the webhook endpoints it owns.

To swap a key without downtime, roll it with a 24-hour overlap and deploy the new secret within that day. The old secret stops on its own. A key keeps only one earlier secret, so rolling it again inside an overlap ends the first secret at once.

Creating, rolling, editing and revoking a key each add a row to Team Activity. Each row holds the key's ID, prefix and last four characters, so it still matches the request log after the key is deleted. An edit's row lists the before and after of each changed name, scope list, end date and allowlist.

If a key leaks, revoke it at once, or roll it with no overlap, and email help@calvana.com with where it appeared.

Expiry and IP allowlists

A key can carry an end date and an IP allowlist, both set on Settings > Developers.

  • An end date must be in the future and carry a UTC offset. Otherwise saving answers 400.
  • From its end date every secret of the key answers 401 invalid_credentials, a rolled key's previous secret inside its overlap included. A key past its end date can't get a new one or be rolled, so make a new key.
  • The workspace's Owners and the key's creator get an email 7 days and 1 day before the end date. Changing the date starts both emails again for the new date.
  • An allowlist holds up to 50 IPv4 or IPv6 addresses and CIDR ranges, such as 203.0.113.0/24 or 2001:db8::/32. A request from any other address gets 403 ip_not_allowed. An empty list allows any address.
  • Calvana stores a single address as /32, or /128 for IPv6, and clears a range's host bits. An IPv4-mapped address such as ::ffff:203.0.113.9 counts as its IPv4 address. An entry with a zone index, such as fe80::1%eth0, or one that isn't an address or range, answers 400.
  • Calvana checks the address its load balancer sees, so an X-Forwarded-For header the caller sends counts for nothing.
  • The allowlist applies on /v1, on /mcp and on the Zapier app's routes, and an edit applies from the key's next request. An AI assistant's OAuth token has no allowlist.

OAuth is for AI assistants

/v1 takes API keys only. Calvana runs OAuth 2.1 so Claude and other AI assistants can connect to the MCP server at https://api.calvana.com/mcp, and its tokens work there and nowhere else. /v1 answers an OAuth access token, refresh token or code with 401 invalid_credentials. To build on /v1, make an API key.

The Claude and MCP page covers how an assistant signs in, what each role lets it do, and how an Owner or Admin cuts it off under AI assistants on Settings > Developers.

Who made a change

Every change made through the API names its credential, in the app and in the event that reports it.

  • A change made with a key shows in Team Activity as "API key: Warehouse sync", with the key's name, and its event has actor.type api_key and the key's ID in actor.api_key_id. The row keeps the name after the key is revoked.
  • Where a rule depends on who acted, a key counts as the host side. A cancel through the API runs the Cancelled by host workflows and records the outcome as recorded by host.
  • A change an AI assistant makes through the MCP server names its member and the assistant, such as "Casey, via Claude". The row also keeps the assistant's client_id in metadata.client_id and the grant's ID in metadata.grant_id, since an assistant picks its own name. Its event has actor.type member, the member's ID in actor.member_id and the assistant's name in actor.app.