> The canonical Bilinc Cloud error codes: authentication, entitlement, payment, validation, not-found, conflict, rate limit, and runtime availability.

Canonical page: https://bilinc.space/docs/errors

- [Docs](https://bilinc.space/docs)
- Operate
- Errors

# Make runtime failures obvious to humans and agents.

Every Bilinc Cloud error tells an operator whether the problem is auth, entitlement, quota, input, concurrency, or runtime availability.

Search the docs

### All docs pages

Start

- [Overview](https://bilinc.space/docs)
- [Quickstart](https://bilinc.space/docs/quickstart)
- [Cloud quickstart](https://bilinc.space/docs/cloud-quickstart)
- [Quicktest help](https://bilinc.space/docs/quicktest-troubleshooting)
- [v2 migration](https://bilinc.space/docs/migration-v2)

Use Bilinc

- [Python SDK](https://bilinc.space/docs/python-sdk)
- [CLI](https://bilinc.space/docs/cli)
- [Cloud API](https://bilinc.space/docs/api-reference)
- [MCP integration](https://bilinc.space/docs/mcp)
- [Remote MCP for Claude](https://bilinc.space/docs/remote-mcp)
- [MCP tools](https://bilinc.space/docs/mcp-tools)
- [Wiki export](https://bilinc.space/docs/wiki)
- [Dream pass](https://bilinc.space/docs/dream)
- [Agent recipes](https://bilinc.space/docs/agent-recipes)

Agent integrations

- [Codex](https://bilinc.space/docs/codex)
- [Claude Code](https://bilinc.space/docs/claude-code)
- [Cursor](https://bilinc.space/docs/cursor)
- [MCP clients](https://bilinc.space/docs/mcp-clients)

Concepts

- [Memory model](https://bilinc.space/docs/memory-model)
- [Commit and recall](https://bilinc.space/docs/commit-recall)
- [Entitlements](https://bilinc.space/docs/entitlements)
- [Recall profiles](https://bilinc.space/docs/recall-profiles)
- [Evidence-aware recall](https://bilinc.space/docs/evidence-aware-recall)
- [Snapshots and rollback](https://bilinc.space/docs/snapshots-rollback)
- [Audit trail](https://bilinc.space/docs/audit-trail)

Operate

- [Security](https://bilinc.space/docs/security)
- [Production checklist](https://bilinc.space/docs/production-checklist)
- [Operations](https://bilinc.space/docs/operations)
- [Errors](https://bilinc.space/docs/errors)
- [Rate limits](https://bilinc.space/docs/rate-limits)
- [Troubleshooting](https://bilinc.space/docs/troubleshooting)

Reference

- [Environment variables](https://bilinc.space/docs/environment-variables)
- [CLI reference](https://bilinc.space/docs/cli-reference)

Also

- [Pricing](https://bilinc.space/pricing)
- [Changelog](https://bilinc.space/changelog)
- [Connect over MCP](https://bilinc.space/mcp)

## Do not treat every failure as a bad API key.

### 401 missing_api_key

No bearer token was sent.

**Next:** Send Authorization: Bearer <key>, or run `bilinc login`.

### 401 invalid_api_key

The key is unknown, revoked, expired, or from another workspace.

**Next:** Create a new key and run `bilinc login` again.

### 402 payment_required

Included credits are exhausted and no Cloud credits remain.

**Next:** Open Account Billing or contact support.

### 403 capability_not_entitled

The plan does not include this operation or this recall profile.

**Next:** Call GET /api/cloud/status to see what this key may do, then upgrade if needed.

### 400 invalid_request

The payload failed validation. details.field names the offending input.

**Next:** Fix the input. Nothing was charged: validation runs before any credit is reserved.

### 404 memory_not_found

No memory with that key exists in this project. revise and forget never create.

**Next:** Use commit to create it, or check the key.

### 404 snapshot_not_found

No snapshot with that id exists in this project, or it is unreadable.

**Next:** List snapshots and use a current id.

### 409 version_conflict

expectedVersion is stale: the memory changed since you read it.

**Next:** Re-read the memory, re-apply your change, and retry.

### 409 idempotency_conflict

This idempotency key was already used with a different payload.

**Next:** Use a fresh key for a genuinely different request.

### 409 state_changed_since_preview

The project changed after the rollback preview was taken.

**Next:** Take a new preview, review it, then execute.

### 410 rollback_confirmation_expired

The rollback confirmation token aged out before it was used.

**Next:** Take a new preview and execute promptly.

### 429 rate_limited

The workspace is exceeding current throughput limits.

**Next:** Back off, batch work, or request Scale review.

### 503 cloud_runtime_unavailable

The hosted runtime is temporarily unavailable.

**Next:** Retryable. Check /status and retry with backoff.

### 503 mutation_outcome_unknown

The runtime may have applied the write, but the control plane could not persist a replayable finalization receipt.

**Next:** Do not retry with a new key. Send the request ID to support for reconciliation.

## Errors carry a stable code, a request id, and a retry hint.

JSON

```
{
  "error": "version_conflict",
  "message": "The memory changed since the expected version was read.",
  "requestId": "req_5f0c...",
  "retryable": false,
  "details": { "field": "expectedVersion" }
}
```

The Python SDK raises a typed exception per code — `BilincAuthError`, `BilincPaymentRequiredError`, `BilincConflictError`, and so on. All of them still subclass `BilincCloudError`, so existing handlers keep working. Since 2.7.3, `BilincBaseUrlError` (a `ValueError`) is raised before any request when the base URL is not safe to send an API key to: not `https://` (plain `http://` is allowed only on this computer), or a key saved by `bilinc login` would go to a different host.

Text

```
workspace: <workspace-id>
api_key_prefix: bil_live_****
request_id: req_5f0c...
status: 401 | 402 | 403 | 404 | 409 | 410 | 429 | 503
endpoint: /api/cloud/memory/commit
timestamp: 2026-07-05T00:00:00Z
reproduction: bilinc quicktest failed after login
```

Send the request id, never the key. Support can join it against server logs.

[Quicktest support](https://bilinc.space/support?topic=quicktest) · [Entitlement support](https://bilinc.space/support?topic=entitlement)

[PreviousOperations](https://bilinc.space/docs/operations)
[NextRate limits](https://bilinc.space/docs/rate-limits)

On this page

- Do not treat every failure as a bad API key.
- Errors carry a stable code, a request id, and a retry hint.
