On this page

Limits and recovery

Keep the request body, idempotency key and evaluation ID together. They let you recover a request without starting a second evaluation.

Safe retries

GET requests are safe to retry. If a read fails temporarily, wait before trying again. The report's saved status tells you whether the evaluation is running, complete or failed.

POST /v1/evaluations requires an Idempotency-Key. The key is scoped to your account. While the saved evaluation exists and is unexpired, resending the same key and request body returns that evaluation without starting another model run. This includes failed evaluations. Reusing the key with different input returns HTTP 409 idempotency_key_reused.

If a POST times out or the connection closes, its outcome is unknown. Retry with the original key and exact body. If you have an ID, read it first. Do not generate a new key just because the first response was lost. If you lost the key, list recent evaluations and reconcile them before sending again. Titles are not unique.

Deleting an evaluation removes its retained idempotency record. Expiry also ends that record. After deletion or expiry, reusing the old key can start a new evaluation and add usage. Keep keys unique across intentional runs.

DELETE removes a report and its stored source content. A successful delete returns 204. Repeating it returns 404; that means the report is already absent or unavailable to this account. Deleting a running evaluation stops later model sends where possible, but cannot undo a request already sent to the provider. It does not refund or erase recorded usage.

Email link requests send messages and consume send limits, so do not repeat them blindly after a timeout. Email confirmation consumes a one-use link. Check /auth/session after an uncertain confirmation before asking for another link. Session refresh rotates credentials; avoid parallel refresh requests. If a refresh outcome is lost, check the session and sign in again if necessary. Signing out is safe to repeat; after an uncertain global sign-out, a 401 session response confirms that this session is no longer usable.

API-key creation is not idempotent. After an uncertain create, check the key list and revoke any key whose secret you did not receive before creating another. Revoking the same owned key again returns 204. For an uncertain device approval, read the request status before deciding again. A device-token exchange is single-use: if its successful response is lost, check the API-key list for the issued CLI key, revoke it, and start a new device request. Repeating the exchange cannot recover the secret.

Usage and credits

Evaluation admission currently uses an account-specific input-token allowance. If no allowance is assigned, the API returns 403. When recorded usage has reached the allowance, it returns 402. This is not a prepaid credit purchase flow.

The allowance is checked before admitting an evaluation. It is not a per-request token cap or an exact remaining balance: an admitted evaluation can cross it, and concurrent work may already be in progress. Each evaluation asks the model three times and records input-token usage for provider sends whose usage is returned, including sends in an evaluation that later fails. The report's input_tokens describes a successful evaluation. Deletion keeps usage records.

Retention and limits

Reports expire after 90 days by default. Use the returned expires_at as the authority for each report. Expired reports are unavailable immediately even before cleanup removes them. Save a private copy before expiry if you need it longer.

List requests default to 25 results and accept at most 100 by default. offset starts at 0 and next_offset is null at the end. Results are newest first, with ID as a tie-breaker. New reports or deletions can shift offsets between pages; this is not a snapshot.

There is no fixed article word limit. The API conservatively checks the serialized article, questions and framing against the model's context window. HTTP 413 means the request does not fit. Shorten the article, or evaluate coherent sections separately with enough context in the title and description.

The model request uses a 60-second HTTP timeout by default. A lost worker can leave a report running until cleanup marks it failed with evaluation_interrupted. Cleanup runs hourly by default and considers runs older than ten provider timeout periods interrupted. Do not start repeated evaluations while waiting for reconciliation.

Errors and next steps

Most errors have detail.code. Validation errors add detail.fields with field locations and types. Failed evaluations returned by POST instead use the evaluation object with status: "failed" and error_code; its report is null. Read saved evaluations with GET to check the same fields even on HTTP 200.

HTTPCode or stateNext step
400email_link_invalidRequest a fresh sign-in link.
401authentication_requiredFor a browser session, refresh or sign in again. For an API key, check that the header contains the full rlk_… key. Replace an expired or revoked key from the API keys page.
402evaluation_credit_exhaustedContact support about your allowance. A new key does not restore access.
403evaluation_not_allowedAsk support for evaluation access.
403bad_originSend a browser write from the readlint.com origin.
404evaluation_not_foundCheck the account and ID. The report may have expired or been deleted.
409idempotency_key_reusedRecover the original body, or use a new key only for a deliberate new evaluation.
409email_confirmation_requiredEnter the email address that received the link.
413evaluation_context_exceededShorten the source before sending a new request.
415json_requiredUse Content-Type: application/json.
429rate_limitedWait for the rate-limit window; see API keys and devices.
422invalid_request, invalid_page_sizeFix the fields or pagination bounds before retrying.
500evaluation_internal_error, auth_internal_errorReconcile the saved evaluation or session. Contact support if it persists.
502Failed evaluation with a provider errorRead error_code. Replaying the same key returns that failure; a new run adds usage.
503evaluation_disabled, database_unavailable, sign-in unavailableWait and retry reads. For writes, preserve the same key and body.

Device-token polling uses an OAuth error field instead of detail.code. See API keys and devices for pending, slow-down and terminal errors.

Provider error codes include openrouter_transport_error, openrouter_http_error, openrouter_invalid_response. Do not assume a provider failure means nothing was sent or no usage was recorded. For HTTP 429 from a gateway, respect Retry-After if present and keep the same evaluation key when retrying.

Client errors

The CLI, SDKs and MCP server translate HTTP and local failures into these codes. CLI failures exit 1 with empty stdout. In JSON mode, read the final stderr line's error object. SDKs raise ReadlintError; MCP returns isError: true with error.code and error.message.

CodeMeaning and next step
invalid_inputThe command or tool arguments are invalid. Check help, file encoding, UUID and options before retrying. Python SDK local validation can raise ValueError; TypeScript can throw TypeError.
validation_errorThe API rejected request fields with HTTP 422. Correct the fields before retrying.
network_errorNo reliable response arrived; status is null. Retry reads later. For a submission, reuse the original key and identical article, title and description.
api_errorAn HTTP failure without a recognized API code. Check its status and wait before retrying a temporary read failure. Keep the original submission key and input when reconciling a write.
evaluation_failedA stored evaluation failed and will not be retried automatically. Read evaluation_id (TypeScript: evaluationId). A deliberate new attempt needs a new key and can add usage.
invalid_responseThe service returned an unexpected success body. Update the client or contact support; preserve the submission key and input.
unsupported_platformSaved device login needs macOS or Linux file permissions. Use READLINT_API_KEY on Windows.
authentication_requiredRun CLI login again or replace an expired or revoked API key.
rate_limitedWait for the rate-limit window. Honor Retry-After when provided.

Clients retry reads and keyed submissions at most twice after network failures or HTTP 429, 502, 503 and 504. They wait 1 then 2 seconds, honoring Retry-After seconds or dates. A requested wait over 60 seconds stops the call. Authentication, validation and stored evaluation failures are not retried. Deletes and device-token exchanges are not automatically retried. Use the reconciliation rules above after an uncertain write.

Current interfaces

The website supports article submission, saved reports, report reading and deletion, plus sign-in, session management, API keys and device approval. The same evaluation operations are available through the API. Use the CLI, Python SDK, or TypeScript SDK to call the hosted API with your account key. Evaluate an article links installation and first-success examples. The MCP guide covers agent setup.

Next: Overview