calvana/Docs
Docs pages

Errors

Last updated: November 19, 2026

Every error has the same shape and a stable code to branch on. This page lists each code the API can answer, what it means, and what to do about it.

The problem document

Every error answers with an RFC 9457 problem document, sent as application/problem+json:

An error
HTTP/1.1 409 Conflict
Content-Type: application/problem+json
X-Request-Id: 6f1c2a9e-3b0d-4c51-9e2f-7d8a1b2c3d4e

{
  "type": "https://calvana.com/docs/api/errors#slot_unavailable",
  "title": "Slot unavailable",
  "status": 409,
  "code": "slot_unavailable",
  "detail": "No host on Sales Call can take 12 Nov 2026 16:00 UTC.",
  "request_id": "6f1c2a9e-3b0d-4c51-9e2f-7d8a1b2c3d4e",
  "errors": []
}
FieldMeaning
typeA link to this page at the code's row. Stable.
titleA short summary of the code. Stable.
statusThe HTTP status again.
codeThe reason, for your code to branch on. Stable.
detailWhat went wrong this time, for a person. Its wording can change, so never parse it.
request_idThe same value as the X-Request-Id header. Quote it when you ask us about a request.
errorsField problems on a 400 or 422, otherwise empty. Each has a JSON Pointer into the body, or the name of a query parameter.
Field problems
"errors": [
  { "pointer": "/answers/2/value", "code": "missing", "detail": "Field required" },
  { "parameter": "start_after", "code": "timezone_aware", "detail": "Input should have timezone info" }
]

Branch on the status first, then on code. New codes can appear under a status that already exists, so handle a code you don't know as its status.

400 Bad request

CodeStatusWhat to do
invalid_requestInvalid request400The body or query failed validation. errors lists each problem. Fix those fields and send again.
invalid_jsonInvalid JSON400The body isn't valid JSON. Check the encoding and quoting of what you send.
unknown_parameterUnknown parameter400A body field or query parameter v1 doesn't know, often a typo. errors names it. Correct or remove it.
invalid_cursorInvalid cursor400The cursor was changed, or sent with other filters, another sort, another list or another workspace than the page it came from. Start again from the first page.

401 Unauthorized and 403 Forbidden

CodeStatusWhat to do
missing_credentialsMissing credentials401No Authorization header. Send Authorization: Bearer <key>.
invalid_credentialsInvalid credentials401The key is unknown, revoked, expired or past its roll overlap. Check that you copied all of it, or make a new one on Settings > Developers.
insufficient_scopeInsufficient scope403The credential lacks the scope detail and WWW-Authenticate name. For a key, add the scope on Settings > Developers. For an AI assistant's tool call, the member connects the assistant again and approves that scope, and their role must allow it. A member whose role changed loses, at once, every scope the new role doesn't allow.
ip_not_allowedIP address not allowed403The key's IP allowlist doesn't hold this address. Call from an allowed address, or add this one.
browser_not_allowedBrowser requests not allowed403The request carried an Origin header, so it came from a browser. Call /v1 from your server and keep the key there.
not_endpoint_ownerNot the endpoint's owner403Only the key that made a webhook endpoint may change, delete, test or replay it, rotate its secret or retry its deliveries through the API. No credential may do so for an endpoint made on Settings > Developers. Use the credential that made it. On Settings > Developers an Owner or Admin can turn any endpoint off or on.
api_access_not_enabledAPI access not enabled403The workspace isn't in the API beta. Email help@calvana.com to join.
insecure_transportHTTPS required403The request used plain HTTP. Call https://api.calvana.com/v1, and roll the key, which crossed the network unencrypted. request_id is null, because the load balancer answers before Calvana sees the request.

404 Not found and 405 Method not allowed

CodeStatusWhat to do
resource_not_foundResource not found404No such object in this workspace, or an ID with the wrong prefix. An object in another workspace is always 404. Check the ID and its prefix. For an ID you stored, treat it as deleted.
route_not_foundRoute not found404No such endpoint. Check the path against the reference, and drop any trailing slash.
beta_not_enabledBeta not enabled404A beta operation without its header. Send Calvana-Beta with the feature the reference names.
method_not_allowedMethod not allowed405The path has no such method. Use a method the Allow header lists. The reference lists the methods each path takes.

409 Conflict

