Docs pages
Authentication
Last updated: November 20, 2026
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:
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 matchcalvana_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 acalvana_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:
- An
Originheader, which only a browser sends: 403browser_not_allowed, before the key is read. /v1 sends no CORS headers, so a browser's preflightOPTIONSgets the same 403.GET /v1/openapi.jsonis the one route a browser may call. - No
Authorizationheader, or an empty one: 401missing_credentials. - 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 429rate_limitedfor the rest of the minute. - A workspace outside the API beta: 403
api_access_not_enabled. - A key with an IP allowlist that doesn't hold the caller's address: 403
ip_not_allowed. - Over a rate limit: 429
rate_limited. - A beta operation without its
Calvana-Betaheader: 404beta_not_enabled. - A credential without the operation's scope: 403
insufficient_scope, with the scope named indetail. Calvana checks the scope before it looks anything up, so this 403 never says whether an ID exists. - 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.
| Scope | Allows |
|---|---|
members:read | GET /v1/members |
calendars:read | GET /v1/calendars |
availability:read | GET /v1/calendars/{id}/availability and POST /v1/forms/{id}/route |
forms:read | GET /v1/forms |
bookings:read | GET /v1/bookings and booking events |
bookings:write | Cancel, reschedule, change host and confirm a booking |
bookings:create | POST /v1/bookings |
submissions:read | GET /v1/submissions and submission events |
prospects:read | GET /v1/prospects, their notes, and prospect and note events |
prospects:write | PATCH /v1/prospects/{id} and POST /v1/prospects/{id}/notes |
links:read | The prospect's own links: links on bookings and resume_url on submissions. Without it both are null. |
webhooks:read | Webhook endpoints, their deliveries and attempts |
webhooks:write | Create 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.
| Preset | Scopes |
|---|---|
| Read only | Every :read scope except links:read. Nothing it calls can change data. |
| Full access | Every scope |
| Zapier | bookings:read, submissions:read, prospects:read, calendars:read, forms:read, links:read, webhooks:read, webhooks:write |
Rolling and revoking
| Action | What happens |
|---|---|
| Roll | A 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. |
| Edit | Change the name and scopes. A removed scope applies from the next request and the next webhook. |
| Revoke | Deletes 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/24or2001:db8::/32. A request from any other address gets 403ip_not_allowed. An empty list allows any address. - Calvana stores a single address as
/32, or/128for IPv6, and clears a range's host bits. An IPv4-mapped address such as::ffff:203.0.113.9counts as its IPv4 address. An entry with a zone index, such asfe80::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-Forheader 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.typeapi_keyand the key's ID inactor.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_idinmetadata.client_idand the grant's ID inmetadata.grant_id, since an assistant picks its own name. Its event hasactor.typemember, the member's ID inactor.member_idand the assistant's name inactor.app.