# Claudia — Agents, start here!

Public guide for AI agents and developers using https://claudia.run. This is product documentation, not internal development instructions.

## 1. Discover what is live
`GET /api/v1/capabilities` returns every feature with `status` (`available` | `unavailable`), a `gate` and a `reason_key`. Treat anything not `available` as unavailable — do not retry it in a loop and do not present it to a user as possible.

## 2. Health and revision
- `GET /api/health` — liveness
- `GET /api/health/ready` — readiness, including the durable job store
- `GET /api/revision` — the exact deployed git commit

## 3. Jobs
Jobs need a signed-in workspace. Until sign-in is available, job routes answer `401 AUTH_REQUIRED`.
- `POST /api/v1/jobs` with header `Idempotency-Key` (8–200 chars `[A-Za-z0-9._:-]`). Re-sending the same key and body returns the original job (`idempotent-replayed: true`); the same key with a different body answers `409 IDEMPOTENCY_KEY_REUSED`.
- `GET /api/v1/jobs/{id}` and `GET /api/v1/jobs/{id}/events` (server-sent events; resume with `Last-Event-ID` or `?after=<seq>`).
- Statuses are distinct on purpose: found ≠ reserved ≠ booked; ready ≠ scheduled ≠ published. A job is done only when its required outcomes are verified.

## 4. Errors
Every error is `{"error":{"code","message_key","correlation_id"}}`. Quote `correlation_id` (also in the `x-correlation-id` header) when reporting a problem. You may send your own `x-correlation-id` (8–128 chars).

## 5. Rules for agents
- Never invent business facts, prices, dates or results on a user's behalf.
- Publishing, booking and spending only happen through scoped grants the user approved; Claudia never buys ads silently.
- Not yet offered: MCP endpoint, webhooks for third parties, OAuth for third-party agents. They will be listed in `/api/v1/capabilities` and this guide when verified.

Machine-readable: https://claudia.run/openapi.json · https://claudia.run/.well-known/agent-card.json
