# API docs

> Reference for the AgentReady audit API.

Source: https://agent-ready.baudypositive.com/docs/api

OpenAPI description: https://agent-ready.baudypositive.com/openapi.json

## Endpoints
- `POST /api/audit`: Body {"url": "https://example.com"}. Returns 202 with {id, status, ownerToken}. Limited per IP and per target site. Callers without the website's bot check are held to a stricter limit.
- `GET /api/audit/{id}`: The audit object. While running it has status "running" and a progress step.
- `GET /api/audit/{id}/events`: Server-sent events: {step, status, message}. Closes when the audit completes or fails.
- `POST /api/audit/{id}/recheck`: Body {"checkIds": ["llms_txt"]}. Re-runs only those checks and returns a new revision. Send the owner token in the x-owner-token header (the website also accepts the signed-in session of the user who started the audit).
- `GET /api/audit/{id}/export?format=json|md|pdf`: Download the report. pdf opens the print view.
- `GET /api/audit/{id}/prompt?priority=all|P0`: The fix prompt as plain text.
- `DELETE /api/audit/{id}`: Delete the audit. Send the owner token in the x-owner-token header (or use the signed-in session of the user who started it).
