Skip to navigation

Errors

One error shape, a closed list of codes

Every error body has the same shape:

{ "error": "<code>", "reason": "<sentence>", "request_id": "req_..." }

reason says what to do next, so show it to the user when your agent stops. Quote request_id, also sent as x-request-id, and the x-agent-armor-version header when you contact support. Limit refusals add a limit object; see Limits and usage. The key-claim endpoints follow OAuth instead; see Authentication.

ErrorMeaning, and what to do
400 invalid_requestThe body isn’t valid JSON in the documented shape. Fix it.
401 unauthorizedThe key is missing, mistyped or revoked. Get a new key.
403 forbiddenThis key may not make this request, such as internal_only without an internal key.
403 scope_requiredThe key lacks the scope this endpoint needs, which WWW-Authenticate names.
404 not_foundThe scan doesn’t exist, or it belongs to another account.
422 rejectedFlash won’t scan this URL, for example a private network address. Don’t treat it as safe.
422 objective_unavailableAn objective is deprecated. Send what reason names instead.
429 rate_limitedA limit is used up, or the engine is busy. Retry after Retry-After.
503 disabledScanning is paused. Retry with backoff, after at least a minute.
503 unavailableFlash is starting, stopping or failed. Retry with backoff, after at least a minute.

Only 429 and 503 are worth retrying.

A new code is an additive change, and an existing code is never renamed, so handle a code you don’t know by its HTTP status.

Requests Flash refuses before scanning

A refused request scans nothing and counts against no limit. Flash checks the body’s shape first (400), then whether each objective is still served (422). An objective your plan doesn’t include isn’t an error: the scan runs and answers it refused.

  • An objective that isn’t in the list: 400 invalid_request

    objectives must list between 1 and 6 of safety, domain_ownership, entity_reputation, entity_representation, entity_extraction, entity_legitimacy.

  • The removed objective or entities field: 400 invalid_request

    objective and entities were removed. Send objectives instead, a list such as [“safety”, “entity_representation”]; entity_representation finds the page’s entities from the URL alone.

  • A deprecated objective: 422 objective_unavailable

    The entity_legitimacy objective is deprecated. Send domain_ownership or entity_reputation instead, or [“safety”] for the base safety verdict alone.