CodeStatusWhat to do
booking_cancelledBooking cancelled409The booking is cancelled, so it can't change. Read it again to see where it stands.
call_already_startedCall already started409The call's start time has passed, so it can't move to another time or host. Leave it as it is.
outcome_already_recordedOutcome already recorded409The call already has an outcome, so it can't be cancelled, moved or given another host. Read the booking's outcome to see what was recorded.
slot_unavailableSlot unavailable409No host can take that time now. Read the calendar's availability again, pick another time and send it with a new Idempotency-Key: the first key replays this answer.
host_not_pickableHost not pickable409The host lacks an integration the workspace requires, or isn't on the calendar. Pick another host, or have them connect what's missing.
prospect_email_takenProspect email taken409Another prospect in the workspace has that email. Find them with GET /v1/prospects?email=.
booking_changedBooking changed409The booking moved or changed host while your request ran. Read it again, then decide whether to resend, with a new Idempotency-Key: the first key replays this answer.
prospect_already_bookedProspect already booked409The calendar takes one live call per prospect, and this prospect has one. Reschedule that booking instead.
reschedule_credits_used_upReschedule credits used up409The prospect has used the reschedule credits this calendar allows, and booking them on it again counts as one more. Raise or turn off the calendar's reschedule credits in the app, then send again with a new Idempotency-Key.
conflictConflict409The object's state refuses the change for a reason with no code of its own. detail says which. Read the object again before you retry, with a new Idempotency-Key: the first key replays this answer.
booking_account_missingTeam booking account missing409The workspace's team booking account isn't connected, so its live calls can't move. Ask an Owner or Admin to reconnect it on the Integrations page. Then resend with a new Idempotency-Key: the first key replays this answer.
idempotency_key_in_useIdempotency key in use409A request with the same Idempotency-Key is still running. Retry after a second with the same key.
endpoint_limit_reachedEndpoint limit reached409The workspace has 20 enabled webhook endpoints, or 200 made by Zapier keys. Delete or disable one first.
endpoint_owner_revokedEndpoint owner revoked409Turning the endpoint back on is refused because the key that owned it was revoked. An Owner can turn it back on from Settings > Developers, which makes the workspace its owner. Ask one to, or create a new endpoint with your own credential.
endpoint_disabledEndpoint disabled409The endpoint is off, so the test event, replay or retry would send nothing, and none is queued. Turn the endpoint back on first.

410 Gone, 413, 414 and 415

CodeStatusWhat to do
version_retiredVersion retired410This major version is past its sunset date. Move to the version the changelog names.
payload_too_largePayload too large413The body is over 1 MB. Send less in one request.
uri_too_longURI too long414The URL is over 8,000 bytes. Send fewer or shorter query values, and page through a long list.
unsupported_media_typeUnsupported media type415The body isn't JSON. Send it with Content-Type: application/json.

422 Unprocessable

CodeStatusWhat to do
idempotency_key_reusedIdempotency key reused422The key was used for a different request. Use a new key for each operation.
event_type_not_allowedEvent type not allowed422The endpoint asks for an event type whose object the credential can't read. detail names the type and the scope it needs. Add that scope to the key, or ask for fewer types. * asks for every type the credential can read.
endpoint_url_refusedEndpoint URL refused422The URL isn't HTTPS, uses a port other than 443 or 1024 to 65535, or points at a private address or a Calvana host. detail says which. Use an https:// URL on an allowed port whose host resolves to a public address.
form_not_liveForm not live422The form isn't live, or it is a standalone form, which books nothing. Send a routing form whose live is true. GET /v1/forms?kind=routing lists the routing forms.
disqualifiedDisqualified422The answers disqualify the prospect, as the form would on the booking page. Treat the prospect as not qualified: the same answers get the same refusal.
routed_elsewhereRouted elsewhere422The answers route to another calendar than the calendar_id you sent. Route the answers first, then book the calendar they reach.
blocked_by_spam_gateBlocked by spam gate422The workspace's block rules refused the prospect by email, phone, keyword, IP address or country. An email, phone or keyword rule also keeps a blocked submission and marks the prospect spam. If the prospect is genuine, change the Anti-spam & blocking rules in the app, then send again with a new Idempotency-Key.
outside_booking_windowOutside booking window422The time is further ahead than the calendar takes calls. Pick a time from its availability.
unprocessable_contentUnprocessable content422The request is well formed, but a product rule with no code of its own refused it. detail says which. Change the request before you send it again.

429 and 5xx

CodeStatusWhat to do
rate_limitedRate limited429Over a rate limit. Wait the seconds in Retry-After, then send again.
internal_errorInternal error500A bug on our side, and we get an alert. Retry once with the same Idempotency-Key, and quote request_id if it keeps failing.
upstream_failureUpstream failure502Zoom, Google or another provider failed before anything was saved. Retry with the same key.
request_timeoutRequest timeout503A database query ran past its 5 second limit. Retry with backoff, and narrow the filters if it repeats.
unavailableUnavailable503Calvana is overloaded or in maintenance, or another change got in the way and nothing was saved. Retry with backoff and the same key.

What to retry

AnswerRetry
409 idempotency_key_in_useAfter a second, with the same Idempotency-Key
429 rate_limitedAfter the seconds in Retry-After
429 with no bodyAfter 5 minutes. The edge refused the request before Calvana saw it.
500 internal_errorOnce, with the same Idempotency-Key
502 upstream_failureYes, with the same Idempotency-Key. Nothing was saved.
503With backoff, waiting 1, 2, 4 and 8 seconds and doubling up to a minute between tries.
Any other 4xxNo. The same request gets the same answer, so fix it first.

A POST retried with the Idempotency-Key it first carried never runs twice, so always retry a write with its original key.