Docs → API errors
API error codes
Every non-2xx response from the Velor API includes a machine-readableerror code and an optional human-readablemessage. This page documents every code, the HTTP status it maps to, and how to handle it.
Error response shape
// Every non-2xx response from the Velor API has this shape:{ "error": "invalid_api_key", // machine-readable code "message": "The API key is invalid.", // optional human-readable detail "request_id": "8d2f6c1e9a7b4c30-SJC" // also sent as the X-Request-Id header}The error field is always present on error responses. The message field is present when there's actionable detail (e.g. which field failed validation).
Handling errors with the SDK
// @velorplatforms/sdk is not published to npm yet; use the OpenAPI spec until it is.import { VelorClient, VelorApiError } from "@velorplatforms/sdk";const velor = new VelorClient({ apiKey: process.env.VELOR_API_KEY! });try { const convo = await velor.conversations.get(id);} catch (err) { if (err instanceof VelorApiError) { switch (err.code) { case "not_found": // handle 404 break; case "rate_limited": // back off and retry — retryAfterMs reads the Retry-After header, // falling back to the body's retry_after_ms when one is sent await sleep(err.retryAfterMs ?? 60_000); break; case "plan_limit_exceeded": // surface upgrade prompt break; default: // unexpected — log and rethrow throw err; } }}Rate limiting
Rate-limited responses include three headers to help you back off correctly:
HTTP/1.1 429 Too Many Requestsx-velor-api-version: 2026-05-01X-RateLimit-Limit: 500X-RateLimit-Remaining: 0X-RateLimit-Reset: 1790000000Retry-After: 1847Content-Type: application/json{ "error": "rate_limited", "message": "Rate limit reached. Wait the number of seconds in the Retry-After header, then retry.", "retry_after_ms": 1847000}| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests allowed in the current window |
X-RateLimit-Remaining | Requests remaining in the current window |
Retry-After | Seconds to wait before retrying |
Limits are per API key, counted in fixed one-hour windows — a window does not slide, so an exhausted bucket stays exhausted until it resets.
- Reading conversations (list and fetch): 500 req/hour
- Creating conversations: 60 req/hour; updating one: 120 req/hour
- Appending messages: 200 req/hour
- Creating calls: 120 req/hour
- Conversation exports: 10 req/hour
- Contacts, knowledge and webhook endpoints: 600 req/minute each (a separate bucket per family)
- Plus a 1,000 req/hour ceiling per key, shared by every v1 endpoint except the four families listed above (contacts, knowledge, webhooks and exports), which are governed by their own per-endpoint bucket and by an organization-wide ceiling.
Authentication & authorization
invalid_key_format401The Authorization header is present but the token is not in the expected velor_live_<token> format.
Fix: Generate a new key in Dashboard → Settings → API Keys. Keys have the prefix velor_live_.
invalid_api_key401The key format is correct but the token doesn't match any active key in your workspace.
Fix: Confirm the key wasn't revoked. Generate a new key and update your environment variable.
insufficient_scope403The key is valid but doesn't have the scope required by this endpoint (e.g. calling a write endpoint with a read-only key).
Fix: Create a new key with the required scope, or edit the existing key's scopes in Settings → API Keys.
too_many_attempts429Too many failed authentication attempts from your IP in the last minute.
Fix: Stop retrying with the rejected key and fix the credential first. The counter clears after a minute.
ip_not_allowed403The key is valid but your workspace restricts API access to an IP allowlist, and this request did not come from one of those addresses.
Fix: Add the calling IP or CIDR range in Dashboard → Settings → Security, or call from an allowed address.
ip_check_failed503The IP allowlist could not be evaluated. Velor fails closed here rather than admitting a request it could not check.
Fix: Retry with backoff. If it persists, check status.velorplatforms.com.
Input validation
bad_input422A required field is missing, a field value is out of range, or a UUID is malformed.
Fix: Read the message field — it names the specific field and constraint that failed.
invalid_body400The request body can't be parsed as the expected type.
Fix: Verify Content-Type is application/json and the body is valid JSON.
invalid_json400The body claims to be JSON but is syntactically invalid.
Fix: Run the body through a JSON validator. Common causes: trailing commas, unescaped quotes.
payload_too_large413The request body exceeds the per-endpoint size limit.
Fix: Split the payload into smaller chunks, or use the knowledge upload endpoint for large documents.
unreadable_body400The request body could not be read to the end, for example because the connection was cut mid-upload.
Fix: Retry the request. If it keeps happening, check for a proxy or client timeout that closes the connection before the body is sent.
version_eval_failed422You published an agent version whose saved test set has not passed: the version's eval record shows a failing result.
Fix: Open the version, review the failed cases, fix the agent and re-run the test set, then publish again.
eval_check_failed503The eval record for this version could not be read, so Velor refused to publish it rather than assume the tests passed.
Fix: Retry in a minute. If it keeps failing, contact support with the request id from the response.
invalid_input400A field failed validation. The message names which one. Answers 400 for a malformed field and 422 when the value is well-formed but not acceptable (for example a snoozed_until in the past, or an assignee who is not in the workspace).
Fix: Read the message field and correct that field.
invalid_id400A path or body identifier is not a well-formed UUID.
Fix: Pass the id exactly as the API returned it.
invalid_email400An email address in the request is not a valid address.
Fix: Correct the address. Velor validates shape only — it does not verify deliverability at this point.
invalid_cursor400The cursor passed for pagination is malformed or was not issued by this endpoint.
Fix: Pass back the next_cursor value verbatim; do not construct one.
invalid_sample_size400sample_size on POST /api/v1/evals/runs is not a positive number.
Fix: Send a whole number from 1 to 2000, or omit it to run the whole dataset.
invalid_dataset_id400The evals dataset id is not a well-formed identifier.
Fix: Use an id returned by the datasets endpoint.
invalid_since400The since parameter is not a parseable ISO-8601 timestamp.
Fix: Send an ISO-8601 timestamp, e.g. 2026-01-31T00:00:00Z.
invalid_until400The until parameter is not a parseable ISO-8601 timestamp.
Fix: Send an ISO-8601 timestamp, e.g. 2026-01-31T00:00:00Z.
invalid_range400On GET /api/v1/analytics, since is later than until.
Fix: Send since earlier than until.
range_too_large400On GET /api/v1/analytics, the range between since and until is longer than 366 days.
Fix: Request at most 366 days at a time and combine the results.
invalid_status400The status filter is not one this endpoint recognizes.
Fix: Use one of the documented status values for the resource.
name_required400A tag write omitted the name field, or sent it empty.
Fix: Send a non-empty name. Tag names are 1–50 characters.
name_too_long422A tag name is longer than the 50 characters the database permits.
Fix: Shorten the name to 50 characters or fewer.
name_query_param_required400DELETE on a conversation's tags was called without the ?name= query parameter.
Fix: Append ?name=<tag> — the tag to remove is named in the query string, not the body.
invalid_color422A tag color is not one of the accepted values.
Fix: Omit the color to take the default, or send one of the documented values.
content_required400A note was posted with no content, or content that is only whitespace.
Fix: Send non-empty content. An empty note is refused rather than stored blank.
content_too_long400A note's content exceeds the per-note length limit.
Fix: Split the note, or store the long form in your own system and reference it.
email_too_long422A contact email exceeds the maximum length.
Fix: Check the address — this length is usually a sign of a concatenation bug upstream.
url_fetch_failed422A knowledge source URL could not be fetched: DNS failure, non-2xx response, timeout, or a host the SSRF guard refuses (private and link-local ranges).
Fix: Confirm the URL loads from the public internet. A page behind auth or a VPN cannot be ingested — paste the content instead.
url_not_reachable400A knowledge source URL was refused before any fetch because it does not resolve to a public host (private, loopback or link-local addresses). The message says why.
Fix: Use a URL on the public internet, or paste the content as a text source.
invalid_url422A webhook endpoint URL does not resolve to a public host.
Fix: Register an https URL on the public internet. Private and internal addresses are refused.
invalid_email_format422The email filter on a contacts request is not a valid email address.
Fix: Correct the address, or look the contact up by id instead.
invalid_window400The window parameter on GET /api/v1/analytics is not one of 7d, 30d or 90d.
Fix: Send one of those three values, or omit window and pass since/until.
invalid_transition422A PATCH asked for a status change the conversation lifecycle does not allow from its current status, for example resolved to escalated. The message lists the allowed targets.
Fix: Move through an allowed status first (reopen, then escalate), or send one of the targets the message names.
invalid_agent_id400The agent id in the path is not a well-formed UUID.
Fix: Pass the id exactly as GET /api/v1/agents returned it.
invalid_against400The against parameter on a version diff is not a version id.
Fix: Pass a version id from the same agent, or omit against to diff with the live version.
invalid_environment422A publish named an environment that does not exist. The message lists the valid ones.
Fix: Send one of the environments the message names.
invalid_require_eval422The require_eval object on a publish is malformed.
Fix: Send require_eval as { run_id: <uuid>, min_score: <number between 0 and 1> }, or omit it.
unknown_action422A skill names an action_id that does not exist in your workspace.
Fix: Create the action first, or correct the id. GET the actions you have before referencing one.
unknown_owner422A skill names an owner_user_id that is not a member of your workspace.
Fix: Use the id of a team member in this workspace, or omit owner_user_id.
Resource & access
not_found404The requested resource ID doesn't exist or belongs to a different organization.
Fix: Confirm the ID is correct. Velor enforces tenant isolation — you can only access resources in your own workspace.
conversation_not_found404Specific to conversation endpoints — the conversation ID is invalid or was deleted.
Fix: Check the ID. Resolved conversations are retained; the ID should always be valid if it was returned by the API.
org_not_found404The organization inferred from the API key doesn't exist (key is stale after org deletion).
Fix: The workspace was likely deleted. Contact support@velorplatforms.com.
forbidden403The authenticated key doesn't have access to this specific resource.
Fix: Confirm the resource belongs to the key's workspace.
persona_not_found404The voice persona named on a calls request does not exist in this workspace.
Fix: Create the persona in Dashboard → Voice, or omit the field to use the default.
contact_not_found404No contact in your workspace matches the id or email in the request.
Fix: List contacts first and use an id from that response. A contact deleted by a retention job is gone rather than hidden.
knowledge_source_not_found404The knowledge source id does not exist in your workspace.
Fix: GET /api/v1/knowledge to list current source ids. Ids are not reused after deletion.
delivery_not_found404The webhook delivery id does not exist in your workspace.
Fix: GET /api/v1/webhooks/deliveries?status=failed to list delivery ids.
delivery_not_retryable409You asked to retry a delivery that did not fail. Only a failed (dead-lettered) delivery can be retried; re-sending a delivered or pending one would hand the receiver a duplicate.
Fix: List failed deliveries with GET /api/v1/webhooks/deliveries?status=failed and retry one of those.
webhook_disabled409The delivery's endpoint is disabled (by you, or automatically after repeated failures), so a retry has nowhere to go.
Fix: Fix the endpoint, enable it with PATCH /api/v1/webhooks/:id {"enabled": true}, then retry.
webhook_not_found404The webhook endpoint id does not exist in your workspace.
Fix: GET /api/v1/webhooks to list endpoint ids.
tag_not_found404No tag with that name exists in your workspace.
Fix: POST the tag to a conversation first — that creates it if missing — or check the spelling, which is case-sensitive.
tag_not_on_conversation404The tag exists in your workspace but is not assigned to this conversation, so there is nothing to remove.
Fix: Treat this as success if your goal is absence. GET the conversation's tags to see what is assigned.
agent_not_found404The agent id does not exist in your workspace.
Fix: GET /api/v1/agents to list agent ids.
version_not_found404The agent version id does not exist on that agent.
Fix: GET the agent's versions and use an id from that list.
baseline_not_found404A version diff has nothing to compare against: the against version does not exist, or no version is live in that environment.
Fix: Pass an existing version id as against, or publish a version to the environment first.
eval_run_not_found422The run_id in require_eval does not exist in your workspace.
Fix: Use a run id returned by the evals runs endpoint.
eval_run_incomplete422The run_id in require_eval names a run that has not finished, so it cannot vouch for the version.
Fix: Wait for the run to complete, then publish again.
conversation_resolved409A message was posted to a resolved conversation.
Fix: PATCH the conversation to status open first, then post the message.
conversation_snoozed409A message was posted to a snoozed conversation, where agents would not see it.
Fix: PATCH the conversation to status open first, then post the message.
duplicate_url409A knowledge source with this URL already exists in your workspace.
Fix: Use the existing source (GET /api/v1/knowledge), or delete it before adding the URL again.
Billing & plan limits
plan_limit_exceeded402The request would create a resource beyond your plan's limits (the conversation limit applies on a trial; paid plans are not cut off at their conversation allowance, only warned and invoiced — knowledge sources and seats are limited on every plan) — or the workspace is paused, typically after trial expiry and its grace period. The reason field distinguishes them, and on POST /api/v1/knowledge a limit field carries the plan's source cap.
Fix: Read reason, then upgrade or resume in Dashboard → Settings → Billing, or contact sales@velorplatforms.com.
quota_exceeded402A per-resource quota for this billing period is used up — voice minutes on the calls endpoints, for example.
Fix: Wait for the period to roll over, or raise the quota in Dashboard → Settings → Billing.
budget_exceeded402The workspace's voice spend cap for this billing period has been reached.
Fix: Raise the cap in Dashboard → Settings → Billing. Calls resume once it is raised.
consent_required403Your organization is in a regulated industry (fintech, HR/payroll, healthcare) and chat_consent_required is enabled. The visitor hasn't yet confirmed the consent prompt.
Fix: The chat widget handles consent automatically. For programmatic conversations, pass visitor_consented: true once the visitor has accepted.
org_tag_limit_reached422Your workspace already has 300 tags and the request would create a new one. Assigning a tag that already exists still succeeds.
Fix: Delete unused tags, or reuse an existing name. The cap protects the auto-tagging prompt, which carries your tag names.
conversation_tag_limit_reached422The conversation already carries 30 tags and the request would add another. Re-adding a tag already on it still succeeds.
Fix: Remove a tag first. The cap bounds what gets injected into the model's context for that conversation.
notes_limit_reached422The conversation has reached its maximum number of notes.
Fix: Consolidate existing notes, or keep the long history in your own system.
contact_limit_reached422Your workspace already holds 50,000 contacts and the request would create another. Updating an existing contact still succeeds.
Fix: Delete contacts you no longer need, or contact us to raise the cap.
Rate limiting
rate_limited429You've exceeded the rate limit for this endpoint. Limits are per API key.
Fix: Back off for the number of seconds in the Retry-After header, then retry. Buckets are fixed one-hour windows, so Retry-After can be most of an hour. Default limits: 500 req/hour for conversation reads, 60 req/hour for conversation creates, 200 req/hour for message appends.
org_rate_limited429The whole workspace has exceeded its aggregate hourly API quota, across every key it holds. Distinct from rate_limited, which is per key and per endpoint.
Fix: Retry after an hour, and spread scheduled work out rather than adding more keys — the cap is on the workspace.
idempotency_key_in_flight409A request with this Idempotency-Key and the same body is still being processed. A request that is refused (a 4xx or 5xx) releases its key, so this only means another attempt is genuinely in flight.
Fix: Wait and retry the same key; do not reissue under a new one, or the request may run twice.
idempotency_key_conflict422This Idempotency-Key was used before with a different request body, or on a different endpoint. A key is compared against a SHA-256 of the exact bytes it first carried, so a re-serialised body with reordered keys counts as different.
Fix: Use a fresh key for a different request. A key is bound to the body it first carried.
idempotency_key_too_long400The Idempotency-Key header exceeds the maximum length.
Fix: Use a shorter key — a UUID is a good default.
name_conflict409An agent with this name already exists in the workspace.
Fix: Pick a different name, or PATCH the existing agent instead of creating a second one. GET /api/v1/agents lists what is there.
Outbound call compliance
do_not_call403The number is on your do-not-call list — the person asked not to be called (said so on a call, or texted STOP), or a teammate added it.
Fix: Do not retry. Remove the number in Dashboard → Settings → Outbound compliance only if the person has given consent again.
outbound_suspended403Outbound calling is suspended for this account.
Fix: Contact support. Calls resume when the suspension is lifted.
outside_calling_hours422It is outside 8am–9pm (or your narrower calling window) at the recipient's location, or the location cannot be worked out from the number and no fallback window is set.
Fix: Retry inside the recipient's calling hours, or set a calling window under Dashboard → Settings → Outbound compliance.
frequency_cap429This number has already had the maximum number of outbound calls in the last 24 hours (3 by default).
Fix: Retry after the Retry-After header (one hour). The cap is a rolling 24 hours per number, configurable under Outbound compliance.
compliance_check_failed503The compliance checks could not be read, so the call was not placed — checks fail closed.
Fix: Retry shortly with the same Idempotency-Key.
Server errors
insert_failed500The row could not be written. On POST /api/v1/agents this also covers a failure to seed the agent's version 1, in which case the agent itself has been removed again — the response message says so.
Fix: Retry. If the agent was rolled back, the retry starts clean; GET /api/v1/agents first if you need to be sure.
server_error500An unexpected error occurred on Velor's infrastructure.
Fix: Retry with exponential backoff. Check status.velorplatforms.com. If this persists, contact support@velorplatforms.com with the request ID from the response.
internal500Alias for server_error — used in some code paths.
Fix: Same as server_error — retry and contact support if it persists.
internal_error500A second spelling of the same thing, returned by the calls and conversation-notes endpoints.
Fix: Same as server_error. Treat internal, internal_error and server_error as one case.
config_error500The workspace is missing configuration the endpoint needs — voice credentials, for example.
Fix: Finish setup in the dashboard for the feature you are calling, then retry.
invalid_agent422The agent payload failed validation — a missing name, or a field the schema does not accept.
Fix: Check the request against the agent schema in the API reference and resend.
invalid_definition422The agent version definition is not valid — malformed JSON, or a field outside the schema.
Fix: Validate the definition locally before publishing. The response body names the failing path.
invalid_skill422The skill payload failed validation.
Fix: Check the request against the skill schema in the API reference and resend.
invalid_principle422The answer policy failed validation — for example a regex the checker refuses to run, a check_kind other than regex or prompt_judge, or a missing blocking flag.
Fix: Read the issues array in the response, which names each failing field, and resend.
key_conflict409An answer policy with that key already exists in this workspace.
Fix: Choose a different key, or PATCH the existing policy instead.
bindings_not_supported422The agent version definition lists skill or knowledge-source bindings. Bindings are not applied to an agent yet, so Velor refuses them rather than store a list that changes nothing.
Fix: Remove the skill and knowledge-source id lists from the definition (empty lists are accepted).
eval_gate_failed409Publishing was blocked because the version did not pass the required eval run.
Fix: Run the eval dataset against the version and publish once it passes, or clear require_eval for the environment.
tests_regressed422Publishing to production was blocked because one or more cases in your saved test set passed on the version live now and fail on this one. The response names the datasets.
Fix: Fix the cases, or send acknowledge_test_set: true to publish anyway. Both the check and the override are recorded in the audit log.
tests_failing422Publishing to production was blocked because the latest run of your saved test set on this version has failing or errored cases.
Fix: Fix the failing cases and re-run, or send acknowledge_test_set: true to publish anyway (recorded in the audit log).
tests_not_run422Publishing to production was blocked because your workspace has saved test cases and none of them has a usable run on this version.
Fix: Run the test set against the version from Evals, or send acknowledge_test_set: true to publish anyway (recorded in the audit log). A workspace with no saved cases is never held up.
tests_check_failed503The saved test set could not be read, so the publish was refused rather than allowed past an unchecked gate. This cannot be overridden.
Fix: Retry. If it persists, check status before retrying in a loop.
invalid_acknowledge_test_set422acknowledge_test_set was sent with something other than true or false.
Fix: Send a JSON boolean.
limit_exceeded422The organization is at its limit for this resource: named agents, policies (principles) or webhook endpoints. POST /api/v1/agents, POST /api/v1/principles, and POST and PATCH on /api/v1/webhooks all answer 422 with this code; for webhooks that is when the workspace already has 25 endpoints.
Fix: Delete unused agents or webhook endpoints, or contact us to raise the limit.
query_failed500A database read failed while assembling the response.
Fix: Retry. A failed read is reported rather than returned as an empty list, so this is never silent data loss.
export_failed500The conversation export could not be assembled.
Fix: Retry with a narrower since/until window. Contact support if it keeps failing.
dial_failed502The upstream telephony provider refused or dropped the call.
Fix: Retry. If it is repeatable for one number, check that the number is reachable and correctly formatted.
no_voice_number400An outbound call was requested and the workspace has no voice number provisioned.
Fix: Add a number in Dashboard → Voice before calling this endpoint.
recording_disabled400An outbound call asked for record: true, but call recording is off for the calling number. The call's spoken disclosure follows that setting, so a recording it would not announce is refused.
Fix: Turn on Record calls for the number in Dashboard → Voice, or omit record.
export_too_large422The export matched more data than a single response can carry.
Fix: Narrow the since/until window and page through the range.
snapshot_too_large413The requested snapshot exceeds the response size limit.
Fix: Request a narrower snapshot.
too_many_facts422The memory write carried more facts than the endpoint accepts in one request.
Fix: Split the facts across several requests.
ingest_failed500A knowledge source was accepted but the ingestion pipeline failed before any passage was indexed.
Fix: Retry once. If it persists the source is reaching us and failing to parse — send us the URL or file.
tag_create_failed500The tag did not exist and could not be created.
Fix: Retry with backoff. The request is safe to repeat: creating a tag that now exists is not an error.
tag_assign_failed500The tag exists but could not be attached to the conversation.
Fix: Retry with backoff. Assigning a tag already present is not an error, so a repeat is safe.
update_failed500An answer policy could not be updated.
Fix: Retry. The same patch applied twice leaves the same row.
delete_failed500An answer policy could not be deleted.
Fix: Retry. Deleting twice leaves the policy absent either way.
publish_failed500The version could not be promoted to the environment. Nothing changed in the environment.
Fix: Retry. Publishing the same version twice leaves the same version live.
Idempotency
These endpoints accept an optional Idempotency-Key header. Retry one with the same key and Velor returns the original response without creating a duplicate resource. Keys expire after 24 hours.
POST /api/v1/agentsPOST /api/v1/agents/:id/versionsPOST /api/v1/callsPOST /api/v1/calls/batchPOST /api/v1/contactsPOST /api/v1/evals/runsPOST /api/v1/evals/simulationsPOST /api/v1/conversationsPOST /api/v1/conversations/:id/messagesPOST /api/v1/conversations/:id/notesPOST /api/v1/knowledgePOST /api/v1/principlesPOST /api/v1/skillsPOST /api/v1/webhooksPOST /api/v1/webhooks/:id/rotate-secretPOST /api/v1/webhooks/deliveries/:id/retry
This is especially useful for call creation — if the network drops after you send the request but before you receive the response, retrying with the same idempotency key is safe.
Other writes do not read the header. Most are safe to retry anyway because the operation is idempotent in itself — every PATCH and DELETE, and the two creates that upsert (POST /api/v1/memory, POST /api/v1/conversations/:id/tags). There is no exception left: a retried create replays the original response. For POST /api/v1/webhooks that includes the signing secret, which Velor keeps only in encrypted form and decrypts back into the replay.
Still stuck?
Email support@velorplatforms.com with the request ID from the response — the request_id field of an error body, or the X-Request-Id header on any response — and we'll investigate.