Errors
Every error body has the same shape:
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.
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_requestobjectives must list between 1 and 6 of safety, domain_ownership, entity_reputation, entity_representation, entity_extraction, entity_legitimacy.
-
The removed
objectiveorentitiesfield:400 invalid_requestobjective 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_unavailableThe entity_legitimacy objective is deprecated. Send domain_ownership or entity_reputation instead, or [“safety”] for the base safety verdict alone.