Errors
Every API error has the same shape, a stable type and a message you can show.
{"error": {"type": "invalid_api_key", "message": "That API key doesn't exist or was revoked.",
"docs": "https://veqen-app.com/docs/errors#invalid-api-key"}}
missing-api-key
401. No Authorization: Bearer ... header. Create a key under Settings › API keys.
invalid-api-key
401. The key is malformed, doesn't exist, was revoked or has expired; the message says which. Rotate or create a key under Settings › API keys.
insufficient-scope
403. An ingest key was used on an endpoint that needs a full-access key.
forbidden
403. A full-access key acts as an admin, and an admin can't do this (for example change an owner's role), or your plan doesn't include it (for example the audit log on Free). The message says which.
forbidden-address
403. The key is limited to some IP addresses or ranges, and this request came from another. See API keys.
org-suspended
403. The organization is suspended, so calls aren't recorded. Contact support.
plan-required
402. The feature isn't part of your plan, for example production volumes for veqen diff on Free.
invalid-request
422. The body or a parameter is invalid. The message names the field. For /v1/events, individual bad events are listed in rejected instead and the rest are stored.
payload-too-large
413. Over 5 MB, or over 25 MB once gzip is inflated. Send smaller batches.
unsupported-media-type
415. OTLP protobuf was sent to /v1/otlp/v1/traces. Set OTEL_EXPORTER_OTLP_PROTOCOL=http/json.
rate-limited
429. Too many requests: your organization's limit, the key's own rate cap, or (for /v1/simulate/share) links shared this hour. Wait for Retry-After seconds. The SDKs keep the events and retry: Python with backoff, up to four attempts per batch; JavaScript on its next send, two seconds later.
not-found
404. For /v1/prices, the model isn't in the price book. Elsewhere, the id doesn't exist or belongs to another organization.
unavailable
503. For /v1/ask, the AI analyst isn't enabled for your organization, or the model didn't answer. Try again shortly.