Skip to content

    AEO API errors

    Read the HTTP status and the code in the response body. Keep the request_id if you need help with a request.

    API error codes and recovery steps
    CodeHTTP statusWhat to do
    invalid_request400Check the request syntax and selector values before sending it again.
    unauthenticated401Send a valid API key in the Authorization header.
    quota_exceeded402Check the remaining credits and the cost of the requested work.
    forbidden403Check the required scopes, role, plan and billing access for this request.
    not_found404Check the resource ID and whether the key can access its brand.
    invalid_request405Use an HTTP method listed for this route. Check the Allow response header.
    conflict409Read the current state. If you retried a write, confirm the key and request body match the first attempt.
    precondition_failed412Read the current revision and review the change before sending a new request.
    validation_error422Read field_errors when present and correct the listed fields.
    rate_limited429Wait for the delay in Retry-After before sending the request again.
    internal_error500Use retryable to decide whether to retry. Keep the request_id if you need help.
    source_pending503Wait for the delay in Retry-After before sending the request again.
    feature_not_offered503Check the documented requirements for this feature. The current request cannot be retried.

    Fix a request field

    When the response includes field_errors, each entry identifies a field and tells you what to change in its message.

    When it happensStatus and codeFieldWhat to do
    Brand update is missing a revision400 invalid_requestheader.if-matchRead the brand and send its current ETag in the If-Match header.
    Prompt archive request contains extra fields400 invalid_requestbodySend only action: "archive" and prompt_id.
    A brand already has the requested name409 conflictnameChoose a different name, or use the existing brand.
    A citation check URL is missing from this brand's citation list404 not_foundurls.0 for the first URL, for exampleReplace each URL identified in field_errors with one from GET /v2/analytics/citations for that brand.

    Check retryable before repeating a request. See how to retry a write.