Skip to content

Troubleshoot authentication and credits

Start by preserving the status code, structured error, request time, and relevant run or purchase ID. Remove bearer tokens and private research content before sharing diagnostic material. For a lost response, inspect durable state before deciding to submit more paid work.

401 Unauthorized: Confirm that the request includes Authorization: Bearer followed by the complete credential. Check that an account key is active and unexpired. Browser sessions may need a fresh sign-in. Copy endpoint details from Connection; do not send a key to an unverified origin.

403 Forbidden: Verify scopes. Starting/cancelling research requires write; reading results and balance requires read; billing history/checkout requires billing; key management requires keys. A browser request can also fail an origin check. Do not work around account identity by adding guessed workspace headers.

402 Payment Required: An authenticated start can lack available credit because the balance is low, held, or negative after reported overages. Review Account and Activity. A completed Checkout browser redirect does not itself prove wallet funding. Check for the verified purchase before creating another checkout.

An unauthenticated start can instead receive a guest payment challenge. That is a distinct flow for clients supporting the offered payment transport. Account-key integrations should verify their credential rather than treating every 402 as an instruction to pay again.

Status Next step
400 Inspect the error and validate prompt/target limits, search support, and JSON shape.
404 Verify the encoded run ID and authenticated account.
409 Recover the exact original payload for the idempotency key; use a new key only for an intended new operation.
410 A checkout/payment quote expired; deliberately create a new quote with a new key.
413 / 415 Keep the body within 1 MiB and send one JSON object with Content-Type: application/json.
429 Respect Retry-After; preserve the original request identity.
503 A dependency or capacity is unavailable; inspect run state before retrying creation.

A timeout does not establish that a start failed. Read the existing run or replay identical input with the same key. An observation marked unknown_outcome is retained rather than automatically retried as another paid call. Use raw evidence and cost controls to decide whether replacement work is appropriate.