AEO API reference
Find the method and route you want to call. Open a request variant to see the fields, permissions and possible responses for that variant.
Download the OpenAPI contract (JSON). The same file is also at https://aeoapi.dev/openapi.json.
Browse the reference by feature for examples in cURL, Python and TypeScript.
Make a request
Set AEO_API_BASE_URL to the API origin and AEO_API_KEY to your server-side key. Set the other shell variables in each example for the resources you want to use. Use the complete ID, including its prefix, when the API returns a prefixed ID.
- Send and retry write requests
- Start and read a collection run
- Review a proposed change
- Look up API errors
When you start a collection, audit or citation check, follow data.poll_url to read its status. A managed run start returns 202 Accepted with the polling path /v2/runs/managed:{run_id} in the Location response header. For a managed run, use this header to poll. The response body omits data.poll_url.
For these runs, the start and poll responses return the same prefixed ID in data.id and data.v2_run_id. GET /v2/runs/{run_id} also accepts the UUID without the prefix.
Collection requests and managed estimates accept answer_mode in POST /v2/runs. Use standard for the normal answer or new to request a new answer. The default is standard. To request a new answer, include {"answer_mode":"new"} in the request body. A managed run uses the mode from the estimate you identify by estimate_fingerprint.
Operations
A conditional field is required only when its parent object or schema variant applies.
GET /v2/account
Read account settings, limits, sources, or usage
Read account, limits and source availabilityoverview
Open this request with Python and TypeScript examples
- Query
viewisoverview. Default isoverview.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- account:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
include | query | "overview" | "schedules" | "webhooks" | No | Default overview. Exactly one configuration collection per page; meta.next_cursor pages that collection. Secrets are never returned. |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
view | query | "overview" | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/account" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=overview'Responses
HTTP 200
Read account, limits and source availability result.
| Name | Type | Required | Description |
|---|---|---|---|
ETag | string | No | Webhook configuration revision for PUT /webhooks; initial value "0". |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billing_period_end": "2026-11-06T00:00:00Z",
"billing_period_start": "2026-11-06T00:00:00Z",
"capabilities": [],
"entitlements": [],
"id": "00000000-0000-4000-8000-000000000001",
"limits": {
"brands": 4,
"concurrent_jobs": 1,
"history_months": 1,
"private_prompts": 0,
"requests_per_minute": 1
},
"plan": "starter",
"status": "active",
"tenant_id": "00000000-0000-4000-8000-000000000001"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billing_period_end | string (date-time) | Yes | |
data.billing_period_start | string (date-time) | Yes | |
data.capabilities | array of object | Yes | |
data.capabilities[].available | boolean | Yes | |
data.capabilities[].countries | array of string | Yes | |
data.capabilities[].mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Yes | |
data.capabilities[].platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
data.capabilities[].reason | string | null | Yes | |
data.capabilities[].rights_status | "approved" | "pending" | "blocked" | Yes | |
data.entitlements | array of string | null | Yes | |
data.id | string (uuid) | Yes | |
data.limits | object | Yes | |
data.limits.brands | integer | Yes | |
data.limits.concurrent_jobs | integer | Yes | |
data.limits.history_months | integer | Yes | |
data.limits.locations | integer | No | |
data.limits.private_prompts | integer | Yes | |
data.limits.requests_per_minute | integer | Yes | |
data.plan | "starter" | "growth" | Yes | starter is the Analyzer plan ($199 a month, 4 brands) and growth is the Optimizer plan ($399 a month, 10 brands). Analyzer has a 7-day trial with no card required. |
data.schedules | array of object | No | |
data.schedules[].all_locations | boolean | No | |
data.schedules[].allow_country_level | boolean | No | Allow a country-level answer when the source cannot apply the requested location. |
data.schedules[].brand_id | string (uuid) | Conditional | |
data.schedules[].cadence_days | 1 | 3 | 7 | 14 | 30 | Conditional | |
data.schedules[].enabled | boolean | Conditional | |
data.schedules[].id | string (uuid) | Conditional | |
data.schedules[].location_ids | array of string (uuid) | No | |
data.schedules[].market | object | Conditional | |
data.schedules[].market.city | string | null | null | No | |
data.schedules[].market.country | string | Conditional | |
data.schedules[].market.language | string | Conditional | |
data.schedules[].market.latitude | number | null | No | |
data.schedules[].market.location_id | string (uuid) | null | No | |
data.schedules[].market.longitude | number | null | No | |
data.schedules[].market.postal_code | string | null | No | |
data.schedules[].market.region | string | null | null | No | |
data.schedules[].max_units_per_run | integer | Conditional | |
data.schedules[].next_run_at | string (date-time) | null | No | |
data.schedules[].prompt_ids | array of string (uuid) | Conditional | |
data.schedules[].source | object | Conditional | |
data.schedules[].source.device | "desktop" | "mobile" | "unknown" | No | |
data.schedules[].source.mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Conditional | |
data.schedules[].source.platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Conditional | |
data.schedules[].source.provider | string | No | Optional source label for the selected platform and mode. An unsupported combination is rejected before the job starts. |
data.status | "active" | "trial" | "suspended" | Yes | |
data.tenant_id | string (uuid) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Read account, limits and source availabilitylimits
Open this request with Python and TypeScript examples
- Query
viewislimits. Default isoverview.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- account:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
include | query | "overview" | "schedules" | "webhooks" | No | Default overview. Exactly one configuration collection per page; meta.next_cursor pages that collection. Secrets are never returned. |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
view | query | "limits" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/account" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=limits'Responses
HTTP 200
Read account, limits and source availability result.
| Name | Type | Required | Description |
|---|---|---|---|
ETag | string | No | Webhook configuration revision for PUT /webhooks; initial value "0". |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"limits": {
"brands": 4,
"concurrent_jobs": 1,
"history_months": 1,
"private_prompts": 0,
"requests_per_minute": 1
}
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.limits | object | Yes | |
data.limits.brands | integer | Yes | |
data.limits.concurrent_jobs | integer | Yes | |
data.limits.history_months | integer | Yes | |
data.limits.locations | integer | No | |
data.limits.private_prompts | integer | Yes | |
data.limits.requests_per_minute | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Read account, limits and source availabilitysources
Open this request with Python and TypeScript examples
- Query
viewissources. Default isoverview.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- account:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
include | query | "overview" | "schedules" | "webhooks" | No | Default overview. Exactly one configuration collection per page; meta.next_cursor pages that collection. Secrets are never returned. |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
view | query | "sources" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/account" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=sources'Responses
HTTP 200
Read account, limits and source availability result.
| Name | Type | Required | Description |
|---|---|---|---|
ETag | string | No | Webhook configuration revision for PUT /webhooks; initial value "0". |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"capabilities": []
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.capabilities | array of object | Yes | |
data.capabilities[].available | boolean | Yes | |
data.capabilities[].countries | array of string | Yes | |
data.capabilities[].mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Yes | |
data.capabilities[].platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
data.capabilities[].reason | string | null | Yes | |
data.capabilities[].rights_status | "approved" | "pending" | "blocked" | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Read metering and remaining quotasusage
Open this request with Python and TypeScript examples
- Query
viewisusage. Default isoverview.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- usage:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
period_start | query | string (date-time) | No | period_start |
period_end | query | string (date-time) | No | period_end |
view | query | "usage" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/account" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=usage'Responses
HTTP 200
Read metering and remaining quotas result.
| Name | Type | Required | Description |
|---|---|---|---|
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"breakdown": [],
"consumed_units": 0,
"free_read_count": 0,
"included_units": 0,
"last_reconciled_at": null,
"period_end": "2026-11-06T00:00:00Z",
"period_start": "2026-11-06T00:00:00Z",
"remaining_units": 0,
"reserved_units": 0
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.breakdown | array of object | Yes | |
data.breakdown[].operation | string | null | Yes | |
data.breakdown[].units | integer | Yes | |
data.consumed_units | integer | Yes | |
data.free_read_count | integer | Yes | |
data.included_units | integer | Yes | |
data.last_reconciled_at | string (date-time) | null | Yes | |
data.locations | object | No | |
data.locations.limit | integer | Conditional | |
data.locations.used | integer | Conditional | |
data.period_end | string (date-time) | Yes | |
data.period_start | string (date-time) | Yes | |
data.remaining_units | integer | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Get Citation Fieldsfields_citation
Open this request with Python and TypeScript examples
- Query
viewisfields. - Query
resource_kindiscitation.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
view | query | "fields" | Yes | |
resource_kind | query | "citation" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/account" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=fields' \
--data-urlencode 'resource_kind=citation'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.built_in_fields | array of string | Yes | Names of the standard fields for this record type. |
data.fields | array of object | Yes | Custom field definitions for this brand. |
data.fields[].id | string (uuid) | Yes | |
data.fields[].label | string | Yes | |
data.fields[].type | "text" | "number" | "date" | "single_select" | "multi_select" | Yes | |
data.fields[].options | array of object | Yes | |
data.fields[].options[].archived | boolean | Yes | |
data.fields[].options[].id | string | Yes | |
data.fields[].options[].label | string | Yes | |
data.fields[].archived | boolean | Yes | |
data.fields[].revision | integer | Yes | Current revision. Use it when you edit this record. |
data.values | array of object | Yes | Saved field values for records you can read. |
data.values[].page_id | string | Yes | |
data.values[].field_id | string (uuid) | Yes | |
data.values[].value | string | number | array of string | null | Yes | |
data.values[].revision | integer | Yes | Current revision. Use it when you edit this record. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Fieldsfields_prompt
Open this request with Python and TypeScript examples
- Query
viewisfields. - Query
resource_kindisprompt.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
view | query | "fields" | Yes | |
resource_kind | query | "prompt" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/account" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=fields' \
--data-urlencode 'resource_kind=prompt'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.built_in_fields | array of string | Yes | Names of the standard fields for this record type. |
data.fields | array of object | Yes | Custom field definitions for this brand. |
data.fields[].id | string (uuid) | Yes | |
data.fields[].label | string | Yes | |
data.fields[].type | "text" | "number" | "date" | "single_select" | "multi_select" | Yes | |
data.fields[].options | array of object | Yes | |
data.fields[].options[].archived | boolean | Yes | |
data.fields[].options[].id | string | Yes | |
data.fields[].options[].label | string | Yes | |
data.fields[].archived | boolean | Yes | |
data.fields[].revision | integer | Yes | Current revision. Use it when you edit this record. |
data.values | array of object | Yes | Saved field values for records you can read. |
data.values[].prompt_id | string (uuid) | Yes | |
data.values[].field_id | string (uuid) | Yes | |
data.values[].value | string | number | array of string | null | Yes | |
data.values[].revision | integer | Yes | Current revision. Use it when you edit this record. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Topic Fieldsfields_topic
Open this request with Python and TypeScript examples
- Query
viewisfields. - Query
resource_kindistopic.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
view | query | "fields" | Yes | |
resource_kind | query | "topic" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/account" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=fields' \
--data-urlencode 'resource_kind=topic'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.built_in_fields | array of string | Yes | Names of the standard fields for this record type. |
data.fields | array of object | Yes | Custom field definitions for this brand. |
data.fields[].id | string (uuid) | Yes | |
data.fields[].label | string | Yes | |
data.fields[].type | "text" | "number" | "date" | "single_select" | "multi_select" | Yes | |
data.fields[].options | array of object | Yes | |
data.fields[].options[].archived | boolean | Yes | |
data.fields[].options[].id | string | Yes | |
data.fields[].options[].label | string | Yes | |
data.fields[].archived | boolean | Yes | |
data.fields[].revision | integer | Yes | Current revision. Use it when you edit this record. |
data.values | array of object | Yes | Saved field values for records you can read. |
data.values[].topic_id | string (uuid) | Yes | |
data.values[].field_id | string (uuid) | Yes | |
data.values[].value | string | number | array of string | null | Yes | |
data.values[].revision | integer | Yes | Current revision. Use it when you edit this record. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
PATCH /v2/account
Update account tracking fields
Update Citation Fieldscitation_fields
Open this request with Python and TypeScript examples
- Body
sectioniscitation_fields.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"command": {
"action": "field_create",
"label": "Segment",
"type": "text"
},
"mutation_id": "00000000-0000-4000-8000-000000000001",
"section": "citation_fields"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
command | object | object | object | Yes | |
command.action | "field_create" | "field_update" | "values_update" | Yes | |
command.label | string | Conditional | |
command.options | array of object | No | |
command.options[].archived | boolean | No | |
command.options[].id | string | Conditional | |
command.options[].label | string | Conditional | |
command.type | "text" | "number" | "date" | "single_select" | "multi_select" | Conditional | |
command.archived | boolean | null | No | |
command.expected_revision | integer | Conditional | |
command.id | string (uuid) | Conditional | |
command.label | string | null | No | |
command.options | array of object | null | No | |
command.options.archived | boolean | No | |
command.options.id | string | Conditional | |
command.options.label | string | Conditional | |
command.patches | array of object | Conditional | |
command.patches[].expected_revision | integer | Conditional | |
command.patches[].field_id | string (uuid) | Conditional | |
command.patches[].record_id | string | Conditional | |
command.patches[].value | string | integer | number | array of string | null | Conditional | |
mutation_id | string (uuid) | Yes | |
section | "citation_fields" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/account" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Example generated from the response schema.
{
"data": {
"field_id": "00000000-0000-4000-8000-000000000001",
"revision": 1
},
"meta": {
"request_id": "00000000-0000-4000-8000-000000000001",
"as_of": "2026-01-01T00:00:00Z",
"schema_version": "1.0",
"warnings": [],
"rights_filtered": false,
"next_cursor": null,
"collected_at": null,
"next_refresh_at": null,
"stale": false
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | object | Yes | The requested result. See the fields below for its contents. |
data.field_id | string (uuid) | Conditional | ID of the field you created or edited. |
data.revision | integer | Conditional | Current revision. Use it when you edit this record. |
data.updated_values | integer | Conditional | Number of values saved by values_update. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Update Fieldsprompt_fields
Open this request with Python and TypeScript examples
- Body
sectionisprompt_fields.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"command": {
"action": "field_create",
"label": "Segment",
"type": "text"
},
"mutation_id": "00000000-0000-4000-8000-000000000001",
"section": "prompt_fields"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
command | object | object | object | Yes | |
command.action | "field_create" | "field_update" | "values_update" | Yes | |
command.label | string | Conditional | |
command.options | array of object | No | |
command.options[].archived | boolean | No | |
command.options[].id | string | Conditional | |
command.options[].label | string | Conditional | |
command.type | "text" | "number" | "date" | "single_select" | "multi_select" | Conditional | |
command.archived | boolean | null | No | |
command.expected_revision | integer | Conditional | |
command.id | string (uuid) | Conditional | |
command.label | string | null | No | |
command.options | array of object | null | No | |
command.options.archived | boolean | No | |
command.options.id | string | Conditional | |
command.options.label | string | Conditional | |
command.patches | array of object | Conditional | |
command.patches[].expected_revision | integer | Conditional | |
command.patches[].field_id | string (uuid) | Conditional | |
command.patches[].record_id | string | Conditional | |
command.patches[].value | string | integer | number | array of string | null | Conditional | |
mutation_id | string (uuid) | Yes | |
section | "prompt_fields" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/account" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | object | Yes | The requested result. See the fields below for its contents. |
data.field_id | string (uuid) | Conditional | ID of the field you created or edited. |
data.revision | integer | Conditional | Current revision. Use it when you edit this record. |
data.updated_values | integer | Conditional | Number of values saved by values_update. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Update Topic Fieldstopic_fields
Open this request with Python and TypeScript examples
- Body
sectionistopic_fields.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"command": {
"action": "field_create",
"label": "Segment",
"type": "text"
},
"mutation_id": "00000000-0000-4000-8000-000000000001",
"section": "topic_fields"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
command | object | object | object | Yes | |
command.action | "field_create" | "field_update" | "values_update" | Yes | |
command.label | string | Conditional | |
command.options | array of object | No | |
command.options[].archived | boolean | No | |
command.options[].id | string | Conditional | |
command.options[].label | string | Conditional | |
command.type | "text" | "number" | "date" | "single_select" | "multi_select" | Conditional | |
command.archived | boolean | null | No | |
command.expected_revision | integer | Conditional | |
command.id | string (uuid) | Conditional | |
command.label | string | null | No | |
command.options | array of object | null | No | |
command.options.archived | boolean | No | |
command.options.id | string | Conditional | |
command.options.label | string | Conditional | |
command.patches | array of object | Conditional | |
command.patches[].expected_revision | integer | Conditional | |
command.patches[].field_id | string (uuid) | Conditional | |
command.patches[].record_id | string | Conditional | |
command.patches[].value | string | integer | number | array of string | null | Conditional | |
mutation_id | string (uuid) | Yes | |
section | "topic_fields" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/account" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | object | Yes | The requested result. See the fields below for its contents. |
data.field_id | string (uuid) | Conditional | ID of the field you created or edited. |
data.revision | integer | Conditional | Current revision. Use it when you edit this record. |
data.updated_values | integer | Conditional | Number of values saved by values_update. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
GET /v2/analytics/{dataset}
Read an analytics dataset
Read prompt metrics and answer evidenceprompts
Open this request with Python and TypeScript examples
- Path
datasetisprompts.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "prompts" | Yes | |
brand_id | query | string (uuid) | Yes | brand_id |
start_at | query | string (date-time) | Yes | Inclusive UTC timestamp. |
end_at | query | string (date-time) | Yes | Exclusive UTC timestamp; after start_at. Maximum window per plan/history and 366 days per synchronous query. |
category_id | query | string | null | No | category_id |
platform | query | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | No | platform |
mode | query | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | No | mode |
country | query | string | No | country |
language | query | string | No | language |
location_id | query | string (uuid) | No | location_id |
cohort_version | query | string | null | No | cohort_version |
metric_version | query | string | null | No | metric_version |
group_by | query | array of "date" | "source" | "country" | "language" | "location" | "currency" | "city" | "region" | No | group_by |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
prompt_id | query | string (uuid) | No | prompt_id |
observation_id | query | string (uuid) | No | observation_id |
include_evidence | query | boolean | No | include_evidence |
provider | query | string | null | No | Filter by source label. Available labels include official_api, collector_a, collector_b, collector_c, collector_d, collector_e, collector_f, collector_g, collector_h. |
city | query | string | null | No | city |
device | query | "desktop" | "mobile" | "unknown" | No | device |
search_activity | query | "observed" | "not_observed" | "unknown" | No | Filter actual evidenced web-search state independently of requested mode. Omit for all states; not_observed requires reliable no-search evidence. |
view | query | "summary" | "history" | "compare" | No | history returns dated samples; compare requires both previous-window parameters and prompt_id. |
prompt_version | query | integer | No | Pin version; comparisons never silently merge versions. |
compare_start_at | query | string (date-time) | No | Inclusive previous-window start; required with view=compare. |
compare_end_at | query | string (date-time) | No | Exclusive previous-window end; required with view=compare. |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode "start_at=$START_AT" \
--data-urlencode "end_at=$END_AT"Responses
HTTP 200
Read prompt metrics and answer evidence result.
| Name | Type | Required | Description |
|---|---|---|---|
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": [],
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].brand_id | string (uuid) | Yes | |
data[].city | string | null | null | Yes | |
data[].competitor_gap | number | null | Yes | |
data[].country | string | Yes | |
data[].coverage | object | Yes | |
data[].coverage.effective_prompts | number | No | |
data[].coverage.expected_prompts | integer | Yes | |
data[].coverage.failed_attempts | integer | Yes | |
data[].coverage.low_sample | boolean | Yes | |
data[].coverage.missing_weight | number | Yes | |
data[].coverage.observed_weight | number | Yes | |
data[].coverage.ranked_answers | integer | No | |
data[].coverage.repeat_count | integer | No | |
data[].coverage.status | "ok" | "partial" | "insufficient_data" | Yes | |
data[].coverage.unique_prompts | integer | Yes | |
data[].coverage.valid_answers | integer | Yes | |
data[].device | "desktop" | "mobile" | "unknown" | Yes | |
data[].evidence | array of object | Yes | |
data[].evidence[].answer_text | string | null | No | |
data[].evidence[].answer_text_truncated | boolean | No | |
data[].evidence[].applied_location | object | null | No | |
data[].evidence[].applied_location.city | string | null | No | |
data[].evidence[].applied_location.country | string | null | No | |
data[].evidence[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data[].evidence[].applied_location.latitude | number | null | No | |
data[].evidence[].applied_location.longitude | number | null | No | |
data[].evidence[].applied_location.postal_code | string | null | No | |
data[].evidence[].applied_location.region | string | null | No | |
data[].evidence[].brand_cited | boolean | null | No | |
data[].evidence[].brand_mentioned | boolean | null | No | |
data[].evidence[].brand_present | boolean | null | No | |
data[].evidence[].citations | array of object | Yes | |
data[].evidence[].citations[].anchor | string | null | No | |
data[].evidence[].citations[].domain | string | null | Yes | |
data[].evidence[].citations[].evidence | string | null | No | |
data[].evidence[].citations[].observation_id | string (uuid) | Yes | |
data[].evidence[].citations[].order | integer | Yes | |
data[].evidence[].citations[].title | string | null | null | No | |
data[].evidence[].citations[].url | string (uri) | Yes | |
data[].evidence[].collected_at | string (date-time) | Yes | |
data[].evidence[].effective_country | string | null | No | |
data[].evidence[].grounding_observed | boolean | null | Yes | |
data[].evidence[].grounding_requested | boolean | null | Yes | |
data[].evidence[].location_id | string (uuid) | No | |
data[].evidence[].market | object | Yes | |
data[].evidence[].market.city | string | null | null | No | |
data[].evidence[].market.country | string | Yes | |
data[].evidence[].market.language | string | Yes | |
data[].evidence[].market.latitude | number | null | No | |
data[].evidence[].market.location_id | string (uuid) | No | |
data[].evidence[].market.longitude | number | null | No | |
data[].evidence[].market.postal_code | string | null | No | |
data[].evidence[].market.region | string | null | null | No | |
data[].evidence[].mentions | array of object | Yes | |
data[].evidence[].mentions[].confidence | number | Yes | |
data[].evidence[].mentions[].end | integer | Yes | |
data[].evidence[].mentions[].entity_id | string (uuid) | null | No | |
data[].evidence[].mentions[].name | string | null | Yes | |
data[].evidence[].mentions[].rank | integer | null | Yes | |
data[].evidence[].mentions[].role | "mention" | "recommendation" | Yes | |
data[].evidence[].mentions[].start | integer | Yes | |
data[].evidence[].mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | "unverified" | Yes | |
data[].evidence[].observation_id | string (uuid) | Yes | |
data[].evidence[].observed_country | string | null | No | |
data[].evidence[].platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
data[].evidence[].prompt_id | string (uuid) | Yes | |
data[].evidence[].prompt_version | integer | Yes | |
data[].evidence[].provider | string | null | Yes | |
data[].evidence[].quality_flags | array of string | Yes | |
data[].evidence[].rank | integer | null | No | |
data[].evidence[].raw_download_url | string (uri) | null | No | |
data[].evidence[].recommended | boolean | null | No | |
data[].evidence[].recommended_competitors | array of object | No | |
data[].evidence[].recommended_competitors[].name | string | Conditional | |
data[].evidence[].recommended_competitors[].rank | integer | null | Conditional | |
data[].evidence[].response_text | string | null | Yes | Display text while evidence rights allow. |
data[].evidence[].rights_class | "commercial_approved" | Yes | |
data[].evidence[].search_trace | object | Yes | If search_observed is null, the result is unknown and includes a reason. If it is false, the evidence shows no search. A provider_complete result means the source reported all the search activity it can show. That activity may omit sites considered during the search. |
data[].evidence[].search_trace.disclosure | "none" | "partial" | "provider_complete" | Yes | |
data[].evidence[].search_trace.events | array of object | Yes | |
data[].evidence[].search_trace.events[].domain | string | null | No | |
data[].evidence[].search_trace.events[].evidence_reference | string | Yes | |
data[].evidence[].search_trace.events[].kind | "query" | "search_result" | "visited_page" | "citation" | Yes | |
data[].evidence[].search_trace.events[].occurred_at | string (date-time) | null | No | |
data[].evidence[].search_trace.events[].ordinal | integer | null | No | |
data[].evidence[].search_trace.events[].origin | "provider_report" | "native_tool_trace" | "authorized_ui_observation" | "citation_extraction" | Yes | |
data[].evidence[].search_trace.events[].query | string | null | No | |
data[].evidence[].search_trace.events[].url | string (uri) | null | No | |
data[].evidence[].search_trace.search_observed | boolean | null | Yes | |
data[].evidence[].search_trace.unknown_reason | string | null | Yes | |
data[].evidence[].sentiment | Value | No | |
data[].evidence[].text_truncated | boolean | No | |
data[].language | string | Yes | |
data[].mention_rate | number | null | Yes | |
data[].mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Yes | |
data[].platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
data[].prompt_id | string (uuid) | Yes | |
data[].provider | string | null | Yes | |
data[].search_activity | "observed" | "not_observed" | "unknown" | "all" | No | Grouping across observed states is explicit as all; unknown never relabeled not_observed. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].added_citations | array of string (uri) | Yes | |
data[].answer_changed | boolean | null | Yes | |
data[].brand_id | string (uuid) | Yes | |
data[].brand_present | boolean | null | Yes | |
data[].cohort_key | string | Yes | |
data[].collected_at | string (date-time) | null | Yes | |
data[].evidence | object | null | Yes | |
data[].evidence.answer_text | string | null | No | |
data[].evidence.answer_text_truncated | boolean | No | |
data[].evidence.applied_location | object | null | No | |
data[].evidence.applied_location.city | string | null | No | |
data[].evidence.applied_location.country | string | null | No | |
data[].evidence.applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data[].evidence.applied_location.latitude | number | null | No | |
data[].evidence.applied_location.longitude | number | null | No | |
data[].evidence.applied_location.postal_code | string | null | No | |
data[].evidence.applied_location.region | string | null | No | |
data[].evidence.brand_cited | boolean | null | No | |
data[].evidence.brand_mentioned | boolean | null | No | |
data[].evidence.brand_present | boolean | null | No | |
data[].evidence.citations | array of object | Conditional | |
data[].evidence.citations[].anchor | string | null | No | |
data[].evidence.citations[].domain | string | null | Conditional | |
data[].evidence.citations[].evidence | string | null | No | |
data[].evidence.citations[].observation_id | string (uuid) | Conditional | |
data[].evidence.citations[].order | integer | Conditional | |
data[].evidence.citations[].title | string | null | null | No | |
data[].evidence.citations[].url | string (uri) | Conditional | |
data[].evidence.collected_at | string (date-time) | Conditional | |
data[].evidence.effective_country | string | null | No | |
data[].evidence.grounding_observed | boolean | null | Conditional | |
data[].evidence.grounding_requested | boolean | null | Conditional | |
data[].evidence.location_id | string (uuid) | No | |
data[].evidence.market | object | Conditional | |
data[].evidence.market.city | string | null | null | No | |
data[].evidence.market.country | string | Conditional | |
data[].evidence.market.language | string | Conditional | |
data[].evidence.market.latitude | number | null | No | |
data[].evidence.market.location_id | string (uuid) | No | |
data[].evidence.market.longitude | number | null | No | |
data[].evidence.market.postal_code | string | null | No | |
data[].evidence.market.region | string | null | null | No | |
data[].evidence.mentions | array of object | Conditional | |
data[].evidence.mentions[].confidence | number | Conditional | |
data[].evidence.mentions[].end | integer | Conditional | |
data[].evidence.mentions[].entity_id | string (uuid) | null | No | |
data[].evidence.mentions[].name | string | null | Conditional | |
data[].evidence.mentions[].rank | integer | null | Conditional | |
data[].evidence.mentions[].role | "mention" | "recommendation" | Conditional | |
data[].evidence.mentions[].start | integer | Conditional | |
data[].evidence.mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | "unverified" | Conditional | |
data[].evidence.observation_id | string (uuid) | Conditional | |
data[].evidence.observed_country | string | null | No | |
data[].evidence.platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Conditional | |
data[].evidence.prompt_id | string (uuid) | Conditional | |
data[].evidence.prompt_version | integer | Conditional | |
data[].evidence.provider | string | null | Conditional | |
data[].evidence.quality_flags | array of string | Conditional | |
data[].evidence.rank | integer | null | No | |
data[].evidence.raw_download_url | string (uri) | null | No | |
data[].evidence.recommended | boolean | null | No | |
data[].evidence.recommended_competitors | array of object | No | |
data[].evidence.recommended_competitors[].name | string | Conditional | |
data[].evidence.recommended_competitors[].rank | integer | null | Conditional | |
data[].evidence.response_text | string | null | Conditional | Display text while evidence rights allow. |
data[].evidence.rights_class | "commercial_approved" | Conditional | |
data[].evidence.search_trace | object | Conditional | If search_observed is null, the result is unknown and includes a reason. If it is false, the evidence shows no search. A provider_complete result means the source reported all the search activity it can show. That activity may omit sites considered during the search. |
data[].evidence.search_trace.disclosure | "none" | "partial" | "provider_complete" | Conditional | |
data[].evidence.search_trace.events | array of object | Conditional | |
data[].evidence.search_trace.events[].domain | string | null | No | |
data[].evidence.search_trace.events[].evidence_reference | string | Conditional | |
data[].evidence.search_trace.events[].kind | "query" | "search_result" | "visited_page" | "citation" | Conditional | |
data[].evidence.search_trace.events[].occurred_at | string (date-time) | null | No | |
data[].evidence.search_trace.events[].ordinal | integer | null | No | |
data[].evidence.search_trace.events[].origin | "provider_report" | "native_tool_trace" | "authorized_ui_observation" | "citation_extraction" | Conditional | |
data[].evidence.search_trace.events[].query | string | null | No | |
data[].evidence.search_trace.events[].url | string (uri) | null | No | |
data[].evidence.search_trace.search_observed | boolean | null | Conditional | |
data[].evidence.search_trace.unknown_reason | string | null | Conditional | |
data[].evidence.sentiment | Value | No | |
data[].evidence.text_truncated | boolean | No | |
data[].location_id | string (uuid) | No | |
data[].market | object | Yes | |
data[].market.city | string | null | null | No | |
data[].market.country | string | Yes | |
data[].market.language | string | Yes | |
data[].market.latitude | number | null | No | |
data[].market.location_id | string (uuid) | No | |
data[].market.longitude | number | null | No | |
data[].market.postal_code | string | null | No | |
data[].market.region | string | null | null | No | |
data[].mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Yes | |
data[].platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
data[].prompt_id | string (uuid) | Yes | |
data[].prompt_version | integer | Yes | |
data[].provider | string | null | Yes | |
data[].rank | integer | null | No | |
data[].recommended | boolean | null | Yes | |
data[].recommended_competitors | array of object | No | |
data[].recommended_competitors[].name | string | Conditional | |
data[].recommended_competitors[].rank | integer | null | Conditional | |
data[].removed_citations | array of string (uri) | Yes | |
data[].sample_status | "valid" | "failed" | "missed" | "blocked" | "invalid" | Yes | |
data[].scheduled_at | string (date-time) | Yes | |
data[].search_observed | boolean | null | Yes | |
data[].sentiment | Value | No | |
data[].warnings | array of string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].brand_id | string (uuid) | Yes | |
data[].cohort_key | string | Yes | |
data[].comparable | boolean | Yes | |
data[].current | object | Yes | |
data[].current.end_at | string (date-time) | Yes | |
data[].current.expected_samples | integer | Yes | |
data[].current.mention_rate | number | null | Yes | |
data[].current.present_samples | integer | Yes | |
data[].current.start_at | string (date-time) | Yes | |
data[].current.valid_samples | integer | Yes | |
data[].market | object | Yes | |
data[].market.city | string | null | null | No | |
data[].market.country | string | Yes | |
data[].market.language | string | Yes | |
data[].market.region | string | null | null | No | |
data[].mention_delta_pp | number | null | Yes | |
data[].mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Yes | |
data[].platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
data[].previous | object | Yes | |
data[].previous.end_at | string (date-time) | Yes | |
data[].previous.expected_samples | integer | Yes | |
data[].previous.mention_rate | number | null | Yes | |
data[].previous.present_samples | integer | Yes | |
data[].previous.start_at | string (date-time) | Yes | |
data[].previous.valid_samples | integer | Yes | |
data[].prompt_id | string (uuid) | Yes | |
data[].prompt_version | integer | Yes | |
data[].provider | string | null | Yes | |
data[].warnings | array of string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Read comparable visibility metricsvisibility
Open this request with Python and TypeScript examples
- Path
datasetisvisibility.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "visibility" | Yes | |
brand_id | query | string (uuid) | Yes | brand_id |
start_at | query | string (date-time) | Yes | Inclusive UTC timestamp. |
end_at | query | string (date-time) | Yes | Exclusive UTC timestamp; after start_at. Maximum window per plan/history and 366 days per synchronous query. |
category_id | query | string | null | No | category_id |
platform | query | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | No | platform |
mode | query | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | No | mode |
country | query | string | No | country |
language | query | string | No | language |
location_id | query | string (uuid) | No | location_id |
cohort_version | query | string | null | No | cohort_version |
metric_version | query | string | null | No | metric_version |
group_by | query | array of "date" | "source" | "country" | "language" | "location" | "currency" | "city" | "region" | No | group_by |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
provider | query | string | null | No | Filter by source label. Available labels include official_api, collector_a, collector_b, collector_c, collector_d, collector_e, collector_f, collector_g, collector_h. |
city | query | string | null | No | city |
device | query | "desktop" | "mobile" | "unknown" | No | device |
search_activity | query | "observed" | "not_observed" | "unknown" | No | Filter actual evidenced web-search state independently of requested mode. Omit for all states; not_observed requires reliable no-search evidence. |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/visibility" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode "start_at=$START_AT" \
--data-urlencode "end_at=$END_AT"Responses
HTTP 200
Read comparable visibility metrics result.
| Name | Type | Required | Description |
|---|---|---|---|
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": [
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"city": null,
"comparison_set_version": "competitors-r1",
"confidence_interval": null,
"country": "US",
"coverage": {
"expected_prompts": 30,
"failed_attempts": 0,
"low_sample": false,
"missing_weight": 0,
"observed_weight": 1,
"status": "ok",
"unique_prompts": 30,
"valid_answers": 30
},
"device": "desktop",
"language": "en",
"mean_rank": 2,
"mention_rate": 0.6,
"mode": "api_normal",
"owned_citation_rate": 0.3,
"platform": "chatgpt",
"provider": "collector_a",
"recommendation_rate": 0.4,
"sentiment_score": 0.5,
"share_of_voice": 0.25,
"visibility_score": 60
}
],
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].brand_id | string (uuid) | Yes | |
data[].city | string | null | null | Yes | |
data[].comparison_set_version | string | null | Yes | |
data[].confidence_interval | object | null | Yes | |
data[].confidence_interval.clusters | integer | Conditional | |
data[].confidence_interval.level | 0.95 | Conditional | |
data[].confidence_interval.lower | number | Conditional | |
data[].confidence_interval.method | "prompt_cluster_bootstrap" | Conditional | |
data[].confidence_interval.upper | number | Conditional | |
data[].country | string | Yes | |
data[].coverage | object | Yes | |
data[].coverage.effective_prompts | number | No | |
data[].coverage.expected_prompts | integer | Yes | |
data[].coverage.failed_attempts | integer | Yes | |
data[].coverage.low_sample | boolean | Yes | |
data[].coverage.missing_weight | number | Yes | |
data[].coverage.observed_weight | number | Yes | |
data[].coverage.ranked_answers | integer | No | |
data[].coverage.repeat_count | integer | No | |
data[].coverage.status | "ok" | "partial" | "insufficient_data" | Yes | |
data[].coverage.unique_prompts | integer | Yes | |
data[].coverage.valid_answers | integer | Yes | |
data[].date | string (date) | null | No | |
data[].device | "desktop" | "mobile" | "unknown" | Yes | |
data[].language | string | Yes | |
data[].location_id | string (uuid) | null | No | |
data[].market | object | No | |
data[].market.city | string | null | null | No | |
data[].market.country | string | Conditional | |
data[].market.language | string | Conditional | |
data[].market.latitude | number | null | No | |
data[].market.location_id | string (uuid) | No | |
data[].market.longitude | number | null | No | |
data[].market.postal_code | string | null | No | |
data[].market.region | string | null | null | No | |
data[].mean_rank | number | null | Yes | |
data[].median_rank | number | null | No | |
data[].mention_rate | number | null | Yes | |
data[].mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Yes | |
data[].owned_citation_rate | number | null | Yes | |
data[].platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
data[].prompt_id | string (uuid) | null | No | |
data[].provider | string | null | Yes | |
data[].recommendation_rate | number | null | Yes | |
data[].recommendation_share_of_voice | number | null | No | |
data[].search_activity | "observed" | "not_observed" | "unknown" | "all" | No | Grouping across observed states is explicit as all; unknown never relabeled not_observed. |
data[].sentiment_distribution | object | No | |
data[].sentiment_distribution.negative | number | null | Conditional | |
data[].sentiment_distribution.neutral | number | null | Conditional | |
data[].sentiment_distribution.positive | number | null | Conditional | |
data[].sentiment_distribution.uncertain | number | null | Conditional | |
data[].sentiment_score | number | null | Yes | |
data[].share_of_voice | number | null | Yes | |
data[].visibility_score | number | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Read comparable visibility metricslocations
Open this request with Python and TypeScript examples
- Path
datasetislocations.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "locations" | Yes | |
brand_id | query | string (uuid) | Yes | brand_id |
start_at | query | string (date-time) | No | Supply both dates or omit both to start with the current UTC month. Later pages keep the first page's dates. |
end_at | query | string (date-time) | No | Supply both dates or omit both to start with the current UTC month. Later pages keep the first page's dates. |
category_id | query | string | null | No | category_id |
platform | query | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | No | platform |
mode | query | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | No | mode |
country | query | string | No | country |
language | query | string | No | language |
location_id | query | string (uuid) | No | location_id |
cohort_version | query | string | null | No | cohort_version |
metric_version | query | string | null | No | metric_version |
group_by | query | array of "date" | "source" | "country" | "language" | "location" | "currency" | "city" | "region" | No | group_by |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
provider | query | string | null | No | Filter by source label. Available labels include official_api, collector_a, collector_b, collector_c, collector_d, collector_e, collector_f, collector_g, collector_h. |
city | query | string | null | No | city |
device | query | "desktop" | "mobile" | "unknown" | No | device |
search_activity | query | "observed" | "not_observed" | "unknown" | No | Filter actual evidenced web-search state independently of requested mode. Omit for all states; not_observed requires reliable no-search evidence. |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/locations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Read comparable visibility metrics result.
| Name | Type | Required | Description |
|---|---|---|---|
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].average_rank | number | null | Yes | |
data[].citation_coverage | number | null | Yes | |
data[].city | string | null | No | |
data[].country | string | null | No | |
data[].group | "brand" | "location" | "city" | "region" | Yes | |
data[].location_id | string (uuid) | No | |
data[].mention_rate | number | null | Yes | |
data[].mention_rate_change | number | null | Yes | |
data[].recommendation_rate | number | null | Yes | |
data[].region | string | null | No | |
data[].sentiment | object | Yes | |
data[].sentiment.[key] | integer | No | Value for each key. |
data[].top_competitor | string | null | Yes | |
data[].valid_answers | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Read engine scoresradar
Open this request with Python and TypeScript examples
- Path
datasetisradar.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "radar" | Yes | |
brand_id | query | string (uuid) | Yes | |
start_at | query | string (date-time) | Yes | |
end_at | query | string (date-time) | Yes | |
engine | query | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | null | No | |
platform | query | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | null | No | |
mode | query | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | null | No | |
country | query | string | null | No | |
language | query | string | null | No | |
city | query | string | null | No | |
category_id | query | string | null | No | |
location_id | query | string (uuid) | null | No | |
group_by | query | "location" | "city" | "region" | null | No | |
prompt_id | query | string (uuid) | null | No | |
prompt_version | query | integer | null | No | |
limit | query | integer | No | |
cursor | query | string | null | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/radar" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode "start_at=$START_AT" \
--data-urlencode "end_at=$END_AT"Responses
HTTP 200
Analytics results.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].citation_coverage | object | Yes | |
data[].citation_coverage.citation_eligible_answers | integer | Yes | |
data[].citation_coverage.citation_excluded_answers | integer | Yes | |
data[].citation_coverage.cited_answers | integer | Yes | |
data[].citation_coverage.score | number | null | Yes | |
data[].cohort_key | string | Yes | |
data[].engine | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
data[].gap_answers | integer | Yes | |
data[].mention_rate | object | Yes | |
data[].mention_rate.mentioned_answers | integer | Yes | |
data[].mention_rate.score | number | null | Yes | |
data[].mention_rate.valid_answers | integer | Yes | |
data[].rank_strength | object | Yes | |
data[].rank_strength.mean_rank | number | null | Yes | |
data[].rank_strength.ranked_answers | integer | Yes | |
data[].rank_strength.score | number | null | Yes | |
data[].relevance | object | Yes | |
data[].relevance.mention_weight | number | null | Yes | |
data[].relevance.observed_weight | number | Yes | |
data[].relevance.score | number | null | Yes | |
data[].relevance.unique_prompts | integer | Yes | |
data[].relevance.valid_answers | integer | Yes | |
data[].sentiment | object | Yes | |
data[].sentiment.negative_answers | integer | Yes | |
data[].sentiment.neutral_answers | integer | Yes | |
data[].sentiment.positive_answers | integer | Yes | |
data[].sentiment.score | number | null | Yes | |
data[].sentiment.sentiment_weight | integer | Yes | |
data[].sentiment.uncertain_answers | integer | Yes | |
data[].sentiment.weighted_sentiment | number | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read answer keywordskeywords
Open this request with Python and TypeScript examples
- Path
datasetiskeywords.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "keywords" | Yes | |
brand_id | query | string (uuid) | Yes | |
start_at | query | string (date-time) | Yes | |
end_at | query | string (date-time) | Yes | |
engine | query | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | null | No | |
platform | query | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | null | No | |
mode | query | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | null | No | |
country | query | string | null | No | |
language | query | string | null | No | |
city | query | string | null | No | |
category_id | query | string | null | No | |
location_id | query | string (uuid) | null | No | |
group_by | query | "location" | "city" | "region" | null | No | |
prompt_id | query | string (uuid) | null | No | |
prompt_version | query | integer | null | No | |
limit | query | integer | No | |
cursor | query | string | null | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/keywords" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode "start_at=$START_AT" \
--data-urlencode "end_at=$END_AT"Responses
HTTP 200
Analytics results.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | object | Yes | The requested result. See the fields below for its contents. |
data[].answer_share | number | Yes | |
data[].cohort_key | string | Yes | |
data[].eligible_answers | integer | Yes | |
data[].engine | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | null | Yes | |
data[].keyword | string | Yes | |
data[].matching_answers | integer | Yes | |
data[].scope | "engine" | "all_engines" | Yes | |
data[].sources | array of string | Yes | |
data[].highest_share_engine | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read observed or modeled revenue attributionattribution
Open this request with Python and TypeScript examples
- Path
datasetisattribution.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- attribution:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "attribution" | Yes | |
brand_id | query | string (uuid) | Yes | brand_id |
start_at | query | string (date-time) | Yes | Inclusive UTC timestamp. |
end_at | query | string (date-time) | Yes | Exclusive UTC timestamp; after start_at. Maximum window per plan/history and 366 days per synchronous query. |
country | query | string | No | country |
language | query | string | No | language |
location_id | query | string (uuid) | No | location_id |
group_by | query | array of "date" | "source" | "country" | "language" | "location" | "currency" | No | group_by |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
model | query | "same_session" | "last_observed_ai_30d" | "modeled_influence" | "ga4_reported" | No | same_session observed default; explicit 30d needs identity linkage; modeled influence returns separate estimates or insufficient_data; GA4 reported aggregates stay separate. |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/attribution" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode "start_at=$START_AT" \
--data-urlencode "end_at=$END_AT"Responses
HTTP 200
Read observed or modeled revenue attribution result.
| Name | Type | Required | Description |
|---|---|---|---|
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": [],
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | array of Value | Yes | The requested result. See the fields below for its contents. |
data[].attribution_model | "same_session" | "last_observed_ai_30d" | "modeled_influence" | "ga4_reported" | Yes | |
data[].brand_id | string (uuid) | Yes | |
data[].conversions | integer | null | Yes | |
data[].country | string | null | No | Present only when group_by includes country. Null means the consented evidence in this row has unknown country (counted in a meta.warnings coverage note). |
data[].coverage_note | string | Yes | |
data[].currency | string | Yes | |
data[].date | string (date) | No | Present only when group_by includes date. The UTC day of the events booked in this row; ga4_reported rows use the GA4 report date in the property time zone. |
data[].language | string | null | No | Present only when group_by includes language. Lower case; null means unknown. |
data[].location_id | string (uuid) | null | No | Present only when group_by includes location. Null means unknown; ga4_reported rows are always null (GA4 reports no location). |
data[].modeled_metrics | object | null | No | |
data[].modeled_metrics.conversion_lower | number | null | Conditional | |
data[].modeled_metrics.conversion_upper | number | null | Conditional | |
data[].modeled_metrics.coverage_fraction | number | Conditional | |
data[].modeled_metrics.expected_conversions | number | null | Conditional | |
data[].modeled_metrics.expected_revenue_minor | number | null | Conditional | |
data[].modeled_metrics.labeled_conversions | integer | Conditional | |
data[].modeled_metrics.limitations | array of string | Conditional | |
data[].modeled_metrics.method | "calibrated_source_classifier" | Conditional | |
data[].modeled_metrics.missing_inputs | array of string | Conditional | |
data[].modeled_metrics.model_version | string | null | Conditional | |
data[].modeled_metrics.revenue_lower_minor | number | null | Conditional | |
data[].modeled_metrics.revenue_upper_minor | number | null | Conditional | |
data[].modeled_metrics.status | "ready" | "insufficient_data" | Conditional | |
data[].observed | boolean | Yes | |
data[].referrals | integer | null | Yes | |
data[].revenue_minor | integer | null | Yes | |
data[].source | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Get Perceptionbrand_perception
Open this request with Python and TypeScript examples
- Path
datasetisbrand_perception.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "brand_perception" | Yes | |
brand_id | query | string (uuid) | Yes | |
month | query | string | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
topic_id | query | string | null | No | |
prompt_id | query | string (uuid) | null | No | |
location_id | query | string (uuid) | No | |
group_by | query | "location" | "city" | "region" | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/brand_perception" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.month | string | null | Yes | |
data.aggregation | "selected_samples" | Yes | |
data.valid_answers | integer | Yes | |
data.recorded_mention_answers | integer | Yes | |
data.recorded_mentions | integer | Yes | |
data.classified_answers | integer | Yes | |
data.unclassified_mentions | integer | Yes | |
data.sentiment | object | Yes | |
data.sentiment.positive | integer | Yes | |
data.sentiment.neutral | integer | Yes | |
data.sentiment.negative | integer | Yes | |
data.answers_with_displayable_brand_excerpt | integer | Yes | |
data.theme_answer_counts | object | Yes | |
data.theme_answer_counts.[key] | integer | No | Value for each key. |
data.supporting_excerpts | array of object | Yes | |
data.supporting_excerpts[].observation_id | string (uuid) | Yes | |
data.supporting_excerpts[].prompt_id | string (uuid) | Yes | |
data.supporting_excerpts[].engine | string | Yes | |
data.supporting_excerpts[].ai_search | string | Yes | |
data.supporting_excerpts[].sentiment | string | null | Yes | |
data.supporting_excerpts[].themes | array of string | Yes | |
data.supporting_excerpts[].excerpt | string | Yes | |
data.location_breakdown | array of object | No | Results for each location, city or region when you set group_by. |
data.location_breakdown[].location_id | string (uuid) | No | |
data.location_breakdown[].country | string | null | No | |
data.location_breakdown[].region | string | null | No | |
data.location_breakdown[].city | string | null | No | |
data.location_breakdown[].valid_answers | integer | Conditional | |
data.location_breakdown[].recorded_mention_answers | integer | Conditional | |
data.location_breakdown[].recorded_mentions | integer | Conditional | |
data.location_breakdown[].classified_answers | integer | Conditional | |
data.location_breakdown[].unclassified_mentions | integer | Conditional | |
data.location_breakdown[].sentiment | object | Conditional | |
data.location_breakdown[].sentiment.positive | integer | Conditional | |
data.location_breakdown[].sentiment.neutral | integer | Conditional | |
data.location_breakdown[].sentiment.negative | integer | Conditional | |
data.location_breakdown[].answers_with_displayable_brand_excerpt | integer | Conditional | |
data.location_breakdown[].theme_answer_counts | object | Conditional | |
data.location_breakdown[].theme_answer_counts.[key] | integer | No | Value for each key. |
data.location_breakdown[].supporting_excerpts | array of object | Conditional | |
data.location_breakdown[].supporting_excerpts[].observation_id | string (uuid) | Conditional | |
data.location_breakdown[].supporting_excerpts[].prompt_id | string (uuid) | Conditional | |
data.location_breakdown[].supporting_excerpts[].engine | string | Conditional | |
data.location_breakdown[].supporting_excerpts[].ai_search | string | Conditional | |
data.location_breakdown[].supporting_excerpts[].sentiment | string | null | Conditional | |
data.location_breakdown[].supporting_excerpts[].themes | array of string | Conditional | |
data.location_breakdown[].supporting_excerpts[].excerpt | string | Conditional | |
data.ai_searches | object | Yes | The same perception measures for each AI search product. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Analytics Dashboarddashboard
Open this request with Python and TypeScript examples
- Path
datasetisdashboard.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "dashboard" | Yes | |
audience_id | query | string (uuid) | null | No | Current audience assignment. Requires prompts:read. |
product_id | query | string (uuid) | null | No | Current product assignment. Requires prompts:read. |
service_id | query | string (uuid) | null | No | Current service assignment. Requires prompts:read. |
group_id | query | string (uuid) | null | No | Current prompt group assignment. Requires prompts:read. |
stage | query | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | Current prompt buyer stage. Requires prompts:read. |
brand_id | query | string (uuid) | Yes | |
report_id | query | string (uuid) | null | No | |
start_at | query | string (date-time) | null | No | |
end_at | query | string (date-time) | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
provider | query | string | null | No | Filter by source label. Available labels include official_api, collector_a, collector_b, collector_c, collector_d, collector_e, collector_f, collector_g, collector_h. |
prompt_id | query | string (uuid) | null | No | |
prompt_version | query | integer | null | No | |
limit | query | integer | No | |
cursor | query | string | null | No | |
section | query | "timeline" | "channels" | "prompts" | No | |
location_id | query | string (uuid) | No | |
group_by | query | "location" | "city" | "region" | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/dashboard" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.report | object | Yes | |
data.report.analysis_version | string | null | Yes | |
data.report.brand_id | string | Yes | |
data.report.comparison_set_version | string | null | Yes | |
data.report.end_at | string | Yes | |
data.report.generated_at | string | null | Yes | |
data.report.report_id | string | null | Yes | |
data.report.segmentation | object | null | Yes | |
data.report.segmentation.audience_id | string | null | Conditional | |
data.report.segmentation.basis | "current_prompt_metadata" | Conditional | |
data.report.segmentation.group_id | string | null | Conditional | |
data.report.segmentation.product_id | string | null | Conditional | |
data.report.segmentation.service_id | string | null | Conditional | |
data.report.segmentation.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Conditional | |
data.report.start_at | string | Yes | |
data.rows | array of object | Yes | |
data.rows[].dimension | object | Yes | |
data.rows[].dimension.ai_search | string | null | Yes | The AI search product the answer came from, such as google_ai_overviews. |
data.rows[].dimension.comparison_set_version | string | null | Yes | |
data.rows[].dimension.date | string | null | Yes | |
data.rows[].dimension.engine | string | null | Yes | |
data.rows[].dimension.prompt_id | string | null | Yes | |
data.rows[].dimension.prompt_version | integer | null | Yes | |
data.rows[].dimension.provider | string | null | Yes | |
data.rows[].dimension.source_cohort | object | null | Yes | |
data.rows[].dimension.source_cohort.[key] | string | null | No | Value for each key. |
data.rows[].metrics | object | Yes | |
data.rows[].metrics.brand_mention_answers | integer | Yes | |
data.rows[].metrics.brand_visibility_score | number | null | Yes | |
data.rows[].metrics.comparable_answer_count | integer | Yes | |
data.rows[].metrics.competitor_sentiment | array of object | Yes | |
data.rows[].metrics.competitor_sentiment[].basis | "verified_retained_answer_text" | Yes | |
data.rows[].metrics.competitor_sentiment[].classifier_version | string | Yes | |
data.rows[].metrics.competitor_sentiment[].complete_evidence_answers | integer | Yes | |
data.rows[].metrics.competitor_sentiment[].entity_id | string | Yes | |
data.rows[].metrics.competitor_sentiment[].rights_withheld_evidence_answers | integer | Yes | |
data.rows[].metrics.competitor_sentiment[].sentiment | object | Yes | |
data.rows[].metrics.competitor_sentiment[].sentiment.classified_answers | integer | Yes | |
data.rows[].metrics.competitor_sentiment[].sentiment.mean_score | number | null | Yes | |
data.rows[].metrics.competitor_sentiment[].sentiment.mentioned_answers | integer | Yes | |
data.rows[].metrics.competitor_sentiment[].sentiment.negative | integer | Yes | |
data.rows[].metrics.competitor_sentiment[].sentiment.neutral | integer | Yes | |
data.rows[].metrics.competitor_sentiment[].sentiment.positive | integer | Yes | |
data.rows[].metrics.competitor_sentiment[].sentiment.uncertain | integer | Yes | |
data.rows[].metrics.competitor_sentiment[].sentiment.unknown | integer | Yes | |
data.rows[].metrics.competitor_sentiment[].withheld_evidence_answers | integer | Yes | |
data.rows[].metrics.entities | array of object | Yes | |
data.rows[].metrics.entities[].eligible_answers | integer | Yes | |
data.rows[].metrics.entities[].entity_id | string | Yes | |
data.rows[].metrics.entities[].mention_rate | number | null | Yes | |
data.rows[].metrics.entities[].mentioned_answers | integer | Yes | |
data.rows[].metrics.entities[].observed_name | string | null | Yes | |
data.rows[].metrics.entities[].role | "brand" | "competitor" | Yes | |
data.rows[].metrics.entities[].share_of_voice | number | null | Yes | |
data.rows[].metrics.entities[].share_of_voice_mentions | integer | Yes | |
data.rows[].metrics.gaps | object | Yes | |
data.rows[].metrics.gaps.[key] | integer | No | Value for each key. |
data.rows[].metrics.scheduled_samples | integer | Yes | |
data.rows[].metrics.sentiment | object | Yes | |
data.rows[].metrics.sentiment.classified_answers | integer | Yes | |
data.rows[].metrics.sentiment.mean_score | number | null | Yes | |
data.rows[].metrics.sentiment.mentioned_answers | integer | Yes | |
data.rows[].metrics.sentiment.negative | integer | Yes | |
data.rows[].metrics.sentiment.neutral | integer | Yes | |
data.rows[].metrics.sentiment.positive | integer | Yes | |
data.rows[].metrics.sentiment.uncertain | integer | Yes | |
data.rows[].metrics.sentiment.unknown | integer | Yes | |
data.rows[].metrics.share_of_voice_total_mentions | integer | Yes | |
data.rows[].metrics.unattributed_samples | integer | Yes | |
data.rows[].metrics.valid_answers | integer | Yes | |
data.rows[].metrics.visibility_prompt_versions | integer | Yes | |
data.section | "timeline" | "channels" | "prompts" | Yes | |
data.summary | object | Yes | |
data.summary.brand_mention_answers | integer | Yes | |
data.summary.brand_visibility_score | number | null | Yes | |
data.summary.comparable_answer_count | integer | Yes | |
data.summary.competitor_sentiment | array of object | Yes | |
data.summary.competitor_sentiment[].basis | "verified_retained_answer_text" | Yes | |
data.summary.competitor_sentiment[].classifier_version | string | Yes | |
data.summary.competitor_sentiment[].complete_evidence_answers | integer | Yes | |
data.summary.competitor_sentiment[].entity_id | string | Yes | |
data.summary.competitor_sentiment[].rights_withheld_evidence_answers | integer | Yes | |
data.summary.competitor_sentiment[].sentiment | object | Yes | |
data.summary.competitor_sentiment[].sentiment.classified_answers | integer | Yes | |
data.summary.competitor_sentiment[].sentiment.mean_score | number | null | Yes | |
data.summary.competitor_sentiment[].sentiment.mentioned_answers | integer | Yes | |
data.summary.competitor_sentiment[].sentiment.negative | integer | Yes | |
data.summary.competitor_sentiment[].sentiment.neutral | integer | Yes | |
data.summary.competitor_sentiment[].sentiment.positive | integer | Yes | |
data.summary.competitor_sentiment[].sentiment.uncertain | integer | Yes | |
data.summary.competitor_sentiment[].sentiment.unknown | integer | Yes | |
data.summary.competitor_sentiment[].withheld_evidence_answers | integer | Yes | |
data.summary.entities | array of object | Yes | |
data.summary.entities[].eligible_answers | integer | Yes | |
data.summary.entities[].entity_id | string | Yes | |
data.summary.entities[].mention_rate | number | null | Yes | |
data.summary.entities[].mentioned_answers | integer | Yes | |
data.summary.entities[].observed_name | string | null | Yes | |
data.summary.entities[].role | "brand" | "competitor" | Yes | |
data.summary.entities[].share_of_voice | number | null | Yes | |
data.summary.entities[].share_of_voice_mentions | integer | Yes | |
data.summary.gaps | object | Yes | |
data.summary.gaps.[key] | integer | No | Value for each key. |
data.summary.scheduled_samples | integer | Yes | |
data.summary.sentiment | object | Yes | |
data.summary.sentiment.classified_answers | integer | Yes | |
data.summary.sentiment.mean_score | number | null | Yes | |
data.summary.sentiment.mentioned_answers | integer | Yes | |
data.summary.sentiment.negative | integer | Yes | |
data.summary.sentiment.neutral | integer | Yes | |
data.summary.sentiment.positive | integer | Yes | |
data.summary.sentiment.uncertain | integer | Yes | |
data.summary.sentiment.unknown | integer | Yes | |
data.summary.share_of_voice_total_mentions | integer | Yes | |
data.summary.unattributed_samples | integer | Yes | |
data.summary.valid_answers | integer | Yes | |
data.summary.visibility_prompt_versions | integer | Yes | |
data.total_rows | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Impacturl_impact
Open this request with Python and TypeScript examples
- Path
datasetisurl_impact.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- attribution:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "url_impact" | Yes | |
brand_id | query | string (uuid) | Yes | |
url | query | string | null | No | |
start | query | string (date) | null | No | |
end | query | string (date) | null | No | |
after_url | query | string | null | No | |
limit | query | integer | No | |
traffic_limit | query | integer | No | |
traffic_offset | query | integer | No | |
location_id | query | string (uuid) | No | |
group_by | query | "location" | "city" | "region" | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/url_impact" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.from_date | string | Yes | |
data.next_after_url | string | null | Yes | |
data.targets | array of object | Yes | |
data.targets[].action_channel | string | null | Yes | |
data.targets[].citation_series | string | Yes | |
data.targets[].label | string | Yes | |
data.targets[].next_traffic_offset | integer | null | Yes | |
data.targets[].started_on | string | Yes | |
data.targets[].traffic | array of object | Yes | |
data.targets[].traffic[].count | integer | Yes | |
data.targets[].traffic[].day | string | Yes | |
data.targets[].traffic[].kind | "bot_requests" | "referral_sessions" | Yes | |
data.targets[].traffic[].source | string | Yes | |
data.targets[].url | string | Yes | |
data.to_date | string | Yes | |
data.traffic_basis | "customer_reported_daily_totals" | Yes | |
data.unreported_days | "unknown" | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Vitalspage_experience
Open this request with Python and TypeScript examples
- Path
datasetispage_experience.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "page_experience" | Yes | |
brand_id | query | string (uuid) | Yes | |
url | query | string | Yes | |
device | query | "ALL" | "PHONE" | "DESKTOP" | "TABLET" | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/page_experience" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode "url=$URL"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.device | string | Yes | |
data.measurements | array of object | Yes | |
data.measurements[].all_vitals_good | boolean | null | Yes | |
data.measurements[].device | string | Yes | |
data.measurements[].metrics | object | Yes | |
data.measurements[].metrics.[key] | object | No | Value for each key. |
data.measurements[].period_end | string | Yes | |
data.measurements[].period_start | string | Yes | |
data.measurements[].source | "public_field_measurement" | "partner_field_measurement" | Yes | |
data.measurements[].url | string | Yes | |
data.url | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Insightsbing_insights
Open this request with Python and TypeScript examples
- Path
datasetisbing_insights.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "bing_insights" | Yes | |
brand_id | query | string (uuid) | Yes | |
website | query | string | null | No | |
property | query | string | null | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/bing_insights" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.collected_at | string | null | No | |
data.connected_at | string (date-time) | No | |
data.last_refresh_at | string | null | Yes | When the last refresh was attempted. |
data.last_refresh_status | null | "pending" | "in_progress" | "collected" | "partial" | "reconnect_required" | Yes | The latest refresh status. |
data.property | string (uri) | No | |
data.status | "connected" | "reconnect_required" | "disconnected" | "website_changed" | Yes | |
data.website | string (uri) | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Searchsearch_performance
Open this request with Python and TypeScript examples
- Path
datasetissearch_performance.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "search_performance" | Yes | |
brand_id | query | string (uuid) | Yes | |
start | query | string (date) | Yes | |
end | query | string (date) | Yes | |
dimension | query | "date" | "query" | "page" | No | |
website | query | string | null | No | |
property | query | string | null | No | |
engine | query | "bing" | "google" | "split" | No | |
compare_start | query | string (date) | null | No | |
compare_end | query | string (date) | null | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/search_performance" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode "start=$START" \
--data-urlencode "end=$END"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.collected_at | string | null | No | |
data.connected_at | string (date-time) | No | |
data.last_refresh_at | string | null | No | When the last refresh was attempted. |
data.last_refresh_status | null | "pending" | "in_progress" | "collected" | "partial" | "reconnect_required" | No | The latest refresh status. |
data.property | string (uri) | No | |
data.status | "connected" | "reconnect_required" | "disconnected" | "website_changed" | No | |
data.website | string (uri) | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read answer accuracy and trendsanswer_accuracy
Open this request with Python and TypeScript examples
- Path
datasetisanswer_accuracy.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "answer_accuracy" | Yes | |
brand_id | query | string (uuid) | Yes | |
start_at | query | string (date-time) | null | No | |
end_at | query | string (date-time) | null | No | |
platform | query | string | null | No | |
country | query | string | null | No | |
topic_id | query | string (uuid) | null | No | |
persona_id | query | string (uuid) | null | No | |
theme | query | "pricing" | "features" | "availability" | "policy" | "company" | "integrations" | "other" | null | No | |
group_by | query | "platform" | "country" | "topic" | "persona" | "theme" | "location" | "city" | "region" | null | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/answer_accuracy" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Read answer accuracy and trends
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_change | number | null | Yes | |
data.current | object | Yes | |
data.current.accuracy_score | number | null | Yes | |
data.current.answer_count | integer | Yes | |
data.current.answers_with_wrong_claims | integer | Yes | |
data.current.contradicted_count | integer | Yes | |
data.current.end_at | string (date-time) | Yes | |
data.current.insufficient_evidence_count | integer | Yes | |
data.current.not_covered_count | integer | Yes | |
data.current.outdated_count | integer | Yes | |
data.current.start_at | string (date-time) | Yes | |
data.current.supported_count | integer | Yes | |
data.current.wrong_answer_share | number | null | Yes | |
data.groups | array of object | Yes | |
data.groups[].accuracy_score | number | null | Yes | |
data.groups[].answer_count | integer | Yes | |
data.groups[].answers_with_wrong_claims | integer | Yes | |
data.groups[].contradicted_count | integer | Yes | |
data.groups[].dimension | "platform" | "country" | "topic" | "persona" | "theme" | Yes | |
data.groups[].end_at | string (date-time) | Yes | |
data.groups[].insufficient_evidence_count | integer | Yes | |
data.groups[].not_covered_count | integer | Yes | |
data.groups[].outdated_count | integer | Yes | |
data.groups[].start_at | string (date-time) | Yes | |
data.groups[].supported_count | integer | Yes | |
data.groups[].value | string | null | Yes | |
data.groups[].wrong_answer_share | number | null | Yes | |
data.previous | object | Yes | |
data.previous.accuracy_score | number | null | Yes | |
data.previous.answer_count | integer | Yes | |
data.previous.answers_with_wrong_claims | integer | Yes | |
data.previous.contradicted_count | integer | Yes | |
data.previous.end_at | string (date-time) | Yes | |
data.previous.insufficient_evidence_count | integer | Yes | |
data.previous.not_covered_count | integer | Yes | |
data.previous.outdated_count | integer | Yes | |
data.previous.start_at | string (date-time) | Yes | |
data.previous.supported_count | integer | Yes | |
data.previous.wrong_answer_share | number | null | Yes | |
data.summary | string | Yes | |
data.trend | array of object | Yes | |
data.trend[].accuracy_score | number | null | Yes | |
data.trend[].answer_count | integer | Yes | |
data.trend[].answers_with_wrong_claims | integer | Yes | |
data.trend[].contradicted_count | integer | Yes | |
data.trend[].end_at | string (date-time) | Yes | |
data.trend[].insufficient_evidence_count | integer | Yes | |
data.trend[].not_covered_count | integer | Yes | |
data.trend[].outdated_count | integer | Yes | |
data.trend[].start_at | string (date-time) | Yes | |
data.trend[].supported_count | integer | Yes | |
data.trend[].wrong_answer_share | number | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read the most frequent wrong claimswrong_claims
Open this request with Python and TypeScript examples
- Path
datasetiswrong_claims.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "wrong_claims" | Yes | |
brand_id | query | string (uuid) | Yes | |
start_at | query | string (date-time) | null | No | |
end_at | query | string (date-time) | null | No | |
platform | query | string | null | No | |
country | query | string | null | No | |
topic_id | query | string (uuid) | null | No | |
persona_id | query | string (uuid) | null | No | |
theme | query | "pricing" | "features" | "availability" | "policy" | "company" | "integrations" | "other" | null | No | |
limit | query | integer | No | |
cursor | query | integer | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/wrong_claims" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Read the most frequent wrong claims
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.items | array of object | Yes | |
data.items[].claim_id | string (uuid) | Yes | |
data.items[].example_run_id | string | Yes | |
data.items[].matching_fact | object | null | Yes | |
data.items[].matching_fact.content_id | string (uuid) | Conditional | |
data.items[].matching_fact.content_revision | string (uuid) | Conditional | |
data.items[].matching_fact.country | string | null | Conditional | |
data.items[].matching_fact.fact_id | string (uuid) | Conditional | |
data.items[].matching_fact.source_quote | string | Conditional | |
data.items[].matching_fact.source_url | string | Conditional | |
data.items[].matching_fact.statement | string | Conditional | |
data.items[].occurrence_count | integer | Yes | |
data.items[].recheck | object | null | No | |
data.items[].recheck.after_answer_count | integer | Conditional | |
data.items[].recheck.after_score | number | null | Conditional | |
data.items[].recheck.before_answer_count | integer | Conditional | |
data.items[].recheck.before_score | number | null | Conditional | |
data.items[].recheck.claim_status | "supported" | "wrong" | "not_observed" | "insufficient_evidence" | null | Conditional | |
data.items[].recheck.published_at | string (date-time) | Conditional | |
data.items[].recheck.run_id | string | null | Conditional | |
data.items[].recheck.status | "in_progress" | "completed" | Conditional | |
data.items[].source_pages | array of object | Yes | |
data.items[].source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.items[].source_pages[].scope | "answer" | "claim" | Yes | |
data.items[].source_pages[].url | string | Yes | |
data.items[].statement | string | Yes | |
data.items[].theme | "pricing" | "features" | "availability" | "policy" | "company" | "integrations" | "other" | Yes | |
data.next_cursor | integer | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read accuracy facts and suggestionsaccuracy_facts
Open this request with Python and TypeScript examples
- Path
datasetisaccuracy_facts.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "accuracy_facts" | Yes | |
brand_id | query | string (uuid) | Yes | |
country | query | string | null | No | |
status | query | "approved" | "needs_review" | "suggested" | null | No | |
limit | query | integer | No | |
cursor | query | integer | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/accuracy_facts" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Read accuracy facts and suggestions
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.items | array of object | object | Yes | |
data.items[].content_id | string (uuid) | Conditional | |
data.items[].content_revision | string (uuid) | Conditional | |
data.items[].country | string | null | No | |
data.items[].effective_from | string (date) | Yes | |
data.items[].effective_until | string (date) | null | No | |
data.items[].fact_id | string (uuid) | Yes | |
data.items[].source_quote | string | Yes | |
data.items[].source_url | string | Yes | |
data.items[].statement | string | Yes | |
data.items[].status | "approved" | "needs_review" | "suggested" | Yes | |
data.items[].suggestion_id | string (uuid) | null | No | |
data.items[].type | "price" | "feature" | "availability" | "policy" | "company" | "integration" | "custom" | Yes | |
data.items[].suggestion_id | string (uuid) | Conditional | |
data.next_cursor | integer | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Citationscitations
Open this request with Python and TypeScript examples
- Path
datasetiscitations. - Query
sectionis omitted.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "citations" | Yes | |
brand_id | query | string (uuid) | Yes | |
month | query | string | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
topic_id | query | string | null | No | |
prompt_id | query | string (uuid) | null | No | |
limit | query | integer | No | |
offset | query | integer | No | |
page_type | query | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | null | No | |
include_page_details | query | boolean | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/citations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.month | string | null | Yes | |
data.next_offset | integer | null | Yes | |
data.total_urls | integer | Yes | |
data.urls | array of object | Yes | |
data.urls[].citing_answers | integer | Yes | |
data.urls[].domain | string | Yes | |
data.urls[].page_id | string | Yes | |
data.urls[].url | string (uri) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.month | string | null | Yes | |
data.next_offset | integer | null | Yes | |
data.total_urls | integer | Yes | |
data.urls | array of object | Yes | |
data.urls[].brand_mentioned_on_page | boolean | null | No | |
data.urls[].changed_since_previous_check | boolean | null | No | |
data.urls[].citing_answers | integer | No | |
data.urls[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.urls[].classification_confidence | number | No | |
data.urls[].competitors_mentioned_on_page | object | No | |
data.urls[].competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.urls[].domain | string | No | |
data.urls[].last_checked_at | string | No | |
data.urls[].page_id | string | Yes | |
data.urls[].page_status | "in_progress" | "live" | "gone" | Yes | |
data.urls[].page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.urls[].page_type_confidence | number | null | No | |
data.urls[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.urls[].url | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Compare citations across monthscitation_growth
Open this request with Python and TypeScript examples
- Path
datasetiscitation_growth.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "citation_growth" | Yes | |
brand_id | query | string (uuid) | Yes | |
month | query | string | null | No | |
previous_month | query | string | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
topic_id | query | string | null | No | |
prompt_id | query | string (uuid) | null | No | |
location_id | query | string (uuid) | null | No | |
group_by | query | "location" | "city" | "region" | null | No | |
ownership | query | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | No | |
page_type | query | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | null | No | |
limit | query | integer | No | |
cursor | query | string | null | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/citation_growth" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Citation growth.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.comparison_coverage | object | Yes | |
data.comparison_coverage.current_samples | integer | Yes | |
data.comparison_coverage.matched_pairs | integer | Yes | |
data.comparison_coverage.previous_samples | integer | Yes | |
data.comparison_status | "no_baseline" | "partial" | "complete" | Yes | |
data.current | object | Yes | |
data.current.answers | integer | Yes | |
data.current.citations | integer | Yes | |
data.current.month | string | Yes | |
data.current.pages | integer | Yes | |
data.current.websites | integer | Yes | |
data.history | array of object | Yes | |
data.history[].answers | integer | Yes | |
data.history[].citations | integer | Yes | |
data.history[].month | string | Yes | |
data.history[].pages | integer | Yes | |
data.history[].websites | integer | Yes | |
data.page_changes | object | null | Yes | |
data.page_changes.kept | integer | Conditional | |
data.page_changes.lost | integer | Conditional | |
data.page_changes.new | integer | Conditional | |
data.pages | array of object | Yes | |
data.pages[].change | "new" | "lost" | Yes | |
data.pages[].domain | string | Yes | |
data.pages[].url | string | Yes | |
data.previous | object | Yes | |
data.previous.answers | integer | Yes | |
data.previous.citations | integer | Yes | |
data.previous.month | string | Yes | |
data.previous.pages | integer | Yes | |
data.previous.websites | integer | Yes | |
data.report_id | string | null | Yes | |
data.total_changed_pages | integer | Yes | |
data.website_changes | object | null | Yes | |
data.website_changes.kept | integer | Conditional | |
data.website_changes.lost | integer | Conditional | |
data.website_changes.new | integer | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read cited page checkspage_checks
Open this request with Python and TypeScript examples
- Path
datasetispage_checks.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "page_checks" | Yes | |
brand_id | query | string (uuid) | Yes | |
limit | query | integer | No | |
offset | query | integer | No | |
month | query | string | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
topic_id | query | string | null | No | |
prompt_id | query | string (uuid) | null | No | |
page_type | query | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | null | No | |
include_page_details | query | boolean | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/page_checks" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Saved page checks.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.month | string | null | Yes | |
data.next_offset | integer | null | Yes | |
data.pages | array of object | Yes | |
data.pages[].brand_mentioned_on_page | boolean | null | No | |
data.pages[].changed_since_previous_check | boolean | null | No | |
data.pages[].citing_answers | integer | No | |
data.pages[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.pages[].classification_confidence | number | No | |
data.pages[].competitors_mentioned_on_page | object | No | |
data.pages[].competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.pages[].domain | string | No | |
data.pages[].last_checked_at | string | No | |
data.pages[].page_id | string | Yes | |
data.pages[].page_status | "in_progress" | "live" | "gone" | Yes | |
data.pages[].page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.pages[].page_type_confidence | number | null | No | |
data.pages[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.pages[].url | string | Yes | |
data.total_urls | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Citation Gapscitation_gaps
Open this request with Python and TypeScript examples
- Path
datasetiscitation_gaps.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "citation_gaps" | Yes | |
brand_id | query | string (uuid) | Yes | |
month | query | string | null | No | |
report_id | query | string (uuid) | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
topic_id | query | string | null | No | |
prompt_id | query | string (uuid) | null | No | |
limit | query | integer | No | |
offset | query | integer | No | |
location_id | query | string (uuid) | No | Limit to one location. |
checks_as_of | query | string (date-time) | No | Send the check time from page one. |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/citation_gaps" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.answers_with_tracked_competitors_in_scope | integer | Yes | |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.brand_missing_from_count | integer | Yes | |
data.checks_as_of | string | Yes | |
data.competitor_cited_sources_count | integer | Yes | |
data.competitor_without_brand_answers | integer | Yes | |
data.competitors | array of object | Yes | |
data.competitors[].answers | integer | Yes | |
data.competitors[].location_id | string | null | Yes | |
data.competitors[].name | string | Yes | |
data.domains | array of object | Yes | |
data.domains[].domain | string | Yes | |
data.domains[].domain_relationship | "registered_competitor" | "other_external" | Yes | |
data.domains[].gap_answers_citing_domain | integer | Yes | |
data.gap_answers_with_displayable_citations | integer | Yes | |
data.location_groups | array of object | Yes | |
data.location_groups[].brand_missing_from_count | integer | Yes | |
data.location_groups[].competitor_cited_sources_count | integer | Yes | |
data.location_groups[].location_id | string | null | Yes | |
data.location_id | string | null | Yes | |
data.missing_sources | array of object | Yes | |
data.missing_sources[].answers_affected | integer | Yes | |
data.missing_sources[].brand_cited_in_answers | boolean | Yes | |
data.missing_sources[].brand_present_on_page | boolean | null | Yes | |
data.missing_sources[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | Yes | |
data.missing_sources[].classification_confidence | number | Yes | |
data.missing_sources[].competitor_evidence | "page_check" | "co_citation" | Yes | |
data.missing_sources[].competitors_present_on_page | array of string | Yes | |
data.missing_sources[].domain | string | Yes | |
data.missing_sources[].engines | array of string | Yes | |
data.missing_sources[].evidence | object | Yes | |
data.missing_sources[].evidence.answer_ids | array of string | Yes | |
data.missing_sources[].evidence.competitors | array of string | Yes | |
data.missing_sources[].evidence.engines | array of string | Yes | |
data.missing_sources[].evidence.prompt_ids | array of string | Yes | |
data.missing_sources[].last_checked_at | string | null | Yes | |
data.missing_sources[].latest_cited_at | string | Yes | |
data.missing_sources[].location_id | string | null | Yes | |
data.missing_sources[].page_type | string | Yes | |
data.missing_sources[].priority_reasons | array of string | Yes | |
data.missing_sources[].priority_score | integer | Yes | |
data.missing_sources[].prompts_affected | integer | Yes | |
data.missing_sources[].resolved_answer | object | No | |
data.missing_sources[].resolved_answer.answer_id | string | null | Conditional | |
data.missing_sources[].resolved_answer.basis | "page_check" | "answer" | Conditional | |
data.missing_sources[].resolved_answer.observed_at | string | Conditional | |
data.missing_sources[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | Yes | |
data.missing_sources[].url | string | Yes | |
data.month | string | null | Yes | |
data.next_offset | integer | null | Yes | |
data.next_sources_offset | integer | null | Yes | |
data.report_id | string | null | Yes | |
data.third_party_domains | array of object | Yes | |
data.third_party_domains[].answers_affected | integer | Yes | |
data.third_party_domains[].competitors | array of string | Yes | |
data.third_party_domains[].domain | string | Yes | |
data.third_party_domains[].location_id | string | null | Yes | |
data.third_party_domains[].pages | integer | Yes | |
data.third_party_sources | array of object | Yes | |
data.third_party_sources[].answers_affected | integer | Yes | |
data.third_party_sources[].brand_cited_in_answers | boolean | Yes | |
data.third_party_sources[].brand_present_on_page | boolean | null | Yes | |
data.third_party_sources[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | Yes | |
data.third_party_sources[].classification_confidence | number | Yes | |
data.third_party_sources[].competitor_evidence | "page_check" | "co_citation" | Yes | |
data.third_party_sources[].competitors_present_on_page | array of string | Yes | |
data.third_party_sources[].domain | string | Yes | |
data.third_party_sources[].engines | array of string | Yes | |
data.third_party_sources[].evidence | object | Yes | |
data.third_party_sources[].evidence.answer_ids | array of string | Yes | |
data.third_party_sources[].evidence.competitors | array of string | Yes | |
data.third_party_sources[].evidence.engines | array of string | Yes | |
data.third_party_sources[].evidence.prompt_ids | array of string | Yes | |
data.third_party_sources[].last_checked_at | string | null | Yes | |
data.third_party_sources[].latest_cited_at | string | Yes | |
data.third_party_sources[].location_id | string | null | Yes | |
data.third_party_sources[].page_type | string | Yes | |
data.third_party_sources[].priority_reasons | array of string | Yes | |
data.third_party_sources[].priority_score | integer | Yes | |
data.third_party_sources[].prompts_affected | integer | Yes | |
data.third_party_sources[].resolved_answer | object | No | |
data.third_party_sources[].resolved_answer.answer_id | string | null | Conditional | |
data.third_party_sources[].resolved_answer.basis | "page_check" | "answer" | Conditional | |
data.third_party_sources[].resolved_answer.observed_at | string | Conditional | |
data.third_party_sources[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | Yes | |
data.third_party_sources[].url | string | Yes | |
data.total_domains | integer | Yes | |
data.total_missing_sources | integer | Yes | |
data.valid_answers | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read cited sources in saved answers that omit a brandmissing_brand
Open this request with Python and TypeScript examples
- Path
datasetismissing_brand.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "missing_brand" | Yes | |
brand_id | query | string (uuid) | Yes | |
month | query | string | null | No | |
report_id | query | string (uuid) | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
topic_id | query | string | null | No | |
prompt_id | query | string (uuid) | null | No | |
page_id | query | string | null | No | |
limit | query | integer | No | |
cursor | query | string | null | No | |
opportunities | query | boolean | No | Set to true to page through data.opportunities.items. Use meta.next_cursor with the same filters and opportunities value. |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/missing_brand" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.brand_missing_answers | integer | Yes | |
data.brand_missing_answers_with_displayable_citations | integer | Yes | |
data.brand_missing_answers_with_unusable_citation_urls | integer | Yes | |
data.brand_missing_answers_with_withheld_citations | integer | Yes | |
data.evidence | array of object | Yes | |
data.evidence[].ai_search | string | Yes | The AI search product the answer came from, such as google_ai_overviews. |
data.evidence[].answer_excerpt | string | null | Yes | |
data.evidence[].answer_excerpt_truncated | boolean | null | Yes | |
data.evidence[].collected_at | string | null | Yes | |
data.evidence[].engine | string | Yes | |
data.evidence[].observation_id | string | Yes | |
data.evidence[].prompt_id | string | Yes | |
data.evidence[].prompt_text | string | null | Yes | |
data.evidence[].prompt_version | integer | null | Yes | |
data.evidence[].provider | string | null | Yes | |
data.evidence[].scheduled_at | string | Yes | |
data.month | string | null | Yes | |
data.opportunities | object | No | |
data.opportunities.answers_without_citation_urls | integer | Conditional | |
data.opportunities.eligible_question_count | integer | Conditional | |
data.opportunities.items | array of object | Conditional | |
data.opportunities.items[].basis | "observed_citation" | "customer_review" | Conditional | |
data.opportunities.items[].buyer_questions | array of object | Conditional | |
data.opportunities.items[].buyer_questions[].prompt_id | string | Conditional | |
data.opportunities.items[].buyer_questions[].prompt_text | string | null | Conditional | |
data.opportunities.items[].buyer_questions[].prompt_version | integer | Conditional | |
data.opportunities.items[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.opportunities.items[].classification_confidence | number | No | |
data.opportunities.items[].competitor_co_citations | integer | Conditional | |
data.opportunities.items[].item_id | string | Conditional | |
data.opportunities.items[].latest_observed_at | string | null | Conditional | |
data.opportunities.items[].matched_query_terms | array of string | Conditional | |
data.opportunities.items[].matching_question_count | integer | Conditional | |
data.opportunities.items[].observed_citations | integer | Conditional | |
data.opportunities.items[].observed_question_count | integer | Conditional | |
data.opportunities.items[].outreach_outcome | "no_response" | "declined" | "accepted" | "published" | "other" | null | Conditional | |
data.opportunities.items[].outreach_owner | string | null | Conditional | |
data.opportunities.items[].outreach_revision | integer | null | Conditional | |
data.opportunities.items[].outreach_status | string | null | Conditional | |
data.opportunities.items[].page_id | string | Conditional | |
data.opportunities.items[].page_type | "comparison_guide" | "directory" | "forum" | "news_article" | "product_page" | "review" | "social" | "unknown" | "video" | "brand_site" | "competitor_site" | "docs" | "marketplace" | "press_release" | Conditional | |
data.opportunities.items[].rank | integer | Conditional | |
data.opportunities.items[].reviewed_at | string | null | Conditional | |
data.opportunities.items[].reviewed_question_count | integer | Conditional | |
data.opportunities.items[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.opportunities.items[].url | string | Conditional | |
data.opportunities.total | integer | Conditional | |
data.ownership_counts | object | Yes | |
data.ownership_counts.[key] | integer | No | Value for each key. |
data.page | object | null | Yes | |
data.page.brand_missing_answers_citing_page | integer | Conditional | |
data.page.classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | Conditional | |
data.page.classification_confidence | number | Conditional | |
data.page.domain | string | Conditional | |
data.page.matched_domain | string | null | Conditional | |
data.page.ownership | "brand_owned" | "registered_competitor" | "other_external" | Conditional | |
data.page.ownership_basis | "configured_brand_domain" | "configured_competitor_domain" | "no_configured_domain_match" | Conditional | |
data.page.page_id | string | Conditional | |
data.page.page_type | "comparison_guide" | "directory" | "forum" | "news_article" | "product_page" | "review" | "social" | "unknown" | "video" | "brand_site" | "competitor_site" | "docs" | "marketplace" | "press_release" | Conditional | |
data.page.page_type_basis | string | Conditional | |
data.page.rank | integer | Conditional | |
data.page.source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | Conditional | |
data.page.url | string | Conditional | |
data.page_type_counts | object | Yes | |
data.page_type_counts.[key] | integer | No | Value for each key. |
data.pages | array of object | Yes | |
data.pages[].brand_missing_answers_citing_page | integer | Yes | |
data.pages[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | Yes | |
data.pages[].classification_confidence | number | Yes | |
data.pages[].domain | string | Yes | |
data.pages[].matched_domain | string | null | Yes | |
data.pages[].ownership | "brand_owned" | "registered_competitor" | "other_external" | Yes | |
data.pages[].ownership_basis | "configured_brand_domain" | "configured_competitor_domain" | "no_configured_domain_match" | Yes | |
data.pages[].page_id | string | Yes | |
data.pages[].page_type | "comparison_guide" | "directory" | "forum" | "news_article" | "product_page" | "review" | "social" | "unknown" | "video" | "brand_site" | "competitor_site" | "docs" | "marketplace" | "press_release" | Yes | |
data.pages[].page_type_basis | string | Yes | |
data.pages[].rank | integer | Yes | |
data.pages[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | Yes | |
data.pages[].url | string | Yes | |
data.report_id | string | null | Yes | |
data.total_evidence | integer | Yes | |
data.total_pages | integer | Yes | |
data.valid_answers | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Citation Analyticscitations_domains
Open this request with Python and TypeScript examples
- Path
datasetiscitations. - Query
sectionisdomains.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "citations" | Yes | |
audience_id | query | string (uuid) | null | No | Current audience assignment. Requires prompts:read. |
product_id | query | string (uuid) | null | No | Current product assignment. Requires prompts:read. |
service_id | query | string (uuid) | null | No | Current service assignment. Requires prompts:read. |
group_id | query | string (uuid) | null | No | Current prompt group assignment. Requires prompts:read. |
stage | query | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | Current prompt buyer stage. Requires prompts:read. |
brand_id | query | string (uuid) | Yes | |
report_id | query | string (uuid) | null | No | |
start_at | query | string (date-time) | null | No | |
end_at | query | string (date-time) | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
provider | query | string | null | No | Filter by source label. Available labels include official_api, collector_a, collector_b, collector_c, collector_d, collector_e, collector_f, collector_g, collector_h. |
prompt_id | query | string (uuid) | null | No | |
prompt_version | query | integer | null | No | |
limit | query | integer | No | |
cursor | query | string | null | No | |
page_type | query | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | null | No | |
include_page_details | query | boolean | No | |
url | query | string | null | No | |
ownership | query | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | No | |
social_platform | query | "linkedin" | "reddit" | "youtube" | null | No | |
location_id | query | string (uuid) | No | |
group_by | query | "location" | "city" | "region" | No | |
month | query | string | null | No | Use with section=growth. |
previous_month | query | string | null | No | Use with section=growth. |
topic_id | query | string | null | No | Use with section=growth. |
section | query | "domains" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/citations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'section=domains'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.content_composition | array of object | Yes | |
data.content_composition[].answer_url_pairs | integer | Yes | |
data.content_composition[].unique_urls | integer | Yes | |
data.content_composition[].value | string | Yes | |
data.ownership | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | Yes | |
data.ownership_basis | "pinned_analysis_configuration" | "unknown" | Yes | |
data.ownership_composition | array of object | Yes | |
data.ownership_composition[].answer_url_pairs | integer | Yes | |
data.ownership_composition[].unique_urls | integer | Yes | |
data.ownership_composition[].value | string | Yes | |
data.page_type_composition | array of object | No | |
data.page_type_composition[].answer_url_pairs | integer | Conditional | |
data.page_type_composition[].unique_urls | integer | Conditional | |
data.page_type_composition[].value | string | Conditional | |
data.report | object | Yes | |
data.report.analysis_version | string | null | Yes | |
data.report.brand_id | string | Yes | |
data.report.comparison_set_version | string | null | Yes | |
data.report.end_at | string | Yes | |
data.report.generated_at | string | null | Yes | |
data.report.report_id | string | null | Yes | |
data.report.segmentation | object | null | Yes | |
data.report.segmentation.audience_id | string | null | Conditional | |
data.report.segmentation.basis | "current_prompt_metadata" | Conditional | |
data.report.segmentation.group_id | string | null | Conditional | |
data.report.segmentation.product_id | string | null | Conditional | |
data.report.segmentation.service_id | string | null | Conditional | |
data.report.segmentation.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Conditional | |
data.report.start_at | string | Yes | |
data.rows | array of object | Yes | |
data.rows[].dimension | object | null | Yes | |
data.rows[].dimension.ai_search | string | null | Conditional | The AI search product the answer came from, such as google_ai_overviews. |
data.rows[].dimension.comparison_set_version | string | null | Conditional | |
data.rows[].dimension.date | string | null | Conditional | |
data.rows[].dimension.engine | string | null | Conditional | |
data.rows[].dimension.prompt_id | string | null | Conditional | |
data.rows[].dimension.prompt_version | integer | null | Conditional | |
data.rows[].dimension.provider | string | null | Conditional | |
data.rows[].dimension.source_cohort | object | null | Conditional | |
data.rows[].dimension.source_cohort.[key] | string | null | No | Value for each key. |
data.rows[].domain | string | null | Yes | |
data.rows[].matched_domain | string | null | Yes | |
data.rows[].matched_entity_id | string | null | Yes | |
data.rows[].metrics | object | Yes | |
data.rows[].metrics.answer_mentions | object | Yes | |
data.rows[].metrics.answer_mentions.brand_mention_answers | integer | Yes | |
data.rows[].metrics.answer_mentions.competitor_mention_answers | object | Yes | |
data.rows[].metrics.answer_mentions.competitor_mention_answers.[key] | integer | No | Value for each key. |
data.rows[].metrics.answer_url_pairs | integer | Yes | |
data.rows[].metrics.answers_with_displayable_citations | integer | Yes | |
data.rows[].metrics.answers_with_recorded_citations | integer | Yes | |
data.rows[].metrics.answers_with_unusable_citation_urls | integer | Yes | |
data.rows[].metrics.answers_with_withheld_citations | integer | Yes | |
data.rows[].metrics.cited_page_brand_mention_rate | number | null | Yes | |
data.rows[].metrics.cited_page_brand_mentions | integer | null | Yes | |
data.rows[].metrics.cited_page_competitor_mention_rates | object | Yes | |
data.rows[].metrics.cited_page_competitor_mention_rates.[key] | number | null | No | Value for each key. |
data.rows[].metrics.cited_page_competitor_mentions | object | Yes | |
data.rows[].metrics.cited_page_competitor_mentions.[key] | integer | null | No | Value for each key. |
data.rows[].metrics.citing_answers | integer | Yes | |
data.rows[].metrics.citing_share_of_answers_with_displayable_citations | number | null | Yes | |
data.rows[].metrics.content_type_answer_url_pairs | object | Yes | |
data.rows[].metrics.content_type_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.ownership_answer_url_pairs | object | Yes | |
data.rows[].metrics.ownership_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.scheduled_samples | integer | Yes | |
data.rows[].metrics.source_channel_answer_url_pairs | object | Yes | |
data.rows[].metrics.source_channel_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.unique_domains | integer | Yes | |
data.rows[].metrics.unique_urls | integer | Yes | |
data.rows[].metrics.urls_with_brand_mention_review | integer | Yes | |
data.rows[].metrics.urls_with_competitor_mention_review | object | Yes | |
data.rows[].metrics.urls_with_competitor_mention_review.[key] | integer | No | Value for each key. |
data.rows[].metrics.valid_answers | integer | Yes | |
data.rows[].ownership | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | Yes | |
data.rows[].ownership_rank | integer | null | Yes | |
data.rows[].page | object | null | Yes | |
data.rows[].page.brand_mentioned_on_page | boolean | null | Conditional | |
data.rows[].page.checked_at | string | null | Conditional | |
data.rows[].page.classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.rows[].page.classification_confidence | number | No | |
data.rows[].page.competitors_mentioned_on_page | object | Conditional | |
data.rows[].page.competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.rows[].page.content_type | string | Conditional | |
data.rows[].page.content_type_basis | "review" | "url_pattern" | "unknown" | Conditional | |
data.rows[].page.evidence_reference | string | null | Conditional | |
data.rows[].page.page_evidence_status | "reviewed" | "unknown" | Conditional | |
data.rows[].page.page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.rows[].page.page_type_confidence | number | null | No | |
data.rows[].page.social_publisher | object | No | |
data.rows[].page.social_publisher.entity_id | string | Conditional | |
data.rows[].page.social_publisher.profile_url | string | Conditional | |
data.rows[].page.source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.rows[].page.source_channel | string | Conditional | |
data.rows[].page.source_channel_basis | "review" | "url_pattern" | "unknown" | Conditional | |
data.rows[].page.url | string | Conditional | |
data.rows[].page.url_pattern_basis | string | null | Conditional | |
data.rows[].rank | integer | null | Yes | |
data.rows[].social_platform | "linkedin" | "reddit" | "youtube" | No | |
data.rows[].social_publisher_metrics | object | No | |
data.rows[].social_publisher_metrics.answers_with_displayable_citations | integer | Conditional | |
data.rows[].social_publisher_metrics.brand | object | Conditional | |
data.rows[].social_publisher_metrics.brand.answer_url_pairs | integer | Conditional | |
data.rows[].social_publisher_metrics.brand.citation_rate | number | null | Conditional | |
data.rows[].social_publisher_metrics.brand.citing_answers | integer | Conditional | |
data.rows[].social_publisher_metrics.competitors | object | Conditional | |
data.rows[].social_publisher_metrics.competitors.[key] | object | No | Value for each key. |
data.rows[].social_publisher_metrics.unknown_publisher | object | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.answer_url_pairs | integer | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.citation_rate | number | null | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.citing_answers | integer | Conditional | |
data.section | "domains" | "urls" | "timeline" | "channels" | "prompts" | "social_timeline" | Yes | |
data.social_platform | "linkedin" | "reddit" | "youtube" | No | |
data.source_channel_composition | array of object | Yes | |
data.source_channel_composition[].answer_url_pairs | integer | Yes | |
data.source_channel_composition[].unique_urls | integer | Yes | |
data.source_channel_composition[].value | string | Yes | |
data.summary | object | Yes | |
data.summary.answer_mentions | object | Yes | |
data.summary.answer_mentions.brand_mention_answers | integer | Yes | |
data.summary.answer_mentions.competitor_mention_answers | object | Yes | |
data.summary.answer_mentions.competitor_mention_answers.[key] | integer | No | Value for each key. |
data.summary.answer_url_pairs | integer | Yes | |
data.summary.answers_with_displayable_citations | integer | Yes | |
data.summary.answers_with_recorded_citations | integer | Yes | |
data.summary.answers_with_unusable_citation_urls | integer | Yes | |
data.summary.answers_with_withheld_citations | integer | Yes | |
data.summary.cited_page_brand_mention_rate | number | null | Yes | |
data.summary.cited_page_brand_mentions | integer | null | Yes | |
data.summary.cited_page_competitor_mention_rates | object | Yes | |
data.summary.cited_page_competitor_mention_rates.[key] | number | null | No | Value for each key. |
data.summary.cited_page_competitor_mentions | object | Yes | |
data.summary.cited_page_competitor_mentions.[key] | integer | null | No | Value for each key. |
data.summary.citing_answers | integer | Yes | |
data.summary.citing_share_of_answers_with_displayable_citations | number | null | Yes | |
data.summary.content_type_answer_url_pairs | object | Yes | |
data.summary.content_type_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.ownership_answer_url_pairs | object | Yes | |
data.summary.ownership_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.scheduled_samples | integer | Yes | |
data.summary.source_channel_answer_url_pairs | object | Yes | |
data.summary.source_channel_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.unique_domains | integer | Yes | |
data.summary.unique_urls | integer | Yes | |
data.summary.urls_with_brand_mention_review | integer | Yes | |
data.summary.urls_with_competitor_mention_review | object | Yes | |
data.summary.urls_with_competitor_mention_review.[key] | integer | No | Value for each key. |
data.summary.valid_answers | integer | Yes | |
data.total_rows | integer | Yes | |
data.url | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.growth | object | Yes | |
data.growth.brand_id | string | Yes | |
data.growth.comparison_coverage | object | Yes | |
data.growth.comparison_coverage.current_samples | integer | Yes | |
data.growth.comparison_coverage.matched_pairs | integer | Yes | |
data.growth.comparison_coverage.previous_samples | integer | Yes | |
data.growth.comparison_status | "no_baseline" | "partial" | "complete" | Yes | |
data.growth.current | object | Yes | |
data.growth.current.answers | integer | Yes | |
data.growth.current.citations | integer | Yes | |
data.growth.current.month | string | Yes | |
data.growth.current.pages | integer | Yes | |
data.growth.current.websites | integer | Yes | |
data.growth.history | array of object | Yes | |
data.growth.history[].answers | integer | Yes | |
data.growth.history[].citations | integer | Yes | |
data.growth.history[].month | string | Yes | |
data.growth.history[].pages | integer | Yes | |
data.growth.history[].websites | integer | Yes | |
data.growth.page_changes | object | null | Yes | |
data.growth.page_changes.kept | integer | Conditional | |
data.growth.page_changes.lost | integer | Conditional | |
data.growth.page_changes.new | integer | Conditional | |
data.growth.pages | array of object | Yes | |
data.growth.pages[].change | "new" | "lost" | Yes | |
data.growth.pages[].domain | string | Yes | |
data.growth.pages[].url | string | Yes | |
data.growth.previous | object | Yes | |
data.growth.previous.answers | integer | Yes | |
data.growth.previous.citations | integer | Yes | |
data.growth.previous.month | string | Yes | |
data.growth.previous.pages | integer | Yes | |
data.growth.previous.websites | integer | Yes | |
data.growth.report_id | string | null | Yes | |
data.growth.total_changed_pages | integer | Yes | |
data.growth.website_changes | object | null | Yes | |
data.growth.website_changes.kept | integer | Conditional | |
data.growth.website_changes.lost | integer | Conditional | |
data.growth.website_changes.new | integer | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Citation Analyticscitations_urls
Open this request with Python and TypeScript examples
- Path
datasetiscitations. - Query
sectionisurls.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "citations" | Yes | |
audience_id | query | string (uuid) | null | No | Current audience assignment. Requires prompts:read. |
product_id | query | string (uuid) | null | No | Current product assignment. Requires prompts:read. |
service_id | query | string (uuid) | null | No | Current service assignment. Requires prompts:read. |
group_id | query | string (uuid) | null | No | Current prompt group assignment. Requires prompts:read. |
stage | query | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | Current prompt buyer stage. Requires prompts:read. |
brand_id | query | string (uuid) | Yes | |
report_id | query | string (uuid) | null | No | |
start_at | query | string (date-time) | null | No | |
end_at | query | string (date-time) | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
provider | query | string | null | No | Filter by source label. Available labels include official_api, collector_a, collector_b, collector_c, collector_d, collector_e, collector_f, collector_g, collector_h. |
prompt_id | query | string (uuid) | null | No | |
prompt_version | query | integer | null | No | |
limit | query | integer | No | |
cursor | query | string | null | No | |
page_type | query | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | null | No | |
include_page_details | query | boolean | No | |
url | query | string | null | No | |
ownership | query | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | No | |
social_platform | query | "linkedin" | "reddit" | "youtube" | null | No | |
location_id | query | string (uuid) | No | |
group_by | query | "location" | "city" | "region" | No | |
month | query | string | null | No | Use with section=growth. |
previous_month | query | string | null | No | Use with section=growth. |
topic_id | query | string | null | No | Use with section=growth. |
section | query | "urls" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/citations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'section=urls'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.content_composition | array of object | Yes | |
data.content_composition[].answer_url_pairs | integer | Yes | |
data.content_composition[].unique_urls | integer | Yes | |
data.content_composition[].value | string | Yes | |
data.ownership | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | Yes | |
data.ownership_basis | "pinned_analysis_configuration" | "unknown" | Yes | |
data.ownership_composition | array of object | Yes | |
data.ownership_composition[].answer_url_pairs | integer | Yes | |
data.ownership_composition[].unique_urls | integer | Yes | |
data.ownership_composition[].value | string | Yes | |
data.page_type_composition | array of object | No | |
data.page_type_composition[].answer_url_pairs | integer | Conditional | |
data.page_type_composition[].unique_urls | integer | Conditional | |
data.page_type_composition[].value | string | Conditional | |
data.report | object | Yes | |
data.report.analysis_version | string | null | Yes | |
data.report.brand_id | string | Yes | |
data.report.comparison_set_version | string | null | Yes | |
data.report.end_at | string | Yes | |
data.report.generated_at | string | null | Yes | |
data.report.report_id | string | null | Yes | |
data.report.segmentation | object | null | Yes | |
data.report.segmentation.audience_id | string | null | Conditional | |
data.report.segmentation.basis | "current_prompt_metadata" | Conditional | |
data.report.segmentation.group_id | string | null | Conditional | |
data.report.segmentation.product_id | string | null | Conditional | |
data.report.segmentation.service_id | string | null | Conditional | |
data.report.segmentation.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Conditional | |
data.report.start_at | string | Yes | |
data.rows | array of object | Yes | |
data.rows[].dimension | object | null | Yes | |
data.rows[].dimension.ai_search | string | null | Conditional | The AI search product the answer came from, such as google_ai_overviews. |
data.rows[].dimension.comparison_set_version | string | null | Conditional | |
data.rows[].dimension.date | string | null | Conditional | |
data.rows[].dimension.engine | string | null | Conditional | |
data.rows[].dimension.prompt_id | string | null | Conditional | |
data.rows[].dimension.prompt_version | integer | null | Conditional | |
data.rows[].dimension.provider | string | null | Conditional | |
data.rows[].dimension.source_cohort | object | null | Conditional | |
data.rows[].dimension.source_cohort.[key] | string | null | No | Value for each key. |
data.rows[].domain | string | null | Yes | |
data.rows[].matched_domain | string | null | Yes | |
data.rows[].matched_entity_id | string | null | Yes | |
data.rows[].metrics | object | Yes | |
data.rows[].metrics.answer_mentions | object | Yes | |
data.rows[].metrics.answer_mentions.brand_mention_answers | integer | Yes | |
data.rows[].metrics.answer_mentions.competitor_mention_answers | object | Yes | |
data.rows[].metrics.answer_mentions.competitor_mention_answers.[key] | integer | No | Value for each key. |
data.rows[].metrics.answer_url_pairs | integer | Yes | |
data.rows[].metrics.answers_with_displayable_citations | integer | Yes | |
data.rows[].metrics.answers_with_recorded_citations | integer | Yes | |
data.rows[].metrics.answers_with_unusable_citation_urls | integer | Yes | |
data.rows[].metrics.answers_with_withheld_citations | integer | Yes | |
data.rows[].metrics.cited_page_brand_mention_rate | number | null | Yes | |
data.rows[].metrics.cited_page_brand_mentions | integer | null | Yes | |
data.rows[].metrics.cited_page_competitor_mention_rates | object | Yes | |
data.rows[].metrics.cited_page_competitor_mention_rates.[key] | number | null | No | Value for each key. |
data.rows[].metrics.cited_page_competitor_mentions | object | Yes | |
data.rows[].metrics.cited_page_competitor_mentions.[key] | integer | null | No | Value for each key. |
data.rows[].metrics.citing_answers | integer | Yes | |
data.rows[].metrics.citing_share_of_answers_with_displayable_citations | number | null | Yes | |
data.rows[].metrics.content_type_answer_url_pairs | object | Yes | |
data.rows[].metrics.content_type_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.ownership_answer_url_pairs | object | Yes | |
data.rows[].metrics.ownership_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.scheduled_samples | integer | Yes | |
data.rows[].metrics.source_channel_answer_url_pairs | object | Yes | |
data.rows[].metrics.source_channel_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.unique_domains | integer | Yes | |
data.rows[].metrics.unique_urls | integer | Yes | |
data.rows[].metrics.urls_with_brand_mention_review | integer | Yes | |
data.rows[].metrics.urls_with_competitor_mention_review | object | Yes | |
data.rows[].metrics.urls_with_competitor_mention_review.[key] | integer | No | Value for each key. |
data.rows[].metrics.valid_answers | integer | Yes | |
data.rows[].ownership | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | Yes | |
data.rows[].ownership_rank | integer | null | Yes | |
data.rows[].page | object | null | Yes | |
data.rows[].page.brand_mentioned_on_page | boolean | null | Conditional | |
data.rows[].page.checked_at | string | null | Conditional | |
data.rows[].page.classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.rows[].page.classification_confidence | number | No | |
data.rows[].page.competitors_mentioned_on_page | object | Conditional | |
data.rows[].page.competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.rows[].page.content_type | string | Conditional | |
data.rows[].page.content_type_basis | "review" | "url_pattern" | "unknown" | Conditional | |
data.rows[].page.evidence_reference | string | null | Conditional | |
data.rows[].page.page_evidence_status | "reviewed" | "unknown" | Conditional | |
data.rows[].page.page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.rows[].page.page_type_confidence | number | null | No | |
data.rows[].page.social_publisher | object | No | |
data.rows[].page.social_publisher.entity_id | string | Conditional | |
data.rows[].page.social_publisher.profile_url | string | Conditional | |
data.rows[].page.source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.rows[].page.source_channel | string | Conditional | |
data.rows[].page.source_channel_basis | "review" | "url_pattern" | "unknown" | Conditional | |
data.rows[].page.url | string | Conditional | |
data.rows[].page.url_pattern_basis | string | null | Conditional | |
data.rows[].rank | integer | null | Yes | |
data.rows[].social_platform | "linkedin" | "reddit" | "youtube" | No | |
data.rows[].social_publisher_metrics | object | No | |
data.rows[].social_publisher_metrics.answers_with_displayable_citations | integer | Conditional | |
data.rows[].social_publisher_metrics.brand | object | Conditional | |
data.rows[].social_publisher_metrics.brand.answer_url_pairs | integer | Conditional | |
data.rows[].social_publisher_metrics.brand.citation_rate | number | null | Conditional | |
data.rows[].social_publisher_metrics.brand.citing_answers | integer | Conditional | |
data.rows[].social_publisher_metrics.competitors | object | Conditional | |
data.rows[].social_publisher_metrics.competitors.[key] | object | No | Value for each key. |
data.rows[].social_publisher_metrics.unknown_publisher | object | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.answer_url_pairs | integer | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.citation_rate | number | null | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.citing_answers | integer | Conditional | |
data.section | "domains" | "urls" | "timeline" | "channels" | "prompts" | "social_timeline" | Yes | |
data.social_platform | "linkedin" | "reddit" | "youtube" | No | |
data.source_channel_composition | array of object | Yes | |
data.source_channel_composition[].answer_url_pairs | integer | Yes | |
data.source_channel_composition[].unique_urls | integer | Yes | |
data.source_channel_composition[].value | string | Yes | |
data.summary | object | Yes | |
data.summary.answer_mentions | object | Yes | |
data.summary.answer_mentions.brand_mention_answers | integer | Yes | |
data.summary.answer_mentions.competitor_mention_answers | object | Yes | |
data.summary.answer_mentions.competitor_mention_answers.[key] | integer | No | Value for each key. |
data.summary.answer_url_pairs | integer | Yes | |
data.summary.answers_with_displayable_citations | integer | Yes | |
data.summary.answers_with_recorded_citations | integer | Yes | |
data.summary.answers_with_unusable_citation_urls | integer | Yes | |
data.summary.answers_with_withheld_citations | integer | Yes | |
data.summary.cited_page_brand_mention_rate | number | null | Yes | |
data.summary.cited_page_brand_mentions | integer | null | Yes | |
data.summary.cited_page_competitor_mention_rates | object | Yes | |
data.summary.cited_page_competitor_mention_rates.[key] | number | null | No | Value for each key. |
data.summary.cited_page_competitor_mentions | object | Yes | |
data.summary.cited_page_competitor_mentions.[key] | integer | null | No | Value for each key. |
data.summary.citing_answers | integer | Yes | |
data.summary.citing_share_of_answers_with_displayable_citations | number | null | Yes | |
data.summary.content_type_answer_url_pairs | object | Yes | |
data.summary.content_type_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.ownership_answer_url_pairs | object | Yes | |
data.summary.ownership_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.scheduled_samples | integer | Yes | |
data.summary.source_channel_answer_url_pairs | object | Yes | |
data.summary.source_channel_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.unique_domains | integer | Yes | |
data.summary.unique_urls | integer | Yes | |
data.summary.urls_with_brand_mention_review | integer | Yes | |
data.summary.urls_with_competitor_mention_review | object | Yes | |
data.summary.urls_with_competitor_mention_review.[key] | integer | No | Value for each key. |
data.summary.valid_answers | integer | Yes | |
data.total_rows | integer | Yes | |
data.url | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.growth | object | Yes | |
data.growth.brand_id | string | Yes | |
data.growth.comparison_coverage | object | Yes | |
data.growth.comparison_coverage.current_samples | integer | Yes | |
data.growth.comparison_coverage.matched_pairs | integer | Yes | |
data.growth.comparison_coverage.previous_samples | integer | Yes | |
data.growth.comparison_status | "no_baseline" | "partial" | "complete" | Yes | |
data.growth.current | object | Yes | |
data.growth.current.answers | integer | Yes | |
data.growth.current.citations | integer | Yes | |
data.growth.current.month | string | Yes | |
data.growth.current.pages | integer | Yes | |
data.growth.current.websites | integer | Yes | |
data.growth.history | array of object | Yes | |
data.growth.history[].answers | integer | Yes | |
data.growth.history[].citations | integer | Yes | |
data.growth.history[].month | string | Yes | |
data.growth.history[].pages | integer | Yes | |
data.growth.history[].websites | integer | Yes | |
data.growth.page_changes | object | null | Yes | |
data.growth.page_changes.kept | integer | Conditional | |
data.growth.page_changes.lost | integer | Conditional | |
data.growth.page_changes.new | integer | Conditional | |
data.growth.pages | array of object | Yes | |
data.growth.pages[].change | "new" | "lost" | Yes | |
data.growth.pages[].domain | string | Yes | |
data.growth.pages[].url | string | Yes | |
data.growth.previous | object | Yes | |
data.growth.previous.answers | integer | Yes | |
data.growth.previous.citations | integer | Yes | |
data.growth.previous.month | string | Yes | |
data.growth.previous.pages | integer | Yes | |
data.growth.previous.websites | integer | Yes | |
data.growth.report_id | string | null | Yes | |
data.growth.total_changed_pages | integer | Yes | |
data.growth.website_changes | object | null | Yes | |
data.growth.website_changes.kept | integer | Conditional | |
data.growth.website_changes.lost | integer | Conditional | |
data.growth.website_changes.new | integer | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Citation Analyticscitations_timeline
Open this request with Python and TypeScript examples
- Path
datasetiscitations. - Query
sectionistimeline.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "citations" | Yes | |
audience_id | query | string (uuid) | null | No | Current audience assignment. Requires prompts:read. |
product_id | query | string (uuid) | null | No | Current product assignment. Requires prompts:read. |
service_id | query | string (uuid) | null | No | Current service assignment. Requires prompts:read. |
group_id | query | string (uuid) | null | No | Current prompt group assignment. Requires prompts:read. |
stage | query | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | Current prompt buyer stage. Requires prompts:read. |
brand_id | query | string (uuid) | Yes | |
report_id | query | string (uuid) | null | No | |
start_at | query | string (date-time) | null | No | |
end_at | query | string (date-time) | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
provider | query | string | null | No | Filter by source label. Available labels include official_api, collector_a, collector_b, collector_c, collector_d, collector_e, collector_f, collector_g, collector_h. |
prompt_id | query | string (uuid) | null | No | |
prompt_version | query | integer | null | No | |
limit | query | integer | No | |
cursor | query | string | null | No | |
page_type | query | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | null | No | |
include_page_details | query | boolean | No | |
url | query | string | null | No | |
ownership | query | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | No | |
social_platform | query | "linkedin" | "reddit" | "youtube" | null | No | |
location_id | query | string (uuid) | No | |
group_by | query | "location" | "city" | "region" | No | |
month | query | string | null | No | Use with section=growth. |
previous_month | query | string | null | No | Use with section=growth. |
topic_id | query | string | null | No | Use with section=growth. |
section | query | "timeline" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/citations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'section=timeline'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.content_composition | array of object | Yes | |
data.content_composition[].answer_url_pairs | integer | Yes | |
data.content_composition[].unique_urls | integer | Yes | |
data.content_composition[].value | string | Yes | |
data.ownership | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | Yes | |
data.ownership_basis | "pinned_analysis_configuration" | "unknown" | Yes | |
data.ownership_composition | array of object | Yes | |
data.ownership_composition[].answer_url_pairs | integer | Yes | |
data.ownership_composition[].unique_urls | integer | Yes | |
data.ownership_composition[].value | string | Yes | |
data.page_type_composition | array of object | No | |
data.page_type_composition[].answer_url_pairs | integer | Conditional | |
data.page_type_composition[].unique_urls | integer | Conditional | |
data.page_type_composition[].value | string | Conditional | |
data.report | object | Yes | |
data.report.analysis_version | string | null | Yes | |
data.report.brand_id | string | Yes | |
data.report.comparison_set_version | string | null | Yes | |
data.report.end_at | string | Yes | |
data.report.generated_at | string | null | Yes | |
data.report.report_id | string | null | Yes | |
data.report.segmentation | object | null | Yes | |
data.report.segmentation.audience_id | string | null | Conditional | |
data.report.segmentation.basis | "current_prompt_metadata" | Conditional | |
data.report.segmentation.group_id | string | null | Conditional | |
data.report.segmentation.product_id | string | null | Conditional | |
data.report.segmentation.service_id | string | null | Conditional | |
data.report.segmentation.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Conditional | |
data.report.start_at | string | Yes | |
data.rows | array of object | Yes | |
data.rows[].dimension | object | null | Yes | |
data.rows[].dimension.ai_search | string | null | Conditional | The AI search product the answer came from, such as google_ai_overviews. |
data.rows[].dimension.comparison_set_version | string | null | Conditional | |
data.rows[].dimension.date | string | null | Conditional | |
data.rows[].dimension.engine | string | null | Conditional | |
data.rows[].dimension.prompt_id | string | null | Conditional | |
data.rows[].dimension.prompt_version | integer | null | Conditional | |
data.rows[].dimension.provider | string | null | Conditional | |
data.rows[].dimension.source_cohort | object | null | Conditional | |
data.rows[].dimension.source_cohort.[key] | string | null | No | Value for each key. |
data.rows[].domain | string | null | Yes | |
data.rows[].matched_domain | string | null | Yes | |
data.rows[].matched_entity_id | string | null | Yes | |
data.rows[].metrics | object | Yes | |
data.rows[].metrics.answer_mentions | object | Yes | |
data.rows[].metrics.answer_mentions.brand_mention_answers | integer | Yes | |
data.rows[].metrics.answer_mentions.competitor_mention_answers | object | Yes | |
data.rows[].metrics.answer_mentions.competitor_mention_answers.[key] | integer | No | Value for each key. |
data.rows[].metrics.answer_url_pairs | integer | Yes | |
data.rows[].metrics.answers_with_displayable_citations | integer | Yes | |
data.rows[].metrics.answers_with_recorded_citations | integer | Yes | |
data.rows[].metrics.answers_with_unusable_citation_urls | integer | Yes | |
data.rows[].metrics.answers_with_withheld_citations | integer | Yes | |
data.rows[].metrics.cited_page_brand_mention_rate | number | null | Yes | |
data.rows[].metrics.cited_page_brand_mentions | integer | null | Yes | |
data.rows[].metrics.cited_page_competitor_mention_rates | object | Yes | |
data.rows[].metrics.cited_page_competitor_mention_rates.[key] | number | null | No | Value for each key. |
data.rows[].metrics.cited_page_competitor_mentions | object | Yes | |
data.rows[].metrics.cited_page_competitor_mentions.[key] | integer | null | No | Value for each key. |
data.rows[].metrics.citing_answers | integer | Yes | |
data.rows[].metrics.citing_share_of_answers_with_displayable_citations | number | null | Yes | |
data.rows[].metrics.content_type_answer_url_pairs | object | Yes | |
data.rows[].metrics.content_type_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.ownership_answer_url_pairs | object | Yes | |
data.rows[].metrics.ownership_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.scheduled_samples | integer | Yes | |
data.rows[].metrics.source_channel_answer_url_pairs | object | Yes | |
data.rows[].metrics.source_channel_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.unique_domains | integer | Yes | |
data.rows[].metrics.unique_urls | integer | Yes | |
data.rows[].metrics.urls_with_brand_mention_review | integer | Yes | |
data.rows[].metrics.urls_with_competitor_mention_review | object | Yes | |
data.rows[].metrics.urls_with_competitor_mention_review.[key] | integer | No | Value for each key. |
data.rows[].metrics.valid_answers | integer | Yes | |
data.rows[].ownership | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | Yes | |
data.rows[].ownership_rank | integer | null | Yes | |
data.rows[].page | object | null | Yes | |
data.rows[].page.brand_mentioned_on_page | boolean | null | Conditional | |
data.rows[].page.checked_at | string | null | Conditional | |
data.rows[].page.classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.rows[].page.classification_confidence | number | No | |
data.rows[].page.competitors_mentioned_on_page | object | Conditional | |
data.rows[].page.competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.rows[].page.content_type | string | Conditional | |
data.rows[].page.content_type_basis | "review" | "url_pattern" | "unknown" | Conditional | |
data.rows[].page.evidence_reference | string | null | Conditional | |
data.rows[].page.page_evidence_status | "reviewed" | "unknown" | Conditional | |
data.rows[].page.page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.rows[].page.page_type_confidence | number | null | No | |
data.rows[].page.social_publisher | object | No | |
data.rows[].page.social_publisher.entity_id | string | Conditional | |
data.rows[].page.social_publisher.profile_url | string | Conditional | |
data.rows[].page.source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.rows[].page.source_channel | string | Conditional | |
data.rows[].page.source_channel_basis | "review" | "url_pattern" | "unknown" | Conditional | |
data.rows[].page.url | string | Conditional | |
data.rows[].page.url_pattern_basis | string | null | Conditional | |
data.rows[].rank | integer | null | Yes | |
data.rows[].social_platform | "linkedin" | "reddit" | "youtube" | No | |
data.rows[].social_publisher_metrics | object | No | |
data.rows[].social_publisher_metrics.answers_with_displayable_citations | integer | Conditional | |
data.rows[].social_publisher_metrics.brand | object | Conditional | |
data.rows[].social_publisher_metrics.brand.answer_url_pairs | integer | Conditional | |
data.rows[].social_publisher_metrics.brand.citation_rate | number | null | Conditional | |
data.rows[].social_publisher_metrics.brand.citing_answers | integer | Conditional | |
data.rows[].social_publisher_metrics.competitors | object | Conditional | |
data.rows[].social_publisher_metrics.competitors.[key] | object | No | Value for each key. |
data.rows[].social_publisher_metrics.unknown_publisher | object | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.answer_url_pairs | integer | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.citation_rate | number | null | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.citing_answers | integer | Conditional | |
data.section | "domains" | "urls" | "timeline" | "channels" | "prompts" | "social_timeline" | Yes | |
data.social_platform | "linkedin" | "reddit" | "youtube" | No | |
data.source_channel_composition | array of object | Yes | |
data.source_channel_composition[].answer_url_pairs | integer | Yes | |
data.source_channel_composition[].unique_urls | integer | Yes | |
data.source_channel_composition[].value | string | Yes | |
data.summary | object | Yes | |
data.summary.answer_mentions | object | Yes | |
data.summary.answer_mentions.brand_mention_answers | integer | Yes | |
data.summary.answer_mentions.competitor_mention_answers | object | Yes | |
data.summary.answer_mentions.competitor_mention_answers.[key] | integer | No | Value for each key. |
data.summary.answer_url_pairs | integer | Yes | |
data.summary.answers_with_displayable_citations | integer | Yes | |
data.summary.answers_with_recorded_citations | integer | Yes | |
data.summary.answers_with_unusable_citation_urls | integer | Yes | |
data.summary.answers_with_withheld_citations | integer | Yes | |
data.summary.cited_page_brand_mention_rate | number | null | Yes | |
data.summary.cited_page_brand_mentions | integer | null | Yes | |
data.summary.cited_page_competitor_mention_rates | object | Yes | |
data.summary.cited_page_competitor_mention_rates.[key] | number | null | No | Value for each key. |
data.summary.cited_page_competitor_mentions | object | Yes | |
data.summary.cited_page_competitor_mentions.[key] | integer | null | No | Value for each key. |
data.summary.citing_answers | integer | Yes | |
data.summary.citing_share_of_answers_with_displayable_citations | number | null | Yes | |
data.summary.content_type_answer_url_pairs | object | Yes | |
data.summary.content_type_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.ownership_answer_url_pairs | object | Yes | |
data.summary.ownership_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.scheduled_samples | integer | Yes | |
data.summary.source_channel_answer_url_pairs | object | Yes | |
data.summary.source_channel_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.unique_domains | integer | Yes | |
data.summary.unique_urls | integer | Yes | |
data.summary.urls_with_brand_mention_review | integer | Yes | |
data.summary.urls_with_competitor_mention_review | object | Yes | |
data.summary.urls_with_competitor_mention_review.[key] | integer | No | Value for each key. |
data.summary.valid_answers | integer | Yes | |
data.total_rows | integer | Yes | |
data.url | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.growth | object | Yes | |
data.growth.brand_id | string | Yes | |
data.growth.comparison_coverage | object | Yes | |
data.growth.comparison_coverage.current_samples | integer | Yes | |
data.growth.comparison_coverage.matched_pairs | integer | Yes | |
data.growth.comparison_coverage.previous_samples | integer | Yes | |
data.growth.comparison_status | "no_baseline" | "partial" | "complete" | Yes | |
data.growth.current | object | Yes | |
data.growth.current.answers | integer | Yes | |
data.growth.current.citations | integer | Yes | |
data.growth.current.month | string | Yes | |
data.growth.current.pages | integer | Yes | |
data.growth.current.websites | integer | Yes | |
data.growth.history | array of object | Yes | |
data.growth.history[].answers | integer | Yes | |
data.growth.history[].citations | integer | Yes | |
data.growth.history[].month | string | Yes | |
data.growth.history[].pages | integer | Yes | |
data.growth.history[].websites | integer | Yes | |
data.growth.page_changes | object | null | Yes | |
data.growth.page_changes.kept | integer | Conditional | |
data.growth.page_changes.lost | integer | Conditional | |
data.growth.page_changes.new | integer | Conditional | |
data.growth.pages | array of object | Yes | |
data.growth.pages[].change | "new" | "lost" | Yes | |
data.growth.pages[].domain | string | Yes | |
data.growth.pages[].url | string | Yes | |
data.growth.previous | object | Yes | |
data.growth.previous.answers | integer | Yes | |
data.growth.previous.citations | integer | Yes | |
data.growth.previous.month | string | Yes | |
data.growth.previous.pages | integer | Yes | |
data.growth.previous.websites | integer | Yes | |
data.growth.report_id | string | null | Yes | |
data.growth.total_changed_pages | integer | Yes | |
data.growth.website_changes | object | null | Yes | |
data.growth.website_changes.kept | integer | Conditional | |
data.growth.website_changes.lost | integer | Conditional | |
data.growth.website_changes.new | integer | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Citation Analyticscitations_channels
Open this request with Python and TypeScript examples
- Path
datasetiscitations. - Query
sectionischannels.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "citations" | Yes | |
audience_id | query | string (uuid) | null | No | Current audience assignment. Requires prompts:read. |
product_id | query | string (uuid) | null | No | Current product assignment. Requires prompts:read. |
service_id | query | string (uuid) | null | No | Current service assignment. Requires prompts:read. |
group_id | query | string (uuid) | null | No | Current prompt group assignment. Requires prompts:read. |
stage | query | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | Current prompt buyer stage. Requires prompts:read. |
brand_id | query | string (uuid) | Yes | |
report_id | query | string (uuid) | null | No | |
start_at | query | string (date-time) | null | No | |
end_at | query | string (date-time) | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
provider | query | string | null | No | Filter by source label. Available labels include official_api, collector_a, collector_b, collector_c, collector_d, collector_e, collector_f, collector_g, collector_h. |
prompt_id | query | string (uuid) | null | No | |
prompt_version | query | integer | null | No | |
limit | query | integer | No | |
cursor | query | string | null | No | |
page_type | query | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | null | No | |
include_page_details | query | boolean | No | |
url | query | string | null | No | |
ownership | query | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | No | |
social_platform | query | "linkedin" | "reddit" | "youtube" | null | No | |
location_id | query | string (uuid) | No | |
group_by | query | "location" | "city" | "region" | No | |
month | query | string | null | No | Use with section=growth. |
previous_month | query | string | null | No | Use with section=growth. |
topic_id | query | string | null | No | Use with section=growth. |
section | query | "channels" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/citations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'section=channels'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.content_composition | array of object | Yes | |
data.content_composition[].answer_url_pairs | integer | Yes | |
data.content_composition[].unique_urls | integer | Yes | |
data.content_composition[].value | string | Yes | |
data.ownership | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | Yes | |
data.ownership_basis | "pinned_analysis_configuration" | "unknown" | Yes | |
data.ownership_composition | array of object | Yes | |
data.ownership_composition[].answer_url_pairs | integer | Yes | |
data.ownership_composition[].unique_urls | integer | Yes | |
data.ownership_composition[].value | string | Yes | |
data.page_type_composition | array of object | No | |
data.page_type_composition[].answer_url_pairs | integer | Conditional | |
data.page_type_composition[].unique_urls | integer | Conditional | |
data.page_type_composition[].value | string | Conditional | |
data.report | object | Yes | |
data.report.analysis_version | string | null | Yes | |
data.report.brand_id | string | Yes | |
data.report.comparison_set_version | string | null | Yes | |
data.report.end_at | string | Yes | |
data.report.generated_at | string | null | Yes | |
data.report.report_id | string | null | Yes | |
data.report.segmentation | object | null | Yes | |
data.report.segmentation.audience_id | string | null | Conditional | |
data.report.segmentation.basis | "current_prompt_metadata" | Conditional | |
data.report.segmentation.group_id | string | null | Conditional | |
data.report.segmentation.product_id | string | null | Conditional | |
data.report.segmentation.service_id | string | null | Conditional | |
data.report.segmentation.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Conditional | |
data.report.start_at | string | Yes | |
data.rows | array of object | Yes | |
data.rows[].dimension | object | null | Yes | |
data.rows[].dimension.ai_search | string | null | Conditional | The AI search product the answer came from, such as google_ai_overviews. |
data.rows[].dimension.comparison_set_version | string | null | Conditional | |
data.rows[].dimension.date | string | null | Conditional | |
data.rows[].dimension.engine | string | null | Conditional | |
data.rows[].dimension.prompt_id | string | null | Conditional | |
data.rows[].dimension.prompt_version | integer | null | Conditional | |
data.rows[].dimension.provider | string | null | Conditional | |
data.rows[].dimension.source_cohort | object | null | Conditional | |
data.rows[].dimension.source_cohort.[key] | string | null | No | Value for each key. |
data.rows[].domain | string | null | Yes | |
data.rows[].matched_domain | string | null | Yes | |
data.rows[].matched_entity_id | string | null | Yes | |
data.rows[].metrics | object | Yes | |
data.rows[].metrics.answer_mentions | object | Yes | |
data.rows[].metrics.answer_mentions.brand_mention_answers | integer | Yes | |
data.rows[].metrics.answer_mentions.competitor_mention_answers | object | Yes | |
data.rows[].metrics.answer_mentions.competitor_mention_answers.[key] | integer | No | Value for each key. |
data.rows[].metrics.answer_url_pairs | integer | Yes | |
data.rows[].metrics.answers_with_displayable_citations | integer | Yes | |
data.rows[].metrics.answers_with_recorded_citations | integer | Yes | |
data.rows[].metrics.answers_with_unusable_citation_urls | integer | Yes | |
data.rows[].metrics.answers_with_withheld_citations | integer | Yes | |
data.rows[].metrics.cited_page_brand_mention_rate | number | null | Yes | |
data.rows[].metrics.cited_page_brand_mentions | integer | null | Yes | |
data.rows[].metrics.cited_page_competitor_mention_rates | object | Yes | |
data.rows[].metrics.cited_page_competitor_mention_rates.[key] | number | null | No | Value for each key. |
data.rows[].metrics.cited_page_competitor_mentions | object | Yes | |
data.rows[].metrics.cited_page_competitor_mentions.[key] | integer | null | No | Value for each key. |
data.rows[].metrics.citing_answers | integer | Yes | |
data.rows[].metrics.citing_share_of_answers_with_displayable_citations | number | null | Yes | |
data.rows[].metrics.content_type_answer_url_pairs | object | Yes | |
data.rows[].metrics.content_type_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.ownership_answer_url_pairs | object | Yes | |
data.rows[].metrics.ownership_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.scheduled_samples | integer | Yes | |
data.rows[].metrics.source_channel_answer_url_pairs | object | Yes | |
data.rows[].metrics.source_channel_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.unique_domains | integer | Yes | |
data.rows[].metrics.unique_urls | integer | Yes | |
data.rows[].metrics.urls_with_brand_mention_review | integer | Yes | |
data.rows[].metrics.urls_with_competitor_mention_review | object | Yes | |
data.rows[].metrics.urls_with_competitor_mention_review.[key] | integer | No | Value for each key. |
data.rows[].metrics.valid_answers | integer | Yes | |
data.rows[].ownership | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | Yes | |
data.rows[].ownership_rank | integer | null | Yes | |
data.rows[].page | object | null | Yes | |
data.rows[].page.brand_mentioned_on_page | boolean | null | Conditional | |
data.rows[].page.checked_at | string | null | Conditional | |
data.rows[].page.classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.rows[].page.classification_confidence | number | No | |
data.rows[].page.competitors_mentioned_on_page | object | Conditional | |
data.rows[].page.competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.rows[].page.content_type | string | Conditional | |
data.rows[].page.content_type_basis | "review" | "url_pattern" | "unknown" | Conditional | |
data.rows[].page.evidence_reference | string | null | Conditional | |
data.rows[].page.page_evidence_status | "reviewed" | "unknown" | Conditional | |
data.rows[].page.page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.rows[].page.page_type_confidence | number | null | No | |
data.rows[].page.social_publisher | object | No | |
data.rows[].page.social_publisher.entity_id | string | Conditional | |
data.rows[].page.social_publisher.profile_url | string | Conditional | |
data.rows[].page.source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.rows[].page.source_channel | string | Conditional | |
data.rows[].page.source_channel_basis | "review" | "url_pattern" | "unknown" | Conditional | |
data.rows[].page.url | string | Conditional | |
data.rows[].page.url_pattern_basis | string | null | Conditional | |
data.rows[].rank | integer | null | Yes | |
data.rows[].social_platform | "linkedin" | "reddit" | "youtube" | No | |
data.rows[].social_publisher_metrics | object | No | |
data.rows[].social_publisher_metrics.answers_with_displayable_citations | integer | Conditional | |
data.rows[].social_publisher_metrics.brand | object | Conditional | |
data.rows[].social_publisher_metrics.brand.answer_url_pairs | integer | Conditional | |
data.rows[].social_publisher_metrics.brand.citation_rate | number | null | Conditional | |
data.rows[].social_publisher_metrics.brand.citing_answers | integer | Conditional | |
data.rows[].social_publisher_metrics.competitors | object | Conditional | |
data.rows[].social_publisher_metrics.competitors.[key] | object | No | Value for each key. |
data.rows[].social_publisher_metrics.unknown_publisher | object | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.answer_url_pairs | integer | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.citation_rate | number | null | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.citing_answers | integer | Conditional | |
data.section | "domains" | "urls" | "timeline" | "channels" | "prompts" | "social_timeline" | Yes | |
data.social_platform | "linkedin" | "reddit" | "youtube" | No | |
data.source_channel_composition | array of object | Yes | |
data.source_channel_composition[].answer_url_pairs | integer | Yes | |
data.source_channel_composition[].unique_urls | integer | Yes | |
data.source_channel_composition[].value | string | Yes | |
data.summary | object | Yes | |
data.summary.answer_mentions | object | Yes | |
data.summary.answer_mentions.brand_mention_answers | integer | Yes | |
data.summary.answer_mentions.competitor_mention_answers | object | Yes | |
data.summary.answer_mentions.competitor_mention_answers.[key] | integer | No | Value for each key. |
data.summary.answer_url_pairs | integer | Yes | |
data.summary.answers_with_displayable_citations | integer | Yes | |
data.summary.answers_with_recorded_citations | integer | Yes | |
data.summary.answers_with_unusable_citation_urls | integer | Yes | |
data.summary.answers_with_withheld_citations | integer | Yes | |
data.summary.cited_page_brand_mention_rate | number | null | Yes | |
data.summary.cited_page_brand_mentions | integer | null | Yes | |
data.summary.cited_page_competitor_mention_rates | object | Yes | |
data.summary.cited_page_competitor_mention_rates.[key] | number | null | No | Value for each key. |
data.summary.cited_page_competitor_mentions | object | Yes | |
data.summary.cited_page_competitor_mentions.[key] | integer | null | No | Value for each key. |
data.summary.citing_answers | integer | Yes | |
data.summary.citing_share_of_answers_with_displayable_citations | number | null | Yes | |
data.summary.content_type_answer_url_pairs | object | Yes | |
data.summary.content_type_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.ownership_answer_url_pairs | object | Yes | |
data.summary.ownership_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.scheduled_samples | integer | Yes | |
data.summary.source_channel_answer_url_pairs | object | Yes | |
data.summary.source_channel_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.unique_domains | integer | Yes | |
data.summary.unique_urls | integer | Yes | |
data.summary.urls_with_brand_mention_review | integer | Yes | |
data.summary.urls_with_competitor_mention_review | object | Yes | |
data.summary.urls_with_competitor_mention_review.[key] | integer | No | Value for each key. |
data.summary.valid_answers | integer | Yes | |
data.total_rows | integer | Yes | |
data.url | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.growth | object | Yes | |
data.growth.brand_id | string | Yes | |
data.growth.comparison_coverage | object | Yes | |
data.growth.comparison_coverage.current_samples | integer | Yes | |
data.growth.comparison_coverage.matched_pairs | integer | Yes | |
data.growth.comparison_coverage.previous_samples | integer | Yes | |
data.growth.comparison_status | "no_baseline" | "partial" | "complete" | Yes | |
data.growth.current | object | Yes | |
data.growth.current.answers | integer | Yes | |
data.growth.current.citations | integer | Yes | |
data.growth.current.month | string | Yes | |
data.growth.current.pages | integer | Yes | |
data.growth.current.websites | integer | Yes | |
data.growth.history | array of object | Yes | |
data.growth.history[].answers | integer | Yes | |
data.growth.history[].citations | integer | Yes | |
data.growth.history[].month | string | Yes | |
data.growth.history[].pages | integer | Yes | |
data.growth.history[].websites | integer | Yes | |
data.growth.page_changes | object | null | Yes | |
data.growth.page_changes.kept | integer | Conditional | |
data.growth.page_changes.lost | integer | Conditional | |
data.growth.page_changes.new | integer | Conditional | |
data.growth.pages | array of object | Yes | |
data.growth.pages[].change | "new" | "lost" | Yes | |
data.growth.pages[].domain | string | Yes | |
data.growth.pages[].url | string | Yes | |
data.growth.previous | object | Yes | |
data.growth.previous.answers | integer | Yes | |
data.growth.previous.citations | integer | Yes | |
data.growth.previous.month | string | Yes | |
data.growth.previous.pages | integer | Yes | |
data.growth.previous.websites | integer | Yes | |
data.growth.report_id | string | null | Yes | |
data.growth.total_changed_pages | integer | Yes | |
data.growth.website_changes | object | null | Yes | |
data.growth.website_changes.kept | integer | Conditional | |
data.growth.website_changes.lost | integer | Conditional | |
data.growth.website_changes.new | integer | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Citation Analyticscitations_prompts
Open this request with Python and TypeScript examples
- Path
datasetiscitations. - Query
sectionisprompts.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "citations" | Yes | |
audience_id | query | string (uuid) | null | No | Current audience assignment. Requires prompts:read. |
product_id | query | string (uuid) | null | No | Current product assignment. Requires prompts:read. |
service_id | query | string (uuid) | null | No | Current service assignment. Requires prompts:read. |
group_id | query | string (uuid) | null | No | Current prompt group assignment. Requires prompts:read. |
stage | query | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | Current prompt buyer stage. Requires prompts:read. |
brand_id | query | string (uuid) | Yes | |
report_id | query | string (uuid) | null | No | |
start_at | query | string (date-time) | null | No | |
end_at | query | string (date-time) | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
provider | query | string | null | No | Filter by source label. Available labels include official_api, collector_a, collector_b, collector_c, collector_d, collector_e, collector_f, collector_g, collector_h. |
prompt_id | query | string (uuid) | null | No | |
prompt_version | query | integer | null | No | |
limit | query | integer | No | |
cursor | query | string | null | No | |
page_type | query | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | null | No | |
include_page_details | query | boolean | No | |
url | query | string | null | No | |
ownership | query | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | No | |
social_platform | query | "linkedin" | "reddit" | "youtube" | null | No | |
location_id | query | string (uuid) | No | |
group_by | query | "location" | "city" | "region" | No | |
month | query | string | null | No | Use with section=growth. |
previous_month | query | string | null | No | Use with section=growth. |
topic_id | query | string | null | No | Use with section=growth. |
section | query | "prompts" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/citations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'section=prompts'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.content_composition | array of object | Yes | |
data.content_composition[].answer_url_pairs | integer | Yes | |
data.content_composition[].unique_urls | integer | Yes | |
data.content_composition[].value | string | Yes | |
data.ownership | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | Yes | |
data.ownership_basis | "pinned_analysis_configuration" | "unknown" | Yes | |
data.ownership_composition | array of object | Yes | |
data.ownership_composition[].answer_url_pairs | integer | Yes | |
data.ownership_composition[].unique_urls | integer | Yes | |
data.ownership_composition[].value | string | Yes | |
data.page_type_composition | array of object | No | |
data.page_type_composition[].answer_url_pairs | integer | Conditional | |
data.page_type_composition[].unique_urls | integer | Conditional | |
data.page_type_composition[].value | string | Conditional | |
data.report | object | Yes | |
data.report.analysis_version | string | null | Yes | |
data.report.brand_id | string | Yes | |
data.report.comparison_set_version | string | null | Yes | |
data.report.end_at | string | Yes | |
data.report.generated_at | string | null | Yes | |
data.report.report_id | string | null | Yes | |
data.report.segmentation | object | null | Yes | |
data.report.segmentation.audience_id | string | null | Conditional | |
data.report.segmentation.basis | "current_prompt_metadata" | Conditional | |
data.report.segmentation.group_id | string | null | Conditional | |
data.report.segmentation.product_id | string | null | Conditional | |
data.report.segmentation.service_id | string | null | Conditional | |
data.report.segmentation.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Conditional | |
data.report.start_at | string | Yes | |
data.rows | array of object | Yes | |
data.rows[].dimension | object | null | Yes | |
data.rows[].dimension.ai_search | string | null | Conditional | The AI search product the answer came from, such as google_ai_overviews. |
data.rows[].dimension.comparison_set_version | string | null | Conditional | |
data.rows[].dimension.date | string | null | Conditional | |
data.rows[].dimension.engine | string | null | Conditional | |
data.rows[].dimension.prompt_id | string | null | Conditional | |
data.rows[].dimension.prompt_version | integer | null | Conditional | |
data.rows[].dimension.provider | string | null | Conditional | |
data.rows[].dimension.source_cohort | object | null | Conditional | |
data.rows[].dimension.source_cohort.[key] | string | null | No | Value for each key. |
data.rows[].domain | string | null | Yes | |
data.rows[].matched_domain | string | null | Yes | |
data.rows[].matched_entity_id | string | null | Yes | |
data.rows[].metrics | object | Yes | |
data.rows[].metrics.answer_mentions | object | Yes | |
data.rows[].metrics.answer_mentions.brand_mention_answers | integer | Yes | |
data.rows[].metrics.answer_mentions.competitor_mention_answers | object | Yes | |
data.rows[].metrics.answer_mentions.competitor_mention_answers.[key] | integer | No | Value for each key. |
data.rows[].metrics.answer_url_pairs | integer | Yes | |
data.rows[].metrics.answers_with_displayable_citations | integer | Yes | |
data.rows[].metrics.answers_with_recorded_citations | integer | Yes | |
data.rows[].metrics.answers_with_unusable_citation_urls | integer | Yes | |
data.rows[].metrics.answers_with_withheld_citations | integer | Yes | |
data.rows[].metrics.cited_page_brand_mention_rate | number | null | Yes | |
data.rows[].metrics.cited_page_brand_mentions | integer | null | Yes | |
data.rows[].metrics.cited_page_competitor_mention_rates | object | Yes | |
data.rows[].metrics.cited_page_competitor_mention_rates.[key] | number | null | No | Value for each key. |
data.rows[].metrics.cited_page_competitor_mentions | object | Yes | |
data.rows[].metrics.cited_page_competitor_mentions.[key] | integer | null | No | Value for each key. |
data.rows[].metrics.citing_answers | integer | Yes | |
data.rows[].metrics.citing_share_of_answers_with_displayable_citations | number | null | Yes | |
data.rows[].metrics.content_type_answer_url_pairs | object | Yes | |
data.rows[].metrics.content_type_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.ownership_answer_url_pairs | object | Yes | |
data.rows[].metrics.ownership_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.scheduled_samples | integer | Yes | |
data.rows[].metrics.source_channel_answer_url_pairs | object | Yes | |
data.rows[].metrics.source_channel_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.unique_domains | integer | Yes | |
data.rows[].metrics.unique_urls | integer | Yes | |
data.rows[].metrics.urls_with_brand_mention_review | integer | Yes | |
data.rows[].metrics.urls_with_competitor_mention_review | object | Yes | |
data.rows[].metrics.urls_with_competitor_mention_review.[key] | integer | No | Value for each key. |
data.rows[].metrics.valid_answers | integer | Yes | |
data.rows[].ownership | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | Yes | |
data.rows[].ownership_rank | integer | null | Yes | |
data.rows[].page | object | null | Yes | |
data.rows[].page.brand_mentioned_on_page | boolean | null | Conditional | |
data.rows[].page.checked_at | string | null | Conditional | |
data.rows[].page.classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.rows[].page.classification_confidence | number | No | |
data.rows[].page.competitors_mentioned_on_page | object | Conditional | |
data.rows[].page.competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.rows[].page.content_type | string | Conditional | |
data.rows[].page.content_type_basis | "review" | "url_pattern" | "unknown" | Conditional | |
data.rows[].page.evidence_reference | string | null | Conditional | |
data.rows[].page.page_evidence_status | "reviewed" | "unknown" | Conditional | |
data.rows[].page.page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.rows[].page.page_type_confidence | number | null | No | |
data.rows[].page.social_publisher | object | No | |
data.rows[].page.social_publisher.entity_id | string | Conditional | |
data.rows[].page.social_publisher.profile_url | string | Conditional | |
data.rows[].page.source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.rows[].page.source_channel | string | Conditional | |
data.rows[].page.source_channel_basis | "review" | "url_pattern" | "unknown" | Conditional | |
data.rows[].page.url | string | Conditional | |
data.rows[].page.url_pattern_basis | string | null | Conditional | |
data.rows[].rank | integer | null | Yes | |
data.rows[].social_platform | "linkedin" | "reddit" | "youtube" | No | |
data.rows[].social_publisher_metrics | object | No | |
data.rows[].social_publisher_metrics.answers_with_displayable_citations | integer | Conditional | |
data.rows[].social_publisher_metrics.brand | object | Conditional | |
data.rows[].social_publisher_metrics.brand.answer_url_pairs | integer | Conditional | |
data.rows[].social_publisher_metrics.brand.citation_rate | number | null | Conditional | |
data.rows[].social_publisher_metrics.brand.citing_answers | integer | Conditional | |
data.rows[].social_publisher_metrics.competitors | object | Conditional | |
data.rows[].social_publisher_metrics.competitors.[key] | object | No | Value for each key. |
data.rows[].social_publisher_metrics.unknown_publisher | object | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.answer_url_pairs | integer | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.citation_rate | number | null | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.citing_answers | integer | Conditional | |
data.section | "domains" | "urls" | "timeline" | "channels" | "prompts" | "social_timeline" | Yes | |
data.social_platform | "linkedin" | "reddit" | "youtube" | No | |
data.source_channel_composition | array of object | Yes | |
data.source_channel_composition[].answer_url_pairs | integer | Yes | |
data.source_channel_composition[].unique_urls | integer | Yes | |
data.source_channel_composition[].value | string | Yes | |
data.summary | object | Yes | |
data.summary.answer_mentions | object | Yes | |
data.summary.answer_mentions.brand_mention_answers | integer | Yes | |
data.summary.answer_mentions.competitor_mention_answers | object | Yes | |
data.summary.answer_mentions.competitor_mention_answers.[key] | integer | No | Value for each key. |
data.summary.answer_url_pairs | integer | Yes | |
data.summary.answers_with_displayable_citations | integer | Yes | |
data.summary.answers_with_recorded_citations | integer | Yes | |
data.summary.answers_with_unusable_citation_urls | integer | Yes | |
data.summary.answers_with_withheld_citations | integer | Yes | |
data.summary.cited_page_brand_mention_rate | number | null | Yes | |
data.summary.cited_page_brand_mentions | integer | null | Yes | |
data.summary.cited_page_competitor_mention_rates | object | Yes | |
data.summary.cited_page_competitor_mention_rates.[key] | number | null | No | Value for each key. |
data.summary.cited_page_competitor_mentions | object | Yes | |
data.summary.cited_page_competitor_mentions.[key] | integer | null | No | Value for each key. |
data.summary.citing_answers | integer | Yes | |
data.summary.citing_share_of_answers_with_displayable_citations | number | null | Yes | |
data.summary.content_type_answer_url_pairs | object | Yes | |
data.summary.content_type_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.ownership_answer_url_pairs | object | Yes | |
data.summary.ownership_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.scheduled_samples | integer | Yes | |
data.summary.source_channel_answer_url_pairs | object | Yes | |
data.summary.source_channel_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.unique_domains | integer | Yes | |
data.summary.unique_urls | integer | Yes | |
data.summary.urls_with_brand_mention_review | integer | Yes | |
data.summary.urls_with_competitor_mention_review | object | Yes | |
data.summary.urls_with_competitor_mention_review.[key] | integer | No | Value for each key. |
data.summary.valid_answers | integer | Yes | |
data.total_rows | integer | Yes | |
data.url | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.growth | object | Yes | |
data.growth.brand_id | string | Yes | |
data.growth.comparison_coverage | object | Yes | |
data.growth.comparison_coverage.current_samples | integer | Yes | |
data.growth.comparison_coverage.matched_pairs | integer | Yes | |
data.growth.comparison_coverage.previous_samples | integer | Yes | |
data.growth.comparison_status | "no_baseline" | "partial" | "complete" | Yes | |
data.growth.current | object | Yes | |
data.growth.current.answers | integer | Yes | |
data.growth.current.citations | integer | Yes | |
data.growth.current.month | string | Yes | |
data.growth.current.pages | integer | Yes | |
data.growth.current.websites | integer | Yes | |
data.growth.history | array of object | Yes | |
data.growth.history[].answers | integer | Yes | |
data.growth.history[].citations | integer | Yes | |
data.growth.history[].month | string | Yes | |
data.growth.history[].pages | integer | Yes | |
data.growth.history[].websites | integer | Yes | |
data.growth.page_changes | object | null | Yes | |
data.growth.page_changes.kept | integer | Conditional | |
data.growth.page_changes.lost | integer | Conditional | |
data.growth.page_changes.new | integer | Conditional | |
data.growth.pages | array of object | Yes | |
data.growth.pages[].change | "new" | "lost" | Yes | |
data.growth.pages[].domain | string | Yes | |
data.growth.pages[].url | string | Yes | |
data.growth.previous | object | Yes | |
data.growth.previous.answers | integer | Yes | |
data.growth.previous.citations | integer | Yes | |
data.growth.previous.month | string | Yes | |
data.growth.previous.pages | integer | Yes | |
data.growth.previous.websites | integer | Yes | |
data.growth.report_id | string | null | Yes | |
data.growth.total_changed_pages | integer | Yes | |
data.growth.website_changes | object | null | Yes | |
data.growth.website_changes.kept | integer | Conditional | |
data.growth.website_changes.lost | integer | Conditional | |
data.growth.website_changes.new | integer | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Citation Analyticscitations_social_timeline
Open this request with Python and TypeScript examples
- Path
datasetiscitations. - Query
sectionissocial_timeline.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
dataset | path | "citations" | Yes | |
audience_id | query | string (uuid) | null | No | Current audience assignment. Requires prompts:read. |
product_id | query | string (uuid) | null | No | Current product assignment. Requires prompts:read. |
service_id | query | string (uuid) | null | No | Current service assignment. Requires prompts:read. |
group_id | query | string (uuid) | null | No | Current prompt group assignment. Requires prompts:read. |
stage | query | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | Current prompt buyer stage. Requires prompts:read. |
brand_id | query | string (uuid) | Yes | |
report_id | query | string (uuid) | null | No | |
start_at | query | string (date-time) | null | No | |
end_at | query | string (date-time) | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
provider | query | string | null | No | Filter by source label. Available labels include official_api, collector_a, collector_b, collector_c, collector_d, collector_e, collector_f, collector_g, collector_h. |
prompt_id | query | string (uuid) | null | No | |
prompt_version | query | integer | null | No | |
limit | query | integer | No | |
cursor | query | string | null | No | |
page_type | query | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | null | No | |
include_page_details | query | boolean | No | |
url | query | string | null | No | |
ownership | query | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | No | |
social_platform | query | "linkedin" | "reddit" | "youtube" | null | No | |
location_id | query | string (uuid) | No | |
group_by | query | "location" | "city" | "region" | No | |
month | query | string | null | No | Use with section=growth. |
previous_month | query | string | null | No | Use with section=growth. |
topic_id | query | string | null | No | Use with section=growth. |
section | query | "social_timeline" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/analytics/citations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'section=social_timeline'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.content_composition | array of object | Yes | |
data.content_composition[].answer_url_pairs | integer | Yes | |
data.content_composition[].unique_urls | integer | Yes | |
data.content_composition[].value | string | Yes | |
data.ownership | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | Yes | |
data.ownership_basis | "pinned_analysis_configuration" | "unknown" | Yes | |
data.ownership_composition | array of object | Yes | |
data.ownership_composition[].answer_url_pairs | integer | Yes | |
data.ownership_composition[].unique_urls | integer | Yes | |
data.ownership_composition[].value | string | Yes | |
data.page_type_composition | array of object | No | |
data.page_type_composition[].answer_url_pairs | integer | Conditional | |
data.page_type_composition[].unique_urls | integer | Conditional | |
data.page_type_composition[].value | string | Conditional | |
data.report | object | Yes | |
data.report.analysis_version | string | null | Yes | |
data.report.brand_id | string | Yes | |
data.report.comparison_set_version | string | null | Yes | |
data.report.end_at | string | Yes | |
data.report.generated_at | string | null | Yes | |
data.report.report_id | string | null | Yes | |
data.report.segmentation | object | null | Yes | |
data.report.segmentation.audience_id | string | null | Conditional | |
data.report.segmentation.basis | "current_prompt_metadata" | Conditional | |
data.report.segmentation.group_id | string | null | Conditional | |
data.report.segmentation.product_id | string | null | Conditional | |
data.report.segmentation.service_id | string | null | Conditional | |
data.report.segmentation.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Conditional | |
data.report.start_at | string | Yes | |
data.rows | array of object | Yes | |
data.rows[].dimension | object | null | Yes | |
data.rows[].dimension.ai_search | string | null | Conditional | The AI search product the answer came from, such as google_ai_overviews. |
data.rows[].dimension.comparison_set_version | string | null | Conditional | |
data.rows[].dimension.date | string | null | Conditional | |
data.rows[].dimension.engine | string | null | Conditional | |
data.rows[].dimension.prompt_id | string | null | Conditional | |
data.rows[].dimension.prompt_version | integer | null | Conditional | |
data.rows[].dimension.provider | string | null | Conditional | |
data.rows[].dimension.source_cohort | object | null | Conditional | |
data.rows[].dimension.source_cohort.[key] | string | null | No | Value for each key. |
data.rows[].domain | string | null | Yes | |
data.rows[].matched_domain | string | null | Yes | |
data.rows[].matched_entity_id | string | null | Yes | |
data.rows[].metrics | object | Yes | |
data.rows[].metrics.answer_mentions | object | Yes | |
data.rows[].metrics.answer_mentions.brand_mention_answers | integer | Yes | |
data.rows[].metrics.answer_mentions.competitor_mention_answers | object | Yes | |
data.rows[].metrics.answer_mentions.competitor_mention_answers.[key] | integer | No | Value for each key. |
data.rows[].metrics.answer_url_pairs | integer | Yes | |
data.rows[].metrics.answers_with_displayable_citations | integer | Yes | |
data.rows[].metrics.answers_with_recorded_citations | integer | Yes | |
data.rows[].metrics.answers_with_unusable_citation_urls | integer | Yes | |
data.rows[].metrics.answers_with_withheld_citations | integer | Yes | |
data.rows[].metrics.cited_page_brand_mention_rate | number | null | Yes | |
data.rows[].metrics.cited_page_brand_mentions | integer | null | Yes | |
data.rows[].metrics.cited_page_competitor_mention_rates | object | Yes | |
data.rows[].metrics.cited_page_competitor_mention_rates.[key] | number | null | No | Value for each key. |
data.rows[].metrics.cited_page_competitor_mentions | object | Yes | |
data.rows[].metrics.cited_page_competitor_mentions.[key] | integer | null | No | Value for each key. |
data.rows[].metrics.citing_answers | integer | Yes | |
data.rows[].metrics.citing_share_of_answers_with_displayable_citations | number | null | Yes | |
data.rows[].metrics.content_type_answer_url_pairs | object | Yes | |
data.rows[].metrics.content_type_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.ownership_answer_url_pairs | object | Yes | |
data.rows[].metrics.ownership_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.scheduled_samples | integer | Yes | |
data.rows[].metrics.source_channel_answer_url_pairs | object | Yes | |
data.rows[].metrics.source_channel_answer_url_pairs.[key] | integer | No | Value for each key. |
data.rows[].metrics.unique_domains | integer | Yes | |
data.rows[].metrics.unique_urls | integer | Yes | |
data.rows[].metrics.urls_with_brand_mention_review | integer | Yes | |
data.rows[].metrics.urls_with_competitor_mention_review | object | Yes | |
data.rows[].metrics.urls_with_competitor_mention_review.[key] | integer | No | Value for each key. |
data.rows[].metrics.valid_answers | integer | Yes | |
data.rows[].ownership | "brand_owned" | "registered_competitor" | "other_external" | "unknown" | null | Yes | |
data.rows[].ownership_rank | integer | null | Yes | |
data.rows[].page | object | null | Yes | |
data.rows[].page.brand_mentioned_on_page | boolean | null | Conditional | |
data.rows[].page.checked_at | string | null | Conditional | |
data.rows[].page.classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.rows[].page.classification_confidence | number | No | |
data.rows[].page.competitors_mentioned_on_page | object | Conditional | |
data.rows[].page.competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.rows[].page.content_type | string | Conditional | |
data.rows[].page.content_type_basis | "review" | "url_pattern" | "unknown" | Conditional | |
data.rows[].page.evidence_reference | string | null | Conditional | |
data.rows[].page.page_evidence_status | "reviewed" | "unknown" | Conditional | |
data.rows[].page.page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.rows[].page.page_type_confidence | number | null | No | |
data.rows[].page.social_publisher | object | No | |
data.rows[].page.social_publisher.entity_id | string | Conditional | |
data.rows[].page.social_publisher.profile_url | string | Conditional | |
data.rows[].page.source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.rows[].page.source_channel | string | Conditional | |
data.rows[].page.source_channel_basis | "review" | "url_pattern" | "unknown" | Conditional | |
data.rows[].page.url | string | Conditional | |
data.rows[].page.url_pattern_basis | string | null | Conditional | |
data.rows[].rank | integer | null | Yes | |
data.rows[].social_platform | "linkedin" | "reddit" | "youtube" | No | |
data.rows[].social_publisher_metrics | object | No | |
data.rows[].social_publisher_metrics.answers_with_displayable_citations | integer | Conditional | |
data.rows[].social_publisher_metrics.brand | object | Conditional | |
data.rows[].social_publisher_metrics.brand.answer_url_pairs | integer | Conditional | |
data.rows[].social_publisher_metrics.brand.citation_rate | number | null | Conditional | |
data.rows[].social_publisher_metrics.brand.citing_answers | integer | Conditional | |
data.rows[].social_publisher_metrics.competitors | object | Conditional | |
data.rows[].social_publisher_metrics.competitors.[key] | object | No | Value for each key. |
data.rows[].social_publisher_metrics.unknown_publisher | object | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.answer_url_pairs | integer | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.citation_rate | number | null | Conditional | |
data.rows[].social_publisher_metrics.unknown_publisher.citing_answers | integer | Conditional | |
data.section | "domains" | "urls" | "timeline" | "channels" | "prompts" | "social_timeline" | Yes | |
data.social_platform | "linkedin" | "reddit" | "youtube" | No | |
data.source_channel_composition | array of object | Yes | |
data.source_channel_composition[].answer_url_pairs | integer | Yes | |
data.source_channel_composition[].unique_urls | integer | Yes | |
data.source_channel_composition[].value | string | Yes | |
data.summary | object | Yes | |
data.summary.answer_mentions | object | Yes | |
data.summary.answer_mentions.brand_mention_answers | integer | Yes | |
data.summary.answer_mentions.competitor_mention_answers | object | Yes | |
data.summary.answer_mentions.competitor_mention_answers.[key] | integer | No | Value for each key. |
data.summary.answer_url_pairs | integer | Yes | |
data.summary.answers_with_displayable_citations | integer | Yes | |
data.summary.answers_with_recorded_citations | integer | Yes | |
data.summary.answers_with_unusable_citation_urls | integer | Yes | |
data.summary.answers_with_withheld_citations | integer | Yes | |
data.summary.cited_page_brand_mention_rate | number | null | Yes | |
data.summary.cited_page_brand_mentions | integer | null | Yes | |
data.summary.cited_page_competitor_mention_rates | object | Yes | |
data.summary.cited_page_competitor_mention_rates.[key] | number | null | No | Value for each key. |
data.summary.cited_page_competitor_mentions | object | Yes | |
data.summary.cited_page_competitor_mentions.[key] | integer | null | No | Value for each key. |
data.summary.citing_answers | integer | Yes | |
data.summary.citing_share_of_answers_with_displayable_citations | number | null | Yes | |
data.summary.content_type_answer_url_pairs | object | Yes | |
data.summary.content_type_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.ownership_answer_url_pairs | object | Yes | |
data.summary.ownership_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.scheduled_samples | integer | Yes | |
data.summary.source_channel_answer_url_pairs | object | Yes | |
data.summary.source_channel_answer_url_pairs.[key] | integer | No | Value for each key. |
data.summary.unique_domains | integer | Yes | |
data.summary.unique_urls | integer | Yes | |
data.summary.urls_with_brand_mention_review | integer | Yes | |
data.summary.urls_with_competitor_mention_review | object | Yes | |
data.summary.urls_with_competitor_mention_review.[key] | integer | No | Value for each key. |
data.summary.valid_answers | integer | Yes | |
data.total_rows | integer | Yes | |
data.url | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.growth | object | Yes | |
data.growth.brand_id | string | Yes | |
data.growth.comparison_coverage | object | Yes | |
data.growth.comparison_coverage.current_samples | integer | Yes | |
data.growth.comparison_coverage.matched_pairs | integer | Yes | |
data.growth.comparison_coverage.previous_samples | integer | Yes | |
data.growth.comparison_status | "no_baseline" | "partial" | "complete" | Yes | |
data.growth.current | object | Yes | |
data.growth.current.answers | integer | Yes | |
data.growth.current.citations | integer | Yes | |
data.growth.current.month | string | Yes | |
data.growth.current.pages | integer | Yes | |
data.growth.current.websites | integer | Yes | |
data.growth.history | array of object | Yes | |
data.growth.history[].answers | integer | Yes | |
data.growth.history[].citations | integer | Yes | |
data.growth.history[].month | string | Yes | |
data.growth.history[].pages | integer | Yes | |
data.growth.history[].websites | integer | Yes | |
data.growth.page_changes | object | null | Yes | |
data.growth.page_changes.kept | integer | Conditional | |
data.growth.page_changes.lost | integer | Conditional | |
data.growth.page_changes.new | integer | Conditional | |
data.growth.pages | array of object | Yes | |
data.growth.pages[].change | "new" | "lost" | Yes | |
data.growth.pages[].domain | string | Yes | |
data.growth.pages[].url | string | Yes | |
data.growth.previous | object | Yes | |
data.growth.previous.answers | integer | Yes | |
data.growth.previous.citations | integer | Yes | |
data.growth.previous.month | string | Yes | |
data.growth.previous.pages | integer | Yes | |
data.growth.previous.websites | integer | Yes | |
data.growth.report_id | string | null | Yes | |
data.growth.total_changed_pages | integer | Yes | |
data.growth.website_changes | object | null | Yes | |
data.growth.website_changes.kept | integer | Conditional | |
data.growth.website_changes.lost | integer | Conditional | |
data.growth.website_changes.new | integer | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
POST /v2/attribution/events
Ingest consented attribution events
Ingest consented attribution eventsdefault
Open this request with Python and TypeScript examples
Authentication and access
- Authentication
- Bearer API key
- Scopes
- attribution:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"events": [
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"consent_reference": "example",
"external_event_id": "example",
"kind": "referral",
"occurred_at": "2026-11-06T00:00:00Z",
"session_id": "example",
"source": "example"
}
],
"max_units": 1
}| Name | Type | Required | Description |
|---|---|---|---|
events | array of object | Yes | |
events[].brand_id | string (uuid) | Yes | |
events[].consent_reference | string | null | Yes | |
events[].conversion_id | string | null | null | No | |
events[].country | string | null | No | Optional consented ISO 3166-1 alpha-2 country the customer supplies for this event. Absent or null means unknown; never inferred from IP, address or other unconsented data. |
events[].currency | string | null | No | |
events[].external_event_id | string | null | Yes | |
events[].kind | "referral" | "conversion" | "refund" | Yes | |
events[].language | string | null | No | Optional consented language tag for this event (matched case-insensitively). Absent or null means unknown. |
events[].location_id | string (uuid) | null | No | Optional location of the event's brand. A location that is not one of the brand's locations rejects that event by index (code location_not_found). Absent or null means unknown. |
events[].occurred_at | string (date-time) | Yes | |
events[].referrer_url | string (uri) | null | No | |
events[].session_id | string | null | Yes | |
events[].signals | object | No | Optional consented customer evidence; no raw email, IP or fingerprint. An identity reference must be deterministic and authorized. |
events[].signals.campaign_source_hint | string | null | No | |
events[].signals.prior_session_ref | string | null | No | |
events[].signals.self_reported_source | string | null | No | |
events[].source | string | null | Yes | |
events[].utm_source | string | null | null | No | |
events[].value_minor | integer | null | No | |
max_units | integer | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/attribution/events" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Ingest consented attribution events result.
| Name | Type | Required | Description |
|---|---|---|---|
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"accepted": 0,
"duplicates": 0,
"ingestion_id": "00000000-0000-4000-8000-000000000001",
"rejected": []
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accepted | integer | Yes | |
data.duplicates | integer | Yes | |
data.ingestion_id | string (uuid) | Yes | |
data.rejected | array of object | Yes | |
data.rejected[].code | string | null | Yes | |
data.rejected[].index | integer | Yes | |
data.rejected[].message | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
GET /v2/brands
List brands or discover categories
List brands or discover categoriesdefault
Open this request with Python and TypeScript examples
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
view | query | "brands" | "categories" | No | Default brands; categories returns the shared approved catalog. |
id | query | string (uuid) | No | id |
q | query | string | No | q |
category_id | query | string | null | No | category_id |
country | query | string | No | country |
include_archived | query | boolean | No | include_archived |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/brands" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
List brands or discover categories result.
| Name | Type | Required | Description |
|---|---|---|---|
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"items": [],
"view": "brands"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | object | Yes | The requested result. See the fields below for its contents. |
data.items | array of object | Yes | |
data.items[].aliases | array of string | null | Conditional | |
data.items[].business_profile | object | No | Business details used as the reference for website and listing audits. |
data.items[].business_profile.address_line1 | string | null | No | |
data.items[].business_profile.address_line2 | string | null | No | |
data.items[].business_profile.city | string | null | No | |
data.items[].business_profile.country | string | null | No | |
data.items[].business_profile.hours | object | null | No | |
data.items[].business_profile.hours.[key] | array of string | No | Value for each key. |
data.items[].business_profile.latitude | number | null | No | |
data.items[].business_profile.longitude | number | null | No | |
data.items[].business_profile.phone | string | null | No | |
data.items[].business_profile.postal_code | string | null | No | |
data.items[].business_profile.price_range | string | null | No | |
data.items[].business_profile.region | string | null | No | |
data.items[].business_profile.same_as | array of string | No | |
data.items[].business_profile.services | array of string | No | |
data.items[].business_profile.website_url | string | null | No | |
data.items[].category_ids | array of string | null | Conditional | |
data.items[].competitors | array of object | Conditional | |
data.items[].competitors[].aliases | array of string | null | Conditional | |
data.items[].competitors[].domains | array of string | null | Conditional | |
data.items[].competitors[].id | string (uuid) | Conditional | |
data.items[].competitors[].name | string | null | Conditional | |
data.items[].created_at | string (date-time) | Conditional | |
data.items[].domains | array of string | null | Conditional | |
data.items[].facts | array of object | No | |
data.items[].facts[].id | string (uuid) | Conditional | |
data.items[].facts[].predicate | string | null | Conditional | |
data.items[].facts[].source_urls | array of string (uri) | Conditional | |
data.items[].facts[].status | "proposed" | "approved" | "inactive" | Conditional | |
data.items[].facts[].subject | string | null | Conditional | |
data.items[].facts[].valid_from | string (date-time) | Conditional | |
data.items[].facts[].valid_to | string (date-time) | null | No | |
data.items[].facts[].value | string | Conditional | |
data.items[].id | string (uuid) | string | null | Yes | |
data.items[].locations | array of object | No | |
data.items[].locations[].address_line1 | string | null | No | |
data.items[].locations[].address_line2 | string | null | No | |
data.items[].locations[].categories | array of string | object | No | |
data.items[].locations[].categories[].category_id | string | null | No | |
data.items[].locations[].categories[].name | string | Conditional | |
data.items[].locations[].city | string | Conditional | |
data.items[].locations[].country | string | Conditional | |
data.items[].locations[].hours | object | No | |
data.items[].locations[].hours.special_dates | object | No | |
data.items[].locations[].hours.special_dates.[key] | array of object | No | Value for each key. |
data.items[].locations[].hours.weekly | object | No | |
data.items[].locations[].hours.weekly.[key] | array of object | No | Value for each key. |
data.items[].locations[].id | string (uuid) | null | No | |
data.items[].locations[].latitude | number | null | No | |
data.items[].locations[].longitude | number | null | No | |
data.items[].locations[].name | string | Conditional | |
data.items[].locations[].phone | string | null | No | |
data.items[].locations[].postal_code | string | null | No | |
data.items[].locations[].radius_km | number | null | No | |
data.items[].locations[].region | string | null | No | |
data.items[].locations[].service_area | array of object | No | |
data.items[].locations[].service_area[].city | string | null | No | |
data.items[].locations[].service_area[].postal_code | string | null | No | |
data.items[].locations[].service_area[].region | string | null | No | |
data.items[].locations[].status | "active" | "paused" | "archived" | No | |
data.items[].locations[].store_code | string | Conditional | |
data.items[].locations[].website_url | string (uri) | null | No | |
data.items[].markets | array of object | Conditional | |
data.items[].markets[].city | string | null | null | No | |
data.items[].markets[].country | string | Conditional | |
data.items[].markets[].language | string | Conditional | |
data.items[].markets[].region | string | null | null | No | |
data.items[].name | string | null | Yes | |
data.items[].revision | integer | Conditional | |
data.items[].status | "active" | "archived" | "deletion_pending" | Conditional | |
data.items[].updated_at | string (date-time) | Conditional | |
data.view | "brands" | "categories" | Yes | |
data.items[].country_eligibility | "yes" | "no" | "unknown" | Conditional | |
data.items[].parent_ids | array of string | null | Conditional | |
data.items[].source | "google_business_profile" | "internal" | Conditional | |
data.items[].taxonomy_version | string | null | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
POST /v2/brands
Create a brand
Create a branddefault
Open this request with Python and TypeScript examples
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
- An inline schedule with enabled set to false. Scopes collections:write. Roles editor, owner, service. Plans Optimizer, Analyzer.
- One or more inline prompts. Scopes prompts:write. Roles editor, owner, service. Plans Optimizer, Analyzer. Billing access required.
- An enabled inline schedule. Scopes collections:write, prompts:write. Roles editor, owner, service. Plans Optimizer, Analyzer.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"category_ids": [
"gcid:plumber"
],
"domains": [
"example.com"
],
"markets": [
{
"city": "Chicago",
"country": "US",
"language": "en"
}
],
"name": "Example Plumbing",
"prompts": [
"What should homeowners compare when choosing a plumber in Chicago?",
"How do I find a plumber for an emergency repair in Chicago?"
],
"schedule": {
"enabled": false
}
}| Name | Type | Required | Description |
|---|---|---|---|
aliases | array of string | null | No | |
business_profile | object | null | No | Business details the audit compares with websites and listings. |
business_profile.address_line1 | string | null | No | |
business_profile.address_line2 | string | null | No | |
business_profile.city | string | null | No | |
business_profile.country | string | null | No | |
business_profile.hours | object | null | No | |
business_profile.hours.[key] | array of string | No | Value for each key. |
business_profile.latitude | number | null | No | |
business_profile.longitude | number | null | No | |
business_profile.phone | string | null | No | |
business_profile.postal_code | string | null | No | |
business_profile.price_range | string | null | No | |
business_profile.region | string | null | No | |
business_profile.same_as | array of string | No | |
business_profile.services | array of string | No | |
business_profile.website_url | string | null | No | |
category_ids | array of string | null | Yes | |
competitors | array of object | No | |
competitors[].aliases | array of string | null | Conditional | |
competitors[].domains | array of string | null | Conditional | |
competitors[].id | string (uuid) | Conditional | |
competitors[].name | string | null | Conditional | |
domains | array of string | null | Yes | |
locations | array of object | No | |
locations[].address_line1 | string | null | No | |
locations[].address_line2 | string | null | No | |
locations[].categories | array of string | object | No | |
locations[].categories[].category_id | string | null | No | |
locations[].categories[].name | string | Conditional | |
locations[].city | string | Conditional | |
locations[].country | string | Conditional | |
locations[].hours | object | No | |
locations[].hours.special_dates | object | No | |
locations[].hours.special_dates.[key] | array of object | No | Value for each key. |
locations[].hours.weekly | object | No | |
locations[].hours.weekly.[key] | array of object | No | Value for each key. |
locations[].id | string (uuid) | null | No | |
locations[].latitude | number | null | No | |
locations[].longitude | number | null | No | |
locations[].name | string | Conditional | |
locations[].phone | string | null | No | |
locations[].postal_code | string | null | No | |
locations[].radius_km | number | null | No | |
locations[].region | string | null | No | |
locations[].service_area | array of object | No | |
locations[].service_area[].city | string | null | No | |
locations[].service_area[].postal_code | string | null | No | |
locations[].service_area[].region | string | null | No | |
locations[].status | "active" | "paused" | "archived" | No | |
locations[].store_code | string | Conditional | |
locations[].website_url | string (uri) | null | No | |
markets | array of object | Yes | |
markets[].city | string | null | null | No | |
markets[].country | string | Yes | |
markets[].language | string | Yes | |
markets[].region | string | null | null | No | |
name | string | null | Yes | |
prompts | array of string | No | Literal prompts in the submitted order. Account limits apply. The prompts use the brand's categories and first market. |
schedule | object | object | null | No | Optional managed schedule. When enabled, it uses the first domain in `domains`. |
schedule.all_locations | boolean | No | |
schedule.allow_country_level | boolean | No | Allow a country-level answer when the source cannot apply the requested location. |
schedule.cadence_days | 1 | 3 | 7 | 14 | 30 | Conditional | |
schedule.enabled | boolean | Conditional | |
schedule.location_ids | array of string (uuid) | No | |
schedule.market | object | Conditional | ``components.schemas.Market``. |
schedule.market.city | string | null | No | |
schedule.market.country | string | Conditional | |
schedule.market.language | string | Conditional | |
schedule.market.latitude | number | null | No | |
schedule.market.location_id | string (uuid) | null | No | |
schedule.market.longitude | number | null | No | |
schedule.market.postal_code | string | null | No | |
schedule.market.region | string | null | No | |
schedule.max_credits_per_run | integer | Conditional | |
schedule.source | object | Conditional | Brave AI summaries use brave and ai_overview. Brave Ask uses brave and ai_mode. Meta AI uses meta_ai and ui_normal. Grok uses grok and ui_normal. These four sources are available on Optimizer. |
schedule.source.device | "desktop" | "mobile" | "unknown" | null | No | |
schedule.source.mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Conditional | The mode used to collect the answer. The unverified value appears only in evidence. |
schedule.source.platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Conditional | The platform where the answer was observed. |
schedule.source.provider | string | null | No | |
schedule.enabled | false | Conditional |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/brands" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 201
Create a brand result.
| Name | Type | Required | Description |
|---|---|---|---|
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"aliases": [],
"category_ids": [
"example"
],
"competitors": [],
"created_at": "2026-11-06T00:00:00Z",
"domains": [
"example"
],
"id": "00000000-0000-4000-8000-000000000001",
"markets": [
{
"country": "US",
"language": "example"
}
],
"name": "example",
"revision": 1,
"status": "active",
"updated_at": "2026-11-06T00:00:00Z"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.aliases | array of string | null | Yes | |
data.business_profile | object | No | Business details used as the reference for website and listing audits. |
data.business_profile.address_line1 | string | null | No | |
data.business_profile.address_line2 | string | null | No | |
data.business_profile.city | string | null | No | |
data.business_profile.country | string | null | No | |
data.business_profile.hours | object | null | No | |
data.business_profile.hours.[key] | array of string | No | Value for each key. |
data.business_profile.latitude | number | null | No | |
data.business_profile.longitude | number | null | No | |
data.business_profile.phone | string | null | No | |
data.business_profile.postal_code | string | null | No | |
data.business_profile.price_range | string | null | No | |
data.business_profile.region | string | null | No | |
data.business_profile.same_as | array of string | No | |
data.business_profile.services | array of string | No | |
data.business_profile.website_url | string | null | No | |
data.category_ids | array of string | null | Yes | |
data.competitors | array of object | Yes | |
data.competitors[].aliases | array of string | null | Yes | |
data.competitors[].domains | array of string | null | Yes | |
data.competitors[].id | string (uuid) | Yes | |
data.competitors[].name | string | null | Yes | |
data.created_at | string (date-time) | Yes | |
data.domains | array of string | null | Yes | |
data.facts | array of object | No | |
data.facts[].id | string (uuid) | Conditional | |
data.facts[].predicate | string | null | Conditional | |
data.facts[].source_urls | array of string (uri) | Conditional | |
data.facts[].status | "proposed" | "approved" | "inactive" | Conditional | |
data.facts[].subject | string | null | Conditional | |
data.facts[].valid_from | string (date-time) | Conditional | |
data.facts[].valid_to | string (date-time) | null | No | |
data.facts[].value | string | Conditional | |
data.id | string (uuid) | Yes | |
data.locations | array of object | No | |
data.locations[].address_line1 | string | null | No | |
data.locations[].address_line2 | string | null | No | |
data.locations[].categories | array of string | object | No | |
data.locations[].categories[].category_id | string | null | No | |
data.locations[].categories[].name | string | Conditional | |
data.locations[].city | string | Conditional | |
data.locations[].country | string | Conditional | |
data.locations[].hours | object | No | |
data.locations[].hours.special_dates | object | No | |
data.locations[].hours.special_dates.[key] | array of object | No | Value for each key. |
data.locations[].hours.weekly | object | No | |
data.locations[].hours.weekly.[key] | array of object | No | Value for each key. |
data.locations[].id | string (uuid) | null | No | |
data.locations[].latitude | number | null | No | |
data.locations[].longitude | number | null | No | |
data.locations[].name | string | Conditional | |
data.locations[].phone | string | null | No | |
data.locations[].postal_code | string | null | No | |
data.locations[].radius_km | number | null | No | |
data.locations[].region | string | null | No | |
data.locations[].service_area | array of object | No | |
data.locations[].service_area[].city | string | null | No | |
data.locations[].service_area[].postal_code | string | null | No | |
data.locations[].service_area[].region | string | null | No | |
data.locations[].status | "active" | "paused" | "archived" | No | |
data.locations[].store_code | string | Conditional | |
data.locations[].website_url | string (uri) | null | No | |
data.markets | array of object | Yes | |
data.markets[].city | string | null | null | No | |
data.markets[].country | string | Yes | |
data.markets[].language | string | Yes | |
data.markets[].region | string | null | null | No | |
data.name | string | null | Yes | |
data.prompt_ids | array of string (uuid) | No | Prompt IDs in submitted order. Pass them with workflow collect and max_units to start a run. |
data.revision | integer | Yes | |
data.schedule | object | null | No | The created schedule, or null when the schedule was paused. |
data.schedule.all_locations | boolean | No | |
data.schedule.allow_country_level | boolean | No | Allow a country-level answer when the source cannot apply the requested location. |
data.schedule.brand_id | string (uuid) | Conditional | |
data.schedule.cadence_days | 1 | 3 | 7 | 14 | 30 | Conditional | |
data.schedule.enabled | boolean | Conditional | |
data.schedule.estimated_credits_per_run | integer | null | Conditional | |
data.schedule.id | string (uuid) | Conditional | |
data.schedule.location_ids | array of string (uuid) | No | |
data.schedule.market | object | Conditional | |
data.schedule.market.city | string | null | null | No | |
data.schedule.market.country | string | Conditional | |
data.schedule.market.language | string | Conditional | |
data.schedule.market.latitude | number | null | No | |
data.schedule.market.location_id | string (uuid) | null | No | |
data.schedule.market.longitude | number | null | No | |
data.schedule.market.postal_code | string | null | No | |
data.schedule.market.region | string | null | null | No | |
data.schedule.max_units_per_run | integer | Conditional | |
data.schedule.maximum_recurring_credits_30_days | integer | null | Conditional | |
data.schedule.next_run_at | string (date-time) | null | Conditional | |
data.schedule.prompt_ids | array of string (uuid) | Conditional | |
data.schedule.prompt_set_revision | string | Conditional | |
data.schedule.source | object | Conditional | Brave AI summaries use brave and ai_overview. Brave Ask uses brave and ai_mode. Meta AI uses meta_ai and ui_normal. Grok uses grok and ui_normal. These four sources are available on Optimizer. |
data.schedule.source.device | "desktop" | "mobile" | "unknown" | null | No | |
data.schedule.source.mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Conditional | The mode used to collect the answer. The unverified value appears only in evidence. |
data.schedule.source.platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Conditional | The platform where the answer was observed. |
data.schedule.source.provider | string | null | No | |
data.schedule.website | string | null | Conditional | |
data.status | "active" | "archived" | "deletion_pending" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
GET /v2/brands/{brand_id}
Read brand settings or activity
Get Profileprofile
Open this request with Python and TypeScript examples
- Query
viewisprofile. Default isprofile.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
view | query | "profile" | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=profile'Responses
HTTP 200
Successful Response
| Name | Type | Required | Description |
|---|---|---|---|
ETag | string | No | Current quoted resource revision |
application/json
Example generated from the response schema.
{
"data": {},
"meta": {
"request_id": "00000000-0000-4000-8000-000000000001",
"as_of": "2026-01-01T00:00:00Z",
"schema_version": "1.0",
"warnings": [],
"rights_filtered": false,
"next_cursor": null,
"collected_at": null,
"next_refresh_at": null,
"stale": false
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.competitor_discovery | "suggest" | "auto_add" | No | Choose whether newly discovered competitors are suggested or added. |
data.competitors | array of object | No | |
data.competitors[].aliases | array of string | null | Conditional | |
data.competitors[].domains | array of string | null | Conditional | |
data.competitors[].id | string (uuid) | Conditional | |
data.competitors[].name | string | null | Conditional | |
data.competitors[].source | object | No | |
data.competitors[].source.kind | "tracked_answers" | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Profilelocations
Open this request with Python and TypeScript examples
- Query
viewislocations. Default isprofile.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
city | query | string | No | |
region | query | string | No | |
postal_code | query | string | No | |
store_code | query | string | No | |
cursor | query | string | No | |
status | query | "active" | "paused" | "archived" | No | |
limit | query | integer | No | |
view | query | "locations" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=locations'Responses
HTTP 200
Successful Response
| Name | Type | Required | Description |
|---|---|---|---|
ETag | string | No | Current quoted resource revision |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.items | array of object | Yes | |
data.items[].address_line1 | string | null | No | |
data.items[].address_line2 | string | null | No | |
data.items[].categories | array of string | object | No | |
data.items[].categories[].category_id | string | null | No | |
data.items[].categories[].name | string | Conditional | |
data.items[].city | string | Yes | |
data.items[].country | string | Yes | |
data.items[].hours | object | No | |
data.items[].hours.special_dates | object | No | |
data.items[].hours.special_dates.[key] | array of object | No | Value for each key. |
data.items[].hours.weekly | object | No | |
data.items[].hours.weekly.[key] | array of object | No | Value for each key. |
data.items[].id | string (uuid) | null | No | |
data.items[].latitude | number | null | No | |
data.items[].longitude | number | null | No | |
data.items[].name | string | Yes | |
data.items[].phone | string | null | No | |
data.items[].postal_code | string | null | No | |
data.items[].radius_km | number | null | No | |
data.items[].region | string | null | No | |
data.items[].service_area | array of object | No | |
data.items[].service_area[].city | string | null | No | |
data.items[].service_area[].postal_code | string | null | No | |
data.items[].service_area[].region | string | null | No | |
data.items[].status | "active" | "paused" | "archived" | No | |
data.items[].store_code | string | Yes | |
data.items[].website_url | string (uri) | null | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Voicevoice
Open this request with Python and TypeScript examples
- Query
viewisvoice. Default isprofile.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
view | query | "voice" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=voice'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.revision | integer | Yes | |
data.voice | object | null | Yes | |
data.voice.audience | string | Conditional | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Conditional | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Conditional | |
data.voice.writing_samples | array of string | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Profile Suggestionssuggestions
Open this request with Python and TypeScript examples
- Query
viewissuggestions. Default isprofile.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:read, audits:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
audit_id | query | string (uuid) | null | No | |
view | query | "suggestions" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=suggestions'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.suggestions | array of object | No | |
data.suggestions[].source | object | object | No | |
data.suggestions[].source.answer_count | integer | Conditional | |
data.suggestions[].source.example_run_id | string | Conditional | |
data.suggestions[].source.kind | "tracked_answers" | Conditional | |
data.suggestions[].source.platforms | array of string | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Connectionconnection_bing
Open this request with Python and TypeScript examples
- Query
viewisconnection. - Query
providerisbing.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
website | query | string | null | No | |
property | query | string | null | No | |
view | query | "connection" | Yes | |
provider | query | "bing" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=connection' \
--data-urlencode 'provider=bing'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.collected_at | string | null | No | |
data.connected_at | string (date-time) | No | |
data.last_refresh_at | string | null | Yes | When the last refresh was attempted. |
data.last_refresh_status | null | "pending" | "in_progress" | "collected" | "partial" | "reconnect_required" | Yes | The latest refresh status. |
data.property | string (uri) | No | |
data.status | "connected" | "reconnect_required" | "disconnected" | "website_changed" | Yes | |
data.website | string (uri) | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read a managed report webhook configurationconnection_webhook
Open this request with Python and TypeScript examples
- Query
viewisconnection. - Query
provideriswebhook.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
view | query | "connection" | Yes | |
provider | query | "webhook" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=connection' \
--data-urlencode 'provider=webhook'Responses
HTTP 200
Current webhook configuration.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | object | Yes | The requested result. See the fields below for its contents. |
data.event_types | array of "aeo.report.completed" | "aeo.report.failed" | Yes | |
data.state | "configured" | "not_configured" | Yes | |
data.url | string (uri) | null | Yes | The scheme, host and port followed by /... |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Scheduleschedule_managed
Open this request with Python and TypeScript examples
- Query
viewisschedule. - Query
kindismanaged.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
view | query | "schedule" | Yes | |
kind | query | "managed" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=schedule' \
--data-urlencode 'kind=managed'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.enabled | boolean | Yes | |
data.kind | "cited_page_sweep" | Yes | |
data.label_pages | boolean | Yes | |
data.max_credits_per_run | integer | Yes | |
data.max_pages_per_run | integer | Yes | |
data.next_run_at | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Scheduleschedule_cited_page_sweep
Open this request with Python and TypeScript examples
- Query
viewisschedule. - Query
kindiscited_page_sweep.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
view | query | "schedule" | Yes | |
kind | query | "cited_page_sweep" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=schedule' \
--data-urlencode 'kind=cited_page_sweep'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.enabled | boolean | Yes | |
data.kind | "cited_page_sweep" | Yes | |
data.label_pages | boolean | Yes | |
data.max_credits_per_run | integer | Yes | |
data.max_pages_per_run | integer | Yes | |
data.next_run_at | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read the post-publication accuracy settingschedule_answer_accuracy
Open this request with Python and TypeScript examples
- Query
viewisschedule. - Query
kindisanswer_accuracy.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
view | query | "schedule" | Yes | |
kind | query | "answer_accuracy" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=schedule' \
--data-urlencode 'kind=answer_accuracy'Responses
HTTP 200
Read the post-publication accuracy setting
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.kind | "answer_accuracy" | Yes | |
data.max_units_per_run | integer | No | |
data.recheck_after_publication | boolean | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
List Eventscontent_events
Open this request with Python and TypeScript examples
- Query
viewiscontent_events.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
after | query | integer | No | |
limit | query | integer | No | |
view | query | "content_events" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=content_events'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.has_more | boolean | Yes | |
data.items | array of object | Yes | |
data.items[].actor_id | string (uuid) | Yes | |
data.items[].created_at | string (date-time) | Yes | |
data.items[].draft_id | string (uuid) | Yes | |
data.items[].handoff_id | string (uuid) | null | Yes | |
data.items[].revision | integer | Yes | |
data.items[].sequence | integer | Yes | |
data.items[].status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.items[].type | "created" | "edited" | "submitted" | "changes_requested" | "approved" | "handed_off" | "delivery_claimed" | "publication_failed" | "publication_reported" | "archived" | Yes | |
data.latest_sequence | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.has_more | boolean | Yes | |
data.items | array of object | Yes | |
data.items[].actor_id | string (uuid) | Yes | |
data.items[].created_at | string (date-time) | Yes | |
data.items[].draft_id | string (uuid) | Yes | |
data.items[].handoff_id | string (uuid) | null | Yes | |
data.items[].revision | integer | Yes | |
data.items[].sequence | integer | Yes | |
data.items[].status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.items[].type | "created" | "edited" | "submitted" | "changes_requested" | "approved" | "handed_off" | "delivery_claimed" | "publication_failed" | "publication_reported" | "archived" | "artifact_claimed" | "artifact_receipt" | "artifact_paused" | Yes | |
data.latest_sequence | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
PATCH /v2/brands/{brand_id}
Update brand settings
Update, archive or request brand deletionbrand
Open this request with Python and TypeScript examples
- Body
sectionisbrand.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write
- Roles
- approver, editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
If-Match | header | string | Yes | Resource/config revision ETag; mismatch returns 412. |
Request body
{
"action": "update",
"name": "Example Plumbing",
"section": "brand"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "update" | Yes | |
aliases | array of string | null | No | |
business_profile | object | null | No | Replace audit business details. Send null to clear them. |
business_profile.address_line1 | string | null | No | |
business_profile.address_line2 | string | null | No | |
business_profile.city | string | null | No | |
business_profile.country | string | null | No | |
business_profile.hours | object | null | No | |
business_profile.hours.[key] | array of string | No | Value for each key. |
business_profile.latitude | number | null | No | |
business_profile.longitude | number | null | No | |
business_profile.phone | string | null | No | |
business_profile.postal_code | string | null | No | |
business_profile.price_range | string | null | No | |
business_profile.region | string | null | No | |
business_profile.same_as | array of string | No | |
business_profile.services | array of string | No | |
business_profile.website_url | string | null | No | |
category_ids | array of string | null | No | |
competitor_discovery | "suggest" | "auto_add" | No | Choose whether newly discovered competitors are suggested or added. |
competitors | array of object | No | |
competitors[].aliases | array of string | null | Conditional | |
competitors[].domains | array of string | null | Conditional | |
competitors[].id | string (uuid) | Conditional | |
competitors[].name | string | null | Conditional | |
connector_refs | array of string (uuid) | No | |
domains | array of string | null | No | |
locations | array of object | No | |
locations[].address_line1 | string | null | No | |
locations[].address_line2 | string | null | No | |
locations[].categories | array of string | object | No | |
locations[].categories[].category_id | string | null | No | |
locations[].categories[].name | string | Conditional | |
locations[].city | string | Conditional | |
locations[].country | string | Conditional | |
locations[].hours | object | No | |
locations[].hours.special_dates | object | No | |
locations[].hours.special_dates.[key] | array of object | No | Value for each key. |
locations[].hours.weekly | object | No | |
locations[].hours.weekly.[key] | array of object | No | Value for each key. |
locations[].id | string (uuid) | null | No | |
locations[].latitude | number | null | No | |
locations[].longitude | number | null | No | |
locations[].name | string | Conditional | |
locations[].phone | string | null | No | |
locations[].postal_code | string | null | No | |
locations[].radius_km | number | null | No | |
locations[].region | string | null | No | |
locations[].service_area | array of object | No | |
locations[].service_area[].city | string | null | No | |
locations[].service_area[].postal_code | string | null | No | |
locations[].service_area[].region | string | null | No | |
locations[].status | "active" | "paused" | "archived" | No | |
locations[].store_code | string | Conditional | |
locations[].website_url | string (uri) | null | No | |
markets | array of object | No | |
markets[].city | string | null | null | No | |
markets[].country | string | Conditional | |
markets[].language | string | Conditional | |
markets[].region | string | null | null | No | |
name | string | null | No | |
remove_location_ids | array of string (uuid) | No | |
section | "brand" | Yes | |
status | "active" | "archived" | No |
| Name | Type | Required | Description |
|---|---|---|---|
action | "archive" | Yes | |
section | "brand" | Yes |
| Name | Type | Required | Description |
|---|---|---|---|
action | "request_delete" | Yes | |
confirmation_name | string | null | Yes | |
reason | string | Yes | |
section | "brand" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "If-Match: $IF_MATCH" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Update, archive or request brand deletion result.
| Name | Type | Required | Description |
|---|---|---|---|
ETag | string | No | Current revision as a quoted integer. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"aliases": [],
"category_ids": [
"example"
],
"competitors": [],
"created_at": "2026-11-06T00:00:00Z",
"domains": [
"example"
],
"id": "00000000-0000-4000-8000-000000000001",
"markets": [
{
"country": "US",
"language": "example"
}
],
"name": "example",
"revision": 1,
"status": "active",
"updated_at": "2026-11-06T00:00:00Z"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.aliases | array of string | null | Yes | |
data.business_profile | object | No | Business details used as the reference for website and listing audits. |
data.business_profile.address_line1 | string | null | No | |
data.business_profile.address_line2 | string | null | No | |
data.business_profile.city | string | null | No | |
data.business_profile.country | string | null | No | |
data.business_profile.hours | object | null | No | |
data.business_profile.hours.[key] | array of string | No | Value for each key. |
data.business_profile.latitude | number | null | No | |
data.business_profile.longitude | number | null | No | |
data.business_profile.phone | string | null | No | |
data.business_profile.postal_code | string | null | No | |
data.business_profile.price_range | string | null | No | |
data.business_profile.region | string | null | No | |
data.business_profile.same_as | array of string | No | |
data.business_profile.services | array of string | No | |
data.business_profile.website_url | string | null | No | |
data.category_ids | array of string | null | Yes | |
data.competitor_discovery | "suggest" | "auto_add" | No | Choose whether newly discovered competitors are suggested or added. |
data.competitors | array of object | Yes | |
data.competitors[].aliases | array of string | null | Yes | |
data.competitors[].domains | array of string | null | Yes | |
data.competitors[].id | string (uuid) | Yes | |
data.competitors[].name | string | null | Yes | |
data.competitors[].source | object | No | |
data.competitors[].source.kind | "tracked_answers" | Conditional | |
data.created_at | string (date-time) | Yes | |
data.domains | array of string | null | Yes | |
data.facts | array of object | No | |
data.facts[].id | string (uuid) | Conditional | |
data.facts[].predicate | string | null | Conditional | |
data.facts[].source_urls | array of string (uri) | Conditional | |
data.facts[].status | "proposed" | "approved" | "inactive" | Conditional | |
data.facts[].subject | string | null | Conditional | |
data.facts[].valid_from | string (date-time) | Conditional | |
data.facts[].valid_to | string (date-time) | null | No | |
data.facts[].value | string | Conditional | |
data.id | string (uuid) | Yes | |
data.locations | array of object | No | |
data.locations[].address_line1 | string | null | No | |
data.locations[].address_line2 | string | null | No | |
data.locations[].categories | array of string | object | No | |
data.locations[].categories[].category_id | string | null | No | |
data.locations[].categories[].name | string | Conditional | |
data.locations[].city | string | Conditional | |
data.locations[].country | string | Conditional | |
data.locations[].hours | object | No | |
data.locations[].hours.special_dates | object | No | |
data.locations[].hours.special_dates.[key] | array of object | No | Value for each key. |
data.locations[].hours.weekly | object | No | |
data.locations[].hours.weekly.[key] | array of object | No | Value for each key. |
data.locations[].id | string (uuid) | null | No | |
data.locations[].latitude | number | null | No | |
data.locations[].longitude | number | null | No | |
data.locations[].name | string | Conditional | |
data.locations[].phone | string | null | No | |
data.locations[].postal_code | string | null | No | |
data.locations[].radius_km | number | null | No | |
data.locations[].region | string | null | No | |
data.locations[].service_area | array of object | No | |
data.locations[].service_area[].city | string | null | No | |
data.locations[].service_area[].postal_code | string | null | No | |
data.locations[].service_area[].region | string | null | No | |
data.locations[].status | "active" | "paused" | "archived" | No | |
data.locations[].store_code | string | Conditional | |
data.locations[].website_url | string (uri) | null | No | |
data.markets | array of object | Yes | |
data.markets[].city | string | null | null | No | |
data.markets[].country | string | Yes | |
data.markets[].language | string | Yes | |
data.markets[].region | string | null | null | No | |
data.name | string | null | Yes | |
data.revision | integer | Yes | |
data.status | "active" | "archived" | "deletion_pending" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
HTTP 202
Deletion queued.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "00000000-0000-4000-8000-000000000001",
"kind": "deletion",
"poll_url": "https://api.aeoapi.dev/v2/runs/job:00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string (uuid) | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Dismiss competitor suggestionscompetitor_suggestions
Open this request with Python and TypeScript examples
- Body
sectioniscompetitor_suggestions.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write
- Roles
- approver, editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
Idempotency-Key | header | string | Yes |
Request body
{
"action": "dismiss",
"section": "competitor_suggestions",
"suggestion_ids": [
"00000000-0000-4000-8000-000000015111"
]
}| Name | Type | Required | Description |
|---|---|---|---|
action | "dismiss" | Yes | |
section | "competitor_suggestions" | Yes | |
suggestion_ids | array of string (uuid) | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Dismissed suggestions
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.dismissed_ids | array of string (uuid) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Update Profileprofile
Open this request with Python and TypeScript examples
- Body
sectionisprofile.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write
- Roles
- approver, editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
Idempotency-Key | header | string | Yes | |
If-Match | header | string | Yes |
Request body
{
"name": "Example Company",
"section": "profile"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "update" | No | |
aliases | array of string | null | No | |
audiences | array of object | null | No | |
audiences.description | string | null | No | |
audiences.id | string (uuid) | Conditional | |
audiences.markets | array of object | No | |
audiences.markets[].city | string | null | No | |
audiences.markets[].country | string | Conditional | |
audiences.markets[].language | string | Conditional | |
audiences.markets[].region | string | null | No | |
audiences.name | string | Conditional | |
business_type | "b2b" | "b2c" | "both" | "nonprofit" | "public_sector" | "other" | null | No | |
comparison_evidence | array of object | null | No | |
comparison_evidence.id | string (uuid) | Conditional | |
comparison_evidence.permission | "customer_permitted" | Conditional | |
comparison_evidence.source_ref | string | Conditional | |
comparison_evidence.text | string | Conditional | |
competitors | array of object | null | No | |
competitors.aliases | array of string | Conditional | |
competitors.domains | array of string | Conditional | |
competitors.id | string (uuid) | Conditional | |
competitors.name | string | Conditional | |
crm_questions | array of object | null | No | |
crm_questions.duplicate_of | string (uuid) | No | ID of your existing prompt. |
crm_questions.id | string (uuid) | Conditional | |
crm_questions.intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | No | The purpose of the prompt. |
crm_questions.market | object | null | No | |
crm_questions.market.city | string | null | No | |
crm_questions.market.country | string | Conditional | |
crm_questions.market.language | string | Conditional | |
crm_questions.market.region | string | null | No | |
crm_questions.metadata | object | No | |
crm_questions.metadata.audience_ids | array of string (uuid) | No | |
crm_questions.metadata.group_ids | array of string (uuid) | No | |
crm_questions.metadata.product_ids | array of string (uuid) | No | |
crm_questions.metadata.service_ids | array of string (uuid) | No | |
crm_questions.metadata.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | |
crm_questions.similar_prompts | array of object | No | Other matching prompts in your library. |
crm_questions.similar_prompts[].prompt_id | string (uuid) | Conditional | |
crm_questions.source_ref | string | Conditional | |
crm_questions.text | string | Conditional | |
domains | array of string | null | No | |
groups | array of object | null | No | |
groups.description | string | null | No | |
groups.id | string (uuid) | Conditional | |
groups.name | string | Conditional | |
localized_templates | array of object | null | No | |
localized_templates.id | string (uuid) | Conditional | |
localized_templates.intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | The purpose of the prompt. |
localized_templates.language | string | Conditional | |
localized_templates.text | string | Conditional | |
markets | array of object | null | No | |
markets.city | string | null | No | |
markets.country | string | Conditional | |
markets.language | string | Conditional | |
markets.region | string | null | No | |
name | string | null | No | |
products | array of object | null | No | |
products.description | string | null | No | |
products.id | string (uuid) | Conditional | |
products.name | string | Conditional | |
section | "profile" | Yes | |
services | array of object | null | No | |
services.description | string | null | No | |
services.id | string (uuid) | Conditional | |
services.name | string | Conditional |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "If-Match: $IF_MATCH" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
| Name | Type | Required | Description |
|---|---|---|---|
ETag | string | No | Current quoted resource revision |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.id | string (uuid) | Yes | |
data.name | string | Yes | |
data.domains | array of string | Yes | |
data.aliases | array of string | Yes | |
data.category_ids | array of string | Yes | |
data.markets | array of object | Yes | |
data.markets[].city | string | null | null | No | |
data.markets[].country | string | Yes | |
data.markets[].language | string | Yes | |
data.markets[].region | string | null | null | No | |
data.competitors | array of object | Yes | |
data.competitors[].id | string (uuid) | Yes | |
data.competitors[].name | string | Yes | |
data.competitors[].aliases | array of string | Yes | |
data.competitors[].domains | array of string | Yes | |
data.revision | integer | Yes | Current revision. Use it when you edit this record. |
data.status | string | Yes | |
data.created_at | string (date-time) | Yes | |
data.updated_at | string (date-time) | Yes | |
data.business_profile | object | No | |
data.business_type | string | null | Yes | |
data.products | array of object | Yes | |
data.products[].description | string | null | Yes | |
data.products[].id | string (uuid) | Yes | |
data.products[].name | string | Yes | |
data.services | array of object | Yes | |
data.services[].description | string | null | Yes | |
data.services[].id | string (uuid) | Yes | |
data.services[].name | string | Yes | |
data.groups | array of object | Yes | |
data.groups[].description | string | null | Yes | |
data.groups[].id | string (uuid) | Yes | |
data.groups[].name | string | Yes | |
data.audiences | array of object | Yes | |
data.audiences[].description | string | null | Yes | |
data.audiences[].id | string (uuid) | Yes | |
data.audiences[].markets | array of object | Yes | |
data.audiences[].markets[].city | string | null | No | |
data.audiences[].markets[].country | string | Yes | |
data.audiences[].markets[].language | string | Yes | |
data.audiences[].markets[].region | string | null | No | |
data.audiences[].name | string | Yes | |
data.crm_questions | array of object | Yes | |
data.crm_questions[].duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.crm_questions[].id | string (uuid) | Yes | |
data.crm_questions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Yes | The purpose of the prompt. |
data.crm_questions[].market | object | null | Yes | |
data.crm_questions[].market.city | string | null | No | |
data.crm_questions[].market.country | string | Conditional | |
data.crm_questions[].market.language | string | Conditional | |
data.crm_questions[].market.region | string | null | No | |
data.crm_questions[].metadata | object | Yes | |
data.crm_questions[].metadata.audience_ids | array of string (uuid) | Yes | |
data.crm_questions[].metadata.group_ids | array of string (uuid) | Yes | |
data.crm_questions[].metadata.product_ids | array of string (uuid) | Yes | |
data.crm_questions[].metadata.service_ids | array of string (uuid) | Yes | |
data.crm_questions[].metadata.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Yes | |
data.crm_questions[].similar_prompts | array of object | No | Other matching prompts in your library. |
data.crm_questions[].similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.crm_questions[].source_ref | string | Yes | |
data.crm_questions[].text | string | Yes | |
data.localized_templates | array of object | Yes | |
data.localized_templates[].id | string (uuid) | Yes | |
data.localized_templates[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Yes | The purpose of the prompt. |
data.localized_templates[].language | string | Yes | |
data.localized_templates[].text | string | Yes | |
data.comparison_evidence | array of object | Yes | |
data.comparison_evidence[].id | string (uuid) | Yes | |
data.comparison_evidence[].permission | "customer_permitted" | Yes | |
data.comparison_evidence[].source_ref | string | Yes | |
data.comparison_evidence[].text | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited
Put Voicevoice
Open this request with Python and TypeScript examples
- Body
sectionisvoice.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes |
Request body
{
"audience": "Office managers",
"expected_revision": 0,
"language": "en",
"section": "voice",
"tone": "Direct and concrete"
}| Name | Type | Required | Description |
|---|---|---|---|
audience | string | Yes | |
avoided_terms | array of string | No | |
call_to_action | string | null | No | |
editorial_guidelines | string | null | No | |
expected_revision | integer | Yes | |
language | string | Yes | |
opening | string | null | No | |
preferred_terms | array of string | No | |
section | "voice" | Yes | |
tone | string | Yes | |
writing_samples | array of string | No |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.revision | integer | Yes | |
data.voice | object | null | Yes | |
data.voice.audience | string | Conditional | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Conditional | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Conditional | |
data.voice.writing_samples | array of string | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Configure Hubspotconnection_hubspot
Open this request with Python and TypeScript examples
- Body
sectionisconnection. - Body
providerishubspot.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write
- Roles
- owner
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
- Use an account-wide key. Roles owner.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
X-HubSpot-Access-Token | header | string (password) | Conditional | Customer-held HubSpot conversations.read credential. Required when enabling or pulling from a connector. |
Request body
{
"section": "connection",
"provider": "hubspot",
"state": "enabled",
"inbox_id": "12345"
}| Name | Type | Required | Description |
|---|---|---|---|
inbox_id | string | null | Conditional | Required when state is enabled. Omit it when state is disabled. |
provider | "hubspot" | Yes | |
section | "connection" | Yes | |
state | "enabled" | "disabled" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "X-HubSpot-Access-Token: $X_HUBSPOT_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.inbox_id | string | null | No | |
data.state | "enabled" | "disabled" | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Register, rotate or remove a managed report webhookconnection_webhook
Open this request with Python and TypeScript examples
- Body
sectionisconnection. - Body
provideriswebhook.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write
- Roles
- owner
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes |
Request body
{
"provider": "webhook",
"section": "connection",
"url": "https://example.com/report-events"
}| Name | Type | Required | Description |
|---|---|---|---|
event_types | array of "aeo.report.completed" | "aeo.report.failed" | null | No | Omit this field or set it to null to receive both events. |
provider | "webhook" | Yes | |
section | "connection" | Yes | |
url | string (uri) | null | Yes | Supply a public HTTPS URL on port 443 or 8443. Set it to null to remove the webhook. |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Current webhook configuration.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | object | Yes | The requested result. See the fields below for its contents. |
data.event_types | array of "aeo.report.completed" | "aeo.report.failed" | Yes | |
data.signing_secret | string | Conditional | Save this secret when you register or rotate the webhook. |
data.state | "configured" | "not_configured" | Yes | |
data.url | string (uri) | null | Yes | The full registered URL. Save it when you register. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Refresh a Bing Webmaster Tools connectionconnection_bing
Open this request with Python and TypeScript examples
- Body
sectionisconnection. - Body
providerisbing.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write
- Roles
- approver, editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
Idempotency-Key | header | string | Yes |
Request body
{
"action": "refresh",
"provider": "bing",
"section": "connection"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "refresh" | Yes | |
provider | "bing" | Yes | |
section | "connection" | Yes | |
website | string | null | No |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Refresh queued
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.collected_at | string | null | Yes | |
data.connected_at | string (date-time) | Yes | |
data.last_refresh_at | string | null | Yes | When the last refresh was attempted. |
data.last_refresh_status | null | "pending" | "in_progress" | "collected" | "partial" | "reconnect_required" | Yes | The latest refresh status. |
data.property | string (uri) | Yes | |
data.status | "connected" | Yes | |
data.website | string (uri) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Upsert named collection schedulesschedule_collection
Open this request with Python and TypeScript examples
- Body
sectionisschedule. - Body
kindiscollection.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"kind": "collection",
"schedules": [
{
"cadence_days": 1,
"enabled": false,
"id": "00000000-0000-4000-8000-000000000001",
"market": {
"country": "US",
"language": "example"
},
"max_units_per_run": 0,
"prompt_ids": [
"00000000-0000-4000-8000-000000000001"
],
"source": {
"mode": "ui_normal",
"platform": "chatgpt"
}
}
],
"section": "schedule"
}| Name | Type | Required | Description |
|---|---|---|---|
kind | "collection" | Yes | |
schedules | array of object | Yes | |
schedules[].all_locations | boolean | No | |
schedules[].allow_country_level | boolean | No | Allow a country-level answer when the source cannot apply the requested location. |
schedules[].cadence_days | 1 | 3 | 7 | 14 | 30 | Yes | |
schedules[].enabled | boolean | Yes | |
schedules[].id | string (uuid) | Yes | |
schedules[].location_ids | array of string (uuid) | No | |
schedules[].market | object | Yes | |
schedules[].market.city | string | null | null | No | |
schedules[].market.country | string | Yes | |
schedules[].market.language | string | Yes | |
schedules[].market.latitude | number | null | No | |
schedules[].market.location_id | string (uuid) | null | No | |
schedules[].market.longitude | number | null | No | |
schedules[].market.postal_code | string | null | No | |
schedules[].market.region | string | null | null | No | |
schedules[].max_units_per_run | integer | Yes | |
schedules[].next_run_at | string (date-time) | null | No | |
schedules[].prompt_ids | array of string (uuid) | Yes | |
schedules[].source | object | Yes | |
schedules[].source.device | "desktop" | "mobile" | "unknown" | No | |
schedules[].source.mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Yes | |
schedules[].source.platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
schedules[].source.provider | string | No | Optional source label for the selected platform and mode. An unsupported combination is rejected before the job starts. |
section | "schedule" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Upsert named collection schedules result.
| Name | Type | Required | Description |
|---|---|---|---|
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": [],
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].all_locations | boolean | No | |
data[].allow_country_level | boolean | No | Allow a country-level answer when the source cannot apply the requested location. |
data[].brand_id | string (uuid) | Yes | |
data[].cadence_days | 1 | 3 | 7 | 14 | 30 | Yes | |
data[].enabled | boolean | Yes | |
data[].id | string (uuid) | Yes | |
data[].location_ids | array of string (uuid) | No | |
data[].market | object | Yes | |
data[].market.city | string | null | null | No | |
data[].market.country | string | Yes | |
data[].market.language | string | Yes | |
data[].market.latitude | number | null | No | |
data[].market.location_id | string (uuid) | null | No | |
data[].market.longitude | number | null | No | |
data[].market.postal_code | string | null | No | |
data[].market.region | string | null | null | No | |
data[].max_units_per_run | integer | Yes | |
data[].next_run_at | string (date-time) | null | No | |
data[].prompt_ids | array of string (uuid) | Yes | |
data[].source | object | Yes | |
data[].source.device | "desktop" | "mobile" | "unknown" | No | |
data[].source.mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Yes | |
data[].source.platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
data[].source.provider | string | No | Optional source label for the selected platform and mode. An unsupported combination is rejected before the job starts. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Set a cited page sweep scheduleschedule_cited_page_sweep
Open this request with Python and TypeScript examples
- Body
sectionisschedule. - Body
kindiscited_page_sweep.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes |
Request body
{
"kind": "cited_page_sweep",
"max_credits_per_run": 1,
"section": "schedule"
}| Name | Type | Required | Description |
|---|---|---|---|
enabled | boolean | No | |
kind | "cited_page_sweep" | Yes | |
label_pages | boolean | No | |
max_credits_per_run | integer | Yes | |
max_pages_per_run | integer | No | |
section | "schedule" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Set a cited page sweep schedule.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.enabled | boolean | Yes | |
data.kind | "cited_page_sweep" | Yes | |
data.label_pages | boolean | Yes | |
data.max_credits_per_run | integer | Yes | |
data.max_pages_per_run | integer | Yes | |
data.next_run_at | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Update Scheduleschedule_managed
Open this request with Python and TypeScript examples
- Body
sectionisschedule. - Body
kindismanaged.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
website | query | string | null | No | |
Idempotency-Key | header | string | Yes |
Request body
{
"enabled": false,
"kind": "managed",
"section": "schedule"
}| Name | Type | Required | Description |
|---|---|---|---|
all_locations | boolean | No | |
allow_country_level | boolean | No | Allow a country-level answer when the source cannot apply the requested location. |
cadence_days | 1 | 3 | 7 | 14 | 30 | Yes | |
enabled | boolean | Yes | |
kind | "managed" | Yes | |
location_ids | array of string (uuid) | No | |
market | object | Yes | ``components.schemas.Market``. |
market.city | string | null | No | |
market.country | string | Yes | |
market.language | string | Yes | |
market.latitude | number | null | No | |
market.location_id | string (uuid) | null | No | |
market.longitude | number | null | No | |
market.postal_code | string | null | No | |
market.region | string | null | No | |
max_credits_per_run | integer | Yes | |
section | "schedule" | Yes | |
source | object | Yes | Brave AI summaries use brave and ai_overview. Brave Ask uses brave and ai_mode. Meta AI uses meta_ai and ui_normal. Grok uses grok and ui_normal. These four sources are available on Optimizer. |
source.device | "desktop" | "mobile" | "unknown" | null | No | |
source.mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Yes | The mode used to collect the answer. The unverified value appears only in evidence. |
source.platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | The platform where the answer was observed. |
source.provider | string | null | No |
| Name | Type | Required | Description |
|---|---|---|---|
enabled | false | Yes | |
kind | "managed" | Yes | |
section | "schedule" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The saved schedule. |
data.all_locations | boolean | No | |
data.allow_country_level | boolean | No | Allow a country-level answer when the source cannot apply the requested location. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.cadence_days | 1 | 3 | 7 | 14 | 30 | Yes | |
data.enabled | boolean | Yes | |
data.id | string (uuid) | Yes | |
data.location_ids | array of string (uuid) | No | |
data.market | object | Yes | |
data.market.city | string | null | null | No | |
data.market.country | string | Yes | |
data.market.language | string | Yes | |
data.market.latitude | number | null | No | |
data.market.location_id | string (uuid) | null | No | |
data.market.longitude | number | null | No | |
data.market.postal_code | string | null | No | |
data.market.region | string | null | null | No | |
data.max_units_per_run | integer | Yes | |
data.next_run_at | string (date-time) | null | Yes | |
data.prompt_ids | array of string (uuid) | Yes | |
data.source | object | Yes | |
data.source.device | "desktop" | "mobile" | "unknown" | No | |
data.source.mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Yes | |
data.source.platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
data.source.provider | string | No | Optional source label for the selected platform and mode. An unsupported combination is rejected before the job starts. |
data.website | string | null | Yes | |
data.prompt_set_revision | string | Yes | |
data.estimated_credits_per_run | integer | null | Yes | |
data.maximum_recurring_credits_30_days | integer | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | null | Yes | You paused a brand that had no schedule. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Set the post-publication accuracy settingschedule_answer_accuracy
Open this request with Python and TypeScript examples
- Body
sectionisschedule. - Body
kindisanswer_accuracy.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write
- Roles
- owner
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes |
Request body
{
"kind": "answer_accuracy",
"section": "schedule"
}| Name | Type | Required | Description |
|---|---|---|---|
kind | "answer_accuracy" | Yes | |
max_units_per_run | integer | No | |
recheck_after_publication | boolean | No | |
section | "schedule" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Set the post-publication accuracy setting
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.kind | "answer_accuracy" | Yes | |
data.max_units_per_run | integer | No | |
data.recheck_after_publication | boolean | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
GET /v2/brands/{brand_id}/drafts
List Drafts
List Draftsdefault
Open this request with Python and TypeScript examples
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
status | query | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | null | No | |
item_id | query | string (uuid) | null | No | |
offset | query | integer | No | |
limit | query | integer | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Successful Response
application/json
Example generated from the response schema.
{
"data": {
"items": [],
"next_offset": null
},
"meta": {}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.items | array of object | Yes | |
data.items[].created_at | string (date-time) | Yes | |
data.items[].draft_id | string (uuid) | Yes | |
data.items[].format | "blog" | "social" | "linkedin_article" | Yes | |
data.items[].item_id | string (uuid) | Yes | |
data.items[].revision | integer | Yes | |
data.items[].status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.items[].updated_at | string (date-time) | Yes | |
data.next_offset | integer | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.items | array of object | object | object | Yes | |
data.items[].created_at | string (date-time) | Yes | |
data.items[].draft_id | string (uuid) | Yes | |
data.items[].format | "blog" | "social" | "linkedin_article" | "product_fact_patch" | "accuracy_fix" | Yes | |
data.items[].item_id | string (uuid) | Yes | |
data.items[].revision | integer | Yes | |
data.items[].status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.items[].updated_at | string (date-time) | Yes | |
data.next_offset | integer | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
GET /v2/brands/{brand_id}/drafts/{draft_id}
Get Draft
Get Draftdefault
Open this request with Python and TypeScript examples
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes | |
include_citation_benchmark | query | boolean | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Successful Response
application/json
Example generated from the response schema.
{
"data": {
"draft_id": "00000000-0000-4000-8000-000000000001",
"item_id": "00000000-0000-4000-8000-000000000001",
"format": "blog",
"revision": 0,
"status": "draft",
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z",
"voice": {
"tone": "example",
"audience": "example",
"language": "en"
},
"voice_revision": 0,
"keywords": [],
"primary_keyword": "example",
"content": null,
"content_method": "customer_owned_passage_assembly",
"content_sha256": null,
"approved_content_sha256": null,
"source_passages": [],
"claim_support": [],
"source_availability": "current",
"voice_checks": null,
"review_note": null,
"generation_guidance": null,
"handoff": null,
"receipt": null,
"publication_failure": null
},
"meta": {}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
PUT /v2/brands/{brand_id}/drafts/{draft_id}
Create Draft
Create Draftdefault
Open this request with Python and TypeScript examples
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write, analytics:read, recommendations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"format": "blog",
"item_id": "00000000-0000-4000-8000-000000000001",
"keywords": [
{
"country": "US",
"estimated_monthly_searches": 120,
"keyword": "setup",
"language": "en",
"measured_on": "2026-11-24",
"source": "example",
"source_reference": "fixture-measurement",
"volume_period_end": "2026-10-31",
"volume_period_start": "2026-10-01"
}
],
"primary_keyword": "setup",
"sections": [
{
"heading": "Getting started",
"passage_id": "00000000-0000-4000-8000-000000000001"
}
],
"title": "Setup instructions"
}| Name | Type | Required | Description |
|---|---|---|---|
format | "blog" | "social" | "linkedin_article" | Yes | |
item_id | string (uuid) | Yes | |
keywords | array of object | Yes | |
keywords[].country | string | Yes | |
keywords[].difficulty_method | string | null | No | |
keywords[].difficulty_score | number | null | No | |
keywords[].estimated_monthly_searches | integer | null | No | |
keywords[].keyword | string | Yes | |
keywords[].language | string | Yes | |
keywords[].measured_on | string (date) | Yes | |
keywords[].source | string | Yes | |
keywords[].source_reference | string | Yes | |
keywords[].volume_period_end | string (date) | null | No | |
keywords[].volume_period_start | string (date) | null | No | |
month | string | null | No | |
primary_keyword | string | Yes | |
report_id | string (uuid) | null | No | |
sections | array of object | Yes | |
sections[].heading | string | Yes | |
sections[].passage_id | string (uuid) | Yes | |
title | string | Yes |
| Name | Type | Required | Description |
|---|---|---|---|
automatic_policy | object | null | No | |
automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
automatic_policy.domains | array of string | Conditional | |
automatic_policy.fact_sources | array of string | Conditional | |
automatic_policy.max_changed_bytes | integer | Conditional | |
automatic_policy.max_targets | integer | Conditional | |
automatic_policy.paths | array of string | Conditional | |
automatic_policy.version | string | Conditional | |
fact_event_id | string (uuid) | Yes | |
format | "product_fact_patch" | Yes | |
targets | array of object | Yes | |
targets[].baseline | string | Yes | |
targets[].baseline_revision | string | Yes | |
targets[].connector | "cms" | "edge" | Yes | |
targets[].domain | string | Yes | |
targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Yes | |
targets[].path | string | Yes |
| Name | Type | Required | Description |
|---|---|---|---|
claim_id | string (uuid) | Yes | |
format | "accuracy_fix" | Yes | |
title | string | null | No |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Example generated from the response schema.
{
"data": {
"draft_id": "00000000-0000-4000-8000-000000000001",
"item_id": "00000000-0000-4000-8000-000000000001",
"format": "blog",
"revision": 0,
"status": "draft",
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z",
"voice": {
"tone": "example",
"audience": "example",
"language": "en"
},
"voice_revision": 0,
"keywords": [],
"primary_keyword": "example",
"content": null,
"content_method": "customer_owned_passage_assembly",
"content_sha256": null,
"approved_content_sha256": null,
"source_passages": [],
"claim_support": [],
"source_availability": "current",
"voice_checks": null,
"review_note": null,
"generation_guidance": null,
"handoff": null,
"receipt": null,
"publication_failure": null
},
"meta": {}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
PATCH /v2/brands/{brand_id}/drafts/{draft_id}
Update a draft or change its status
Update Draftupdate
Open this request with Python and TypeScript examples
- Body
transitionis omitted.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write, analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"body": "Revised instructions.",
"expected_revision": 1,
"title": "Update setup instructions"
}| Name | Type | Required | Description |
|---|---|---|---|
body | string | Yes | |
claim_support | array of object | No | |
claim_support[].claim_text | string | Conditional | |
claim_support[].passage_id | string (uuid) | Conditional | |
claim_support[].source_excerpt | string | Conditional | |
expected_revision | integer | Yes | |
generation_guidance | string | null | No | |
title | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Example generated from the response schema.
{
"data": {
"draft_id": "00000000-0000-4000-8000-000000000001",
"item_id": "00000000-0000-4000-8000-000000000001",
"format": "blog",
"revision": 0,
"status": "draft",
"created_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z",
"voice": {
"tone": "example",
"audience": "example",
"language": "en"
},
"voice_revision": 0,
"keywords": [],
"primary_keyword": "example",
"content": null,
"content_method": "customer_owned_passage_assembly",
"content_sha256": null,
"approved_content_sha256": null,
"source_passages": [],
"claim_support": [],
"source_availability": "current",
"voice_checks": null,
"review_note": null,
"generation_guidance": null,
"handoff": null,
"receipt": null,
"publication_failure": null
},
"meta": {}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Transition Draftsubmit
Open this request with Python and TypeScript examples
- Body
transitionissubmit.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- approver, editor, owner, publisher, service
- Plans
- Optimizer
- Credits
- No credit charge.
- Action submit. Scope
analytics:read. Roles editor, owner, service.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"expected_revision": 1,
"transition": "submit"
}| Name | Type | Required | Description |
|---|---|---|---|
expected_revision | integer | Yes | |
transition | "submit" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Transition Draftrequest_changes
Open this request with Python and TypeScript examples
- Body
transitionisrequest_changes.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- approver, editor, owner, publisher, service
- Plans
- Optimizer
- Credits
- No credit charge.
- Action request_changes. Roles approver, owner.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"expected_revision": 1,
"note": "Please check the current monthly price.",
"transition": "request_changes"
}| Name | Type | Required | Description |
|---|---|---|---|
expected_revision | integer | Yes | |
note | string | Yes | |
transition | "request_changes" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Transition Draftapprove
Open this request with Python and TypeScript examples
- Body
transitionisapprove.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- approver, editor, owner, publisher, service
- Plans
- Optimizer
- Credits
- No credit charge.
- Action approve. Scope
analytics:read. Roles approver, owner.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"expected_revision": 1,
"transition": "approve"
}| Name | Type | Required | Description |
|---|---|---|---|
content_sha256 | string | Yes | |
expected_revision | integer | Yes | |
transition | "approve" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Transition Drafthand_off
Open this request with Python and TypeScript examples
- Body
transitionishand_off.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- approver, editor, owner, publisher, service
- Plans
- Optimizer
- Credits
- No credit charge.
- Action hand_off. Scope
analytics:read. Roles publisher, owner.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"destination": {
"platform": "cms",
"destination_reference": "pricing-page"
},
"expected_revision": 1,
"transition": "hand_off"
}| Name | Type | Required | Description |
|---|---|---|---|
content_sha256 | string | Yes | |
destination | object | Yes | |
destination.destination_reference | string | Yes | |
destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Yes | |
expected_revision | integer | Yes | |
transition | "hand_off" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Transition Draftclaim_delivery
Open this request with Python and TypeScript examples
- Body
transitionisclaim_delivery.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- approver, editor, owner, publisher, service
- Plans
- Optimizer
- Credits
- No credit charge.
- Action claim_delivery. Scope
analytics:read. Roles publisher, owner.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"claim_id": "00000000-0000-4000-8000-000000008181",
"expected_revision": 1,
"handoff_id": "00000000-0000-4000-8000-000000010261",
"transition": "claim_delivery"
}| Name | Type | Required | Description |
|---|---|---|---|
claim_id | string (uuid) | Yes | |
expected_revision | integer | Yes | |
handoff_id | string (uuid) | Yes | |
transition | "claim_delivery" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Transition Draftreport_publication
Open this request with Python and TypeScript examples
- Body
transitionisreport_publication.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- approver, editor, owner, publisher, service
- Plans
- Optimizer
- Credits
- No credit charge.
- Action report_publication. Roles publisher, owner.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"expected_revision": 1,
"handoff_id": "00000000-0000-4000-8000-000000010261",
"published_at": "2026-11-01T12:00:00Z",
"published_url": "https://example.com/pricing",
"publisher_reference": "page-187",
"transition": "report_publication"
}| Name | Type | Required | Description |
|---|---|---|---|
expected_revision | integer | Yes | |
handoff_id | string (uuid) | Yes | |
published_at | string (date-time) | Yes | |
published_url | string | Yes | |
publisher_reference | string | Yes | |
transition | "report_publication" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Transition Draftreport_failure
Open this request with Python and TypeScript examples
- Body
transitionisreport_failure.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- approver, editor, owner, publisher, service
- Plans
- Optimizer
- Credits
- No credit charge.
- Action report_failure. Roles publisher, owner.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"expected_revision": 1,
"handoff_id": "00000000-0000-4000-8000-000000010261",
"reason": "The publishing service rejected the request.",
"transition": "report_failure"
}| Name | Type | Required | Description |
|---|---|---|---|
expected_revision | integer | Yes | |
handoff_id | string (uuid) | Yes | |
reason | string | Yes | |
transition | "report_failure" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Transition Draftarchive
Open this request with Python and TypeScript examples
- Body
transitionisarchive.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- approver, editor, owner, publisher, service
- Plans
- Optimizer
- Credits
- No credit charge.
- Action archive. Roles editor, owner, service.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"expected_revision": 1,
"transition": "archive"
}| Name | Type | Required | Description |
|---|---|---|---|
expected_revision | integer | Yes | |
transition | "archive" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Transition Draftclaim_artifact
Open this request with Python and TypeScript examples
- Body
transitionisclaim_artifact.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- approver, editor, owner, publisher, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"expected_destination_revision": "rev-7",
"expected_destination_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"expected_revision": 1,
"operation": "publish",
"target_id": "00000000-0000-4000-8000-000000009471",
"transition": "claim_artifact"
}| Name | Type | Required | Description |
|---|---|---|---|
expected_destination_revision | string | Yes | |
expected_destination_sha256 | string | Yes | |
expected_revision | integer | Yes | |
operation | "publish" | "rollback" | Yes | |
target_id | string (uuid) | Yes | |
transition | "claim_artifact" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Transition Draftrecord_artifact
Open this request with Python and TypeScript examples
- Body
transitionisrecord_artifact.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- approver, editor, owner, publisher, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"claim_id": "00000000-0000-4000-8000-000000008181",
"content_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"destination_revision": "rev-8",
"expected_revision": 1,
"target_id": "00000000-0000-4000-8000-000000009471",
"transition": "record_artifact"
}| Name | Type | Required | Description |
|---|---|---|---|
claim_id | string (uuid) | Yes | |
content_sha256 | string | Yes | |
destination_revision | string | Yes | |
expected_revision | integer | Yes | |
target_id | string (uuid) | Yes | |
transition | "record_artifact" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Transition Draftpause_artifacts
Open this request with Python and TypeScript examples
- Body
transitionispause_artifacts.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- approver, editor, owner, publisher, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
draft_id | path | string (uuid) | Yes |
Request body
{
"expected_revision": 1,
"reason": "destination_drift",
"transition": "pause_artifacts"
}| Name | Type | Required | Description |
|---|---|---|---|
expected_revision | integer | Yes | |
reason | "destination_drift" | "destination_unresolved" | Yes | |
transition | "pause_artifacts" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/drafts/$DRAFT_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | object | null | No | |
data.citation_lift_benchmark.benchmark | object | null | Conditional | |
data.citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "customer_owned_passage_assembly" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "blog" | "social" | "linkedin_article" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "product_fact_patch" | Yes | |
data.item_id | string (uuid) | Yes | |
data.patch | object | null | Yes | |
data.patch.approved_content_sha256 | string | null | No | |
data.patch.automatic_policy | object | null | No | |
data.patch.automatic_policy.artifact_types | array of "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.automatic_policy.domains | array of string | Conditional | |
data.patch.automatic_policy.fact_sources | array of string | Conditional | |
data.patch.automatic_policy.max_changed_bytes | integer | Conditional | |
data.patch.automatic_policy.max_targets | integer | Conditional | |
data.patch.automatic_policy.paths | array of string | Conditional | |
data.patch.automatic_policy.version | string | Conditional | |
data.patch.content_sha256 | string | Conditional | |
data.patch.pause_reason | "destination_drift" | "destination_unresolved" | null | No | |
data.patch.policy_approved_by | string (uuid) | null | No | |
data.patch.policy_version | string | Conditional | |
data.patch.source_content_revision | string (uuid) | Conditional | |
data.patch.source_fact | object | Conditional | |
data.patch.source_fact.amount | string | Conditional | |
data.patch.source_fact.currency | string | Conditional | |
data.patch.source_fact.depends_on | array of string (uuid) | No | |
data.patch.source_fact.effective_from | string (date) | Conditional | |
data.patch.source_fact.event_id | string (uuid) | Conditional | |
data.patch.source_fact.market | string | Conditional | |
data.patch.source_fact.period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_fact.product | string | Conditional | |
data.patch.source_fact.resolves_conflict | boolean | No | |
data.patch.source_fact.sequence | integer | Conditional | |
data.patch.source_fact.source | string | Conditional | |
data.patch.source_facts | array of object | Conditional | |
data.patch.source_facts[].amount | string | Conditional | |
data.patch.source_facts[].currency | string | Conditional | |
data.patch.source_facts[].depends_on | array of string (uuid) | No | |
data.patch.source_facts[].effective_from | string (date) | Conditional | |
data.patch.source_facts[].event_id | string (uuid) | Conditional | |
data.patch.source_facts[].market | string | Conditional | |
data.patch.source_facts[].period | "month" | "year" | "one_time" | Conditional | |
data.patch.source_facts[].product | string | Conditional | |
data.patch.source_facts[].resolves_conflict | boolean | No | |
data.patch.source_facts[].sequence | integer | Conditional | |
data.patch.source_facts[].source | string | Conditional | |
data.patch.source_url | string | Conditional | |
data.patch.targets | array of object | Conditional | |
data.patch.targets[].baseline_revision | string | Conditional | |
data.patch.targets[].connector | "cms" | "edge" | Conditional | |
data.patch.targets[].content | string | Conditional | |
data.patch.targets[].content_sha256 | string | Conditional | |
data.patch.targets[].diff | string | Conditional | |
data.patch.targets[].domain | string | Conditional | |
data.patch.targets[].kind | "llms_txt" | "json_ld" | "canonical_summary" | Conditional | |
data.patch.targets[].path | string | Conditional | |
data.patch.targets[].previous_sha256 | string | Conditional | |
data.patch.targets[].publish_claim | object | null | No | |
data.patch.targets[].publish_claim.expected_revision | string | Conditional | |
data.patch.targets[].publish_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].publish_claim.id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt | object | null | No | |
data.patch.targets[].publish_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].publish_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].publish_receipt.revision | string | Conditional | |
data.patch.targets[].rollback_claim | object | null | No | |
data.patch.targets[].rollback_claim.expected_revision | string | Conditional | |
data.patch.targets[].rollback_claim.expected_sha256 | string | Conditional | |
data.patch.targets[].rollback_claim.id | string (uuid) | Conditional | |
data.patch.targets[].rollback_content | string | Conditional | |
data.patch.targets[].rollback_receipt | object | null | No | |
data.patch.targets[].rollback_receipt.claim_id | string (uuid) | Conditional | |
data.patch.targets[].rollback_receipt.content_sha256 | string | Conditional | |
data.patch.targets[].rollback_receipt.revision | string | Conditional | |
data.patch.targets[].target_id | string (uuid) | Conditional | |
data.revision | integer | Yes | |
data.source_availability | "current" | "missing" | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | "rolled_back" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.accuracy_claim_id | string (uuid) | Yes | |
data.accuracy_source_pages | array of object | Yes | |
data.accuracy_source_pages[].ownership | "brand" | "competitor" | "third_party" | Yes | |
data.accuracy_source_pages[].scope | "answer" | "claim" | Yes | |
data.accuracy_source_pages[].url | string | Yes | |
data.approved_content_sha256 | string | null | Yes | SHA-256 hash of the content approved for delivery. |
data.citation_lift_benchmark | null | No | |
data.claim_support | array of object | Yes | |
data.claim_support[].claim_text | string | Yes | |
data.claim_support[].passage_id | string (uuid) | Yes | |
data.claim_support[].source_excerpt | string | Yes | |
data.content | object | null | Yes | |
data.content.body | string | Conditional | |
data.content.title | string | Conditional | |
data.content_method | "approved_accuracy_fact" | "agency_edited" | Yes | |
data.content_sha256 | string | null | Yes | SHA-256 hash identifying this version of the content. |
data.created_at | string (date-time) | Yes | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.format | "accuracy_fix" | Yes | |
data.generation_guidance | string | null | Yes | |
data.handoff | object | null | Yes | |
data.handoff.content_sha256 | string | Conditional | |
data.handoff.created_at | string (date-time) | Conditional | |
data.handoff.delivery_claim_id | string (uuid) | null | No | |
data.handoff.destination | object | Conditional | |
data.handoff.destination.destination_reference | string | Conditional | |
data.handoff.destination.platform | "cms" | "linkedin" | "reddit" | "youtube" | "other" | Conditional | |
data.handoff.handoff_id | string (uuid) | Conditional | |
data.item_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.primary_keyword | string | Yes | |
data.publication_failure | string | null | Yes | |
data.receipt | object | null | Yes | |
data.receipt.evidence_basis | "publisher_reported" | No | |
data.receipt.published_at | string (date-time) | Conditional | |
data.receipt.published_url | string | Conditional | |
data.receipt.publisher_reference | string | Conditional | |
data.receipt.reported_at | string (date-time) | Conditional | |
data.review_note | string | null | Yes | |
data.revision | integer | Yes | |
data.source_availability | "current" | "needs_review" | Yes | |
data.source_passages | array of object | Yes | |
data.source_passages[].content_revision | string (uuid) | Yes | |
data.source_passages[].heading | string | Yes | |
data.source_passages[].passage_id | string (uuid) | Yes | |
data.source_passages[].source_url | string | Yes | |
data.status | "draft" | "in_review" | "changes_requested" | "approved" | "handed_off" | "publication_failed" | "published" | "archived" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.voice | object | Yes | |
data.voice.audience | string | Yes | |
data.voice.avoided_terms | array of string | No | |
data.voice.call_to_action | string | null | No | |
data.voice.editorial_guidelines | string | null | No | |
data.voice.language | string | Yes | |
data.voice.opening | string | null | No | |
data.voice.preferred_terms | array of string | No | |
data.voice.tone | string | Yes | |
data.voice.writing_samples | array of string | No | |
data.voice_checks | object | null | Yes | |
data.voice_checks.avoided_terms_present | array of string | Conditional | |
data.voice_checks.copy_uses_primary_keyword | boolean | Conditional | |
data.voice_checks.language | string | Conditional | |
data.voice_checks.preferred_terms_absent | array of string | Conditional | |
data.voice_checks.title_uses_primary_keyword | boolean | Conditional | |
data.voice_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
GET /v2/brands/{brand_id}/evidence/{kind}/{key}
Lookup Keywords
Lookup Keywordskeyword_dataset
Open this request with Python and TypeScript examples
- Path
kindiskeyword_dataset.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | The dataset UUID. |
kind | path | "keyword_dataset" | Yes | |
country | query | string | Yes | |
language | query | string | Yes | |
keywords | query | array of string | Yes | |
source_revision | query | integer | null | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/keyword_dataset/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "country=$COUNTRY" \
--data-urlencode "language=$LANGUAGE" \
--data-urlencode "keywords=$KEYWORDS"Responses
HTTP 200
Successful Response
application/json
Example generated from the response schema.
{
"data": {
"dataset_id": "00000000-0000-4000-8000-000000000001",
"source_revision": 0,
"rights_expires_at": "2026-01-01T00:00:00Z",
"keywords": [],
"missing_keywords": []
},
"meta": {}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.dataset_id | string (uuid) | Yes | |
data.keywords | array of object | Yes | |
data.keywords[].country | string | Yes | |
data.keywords[].difficulty_method | string | null | No | |
data.keywords[].difficulty_score | number | null | No | |
data.keywords[].estimated_monthly_searches | integer | null | No | |
data.keywords[].keyword | string | Yes | |
data.keywords[].language | string | Yes | |
data.keywords[].measured_on | string (date) | Yes | |
data.keywords[].source | string | Yes | |
data.keywords[].source_reference | string | Yes | |
data.keywords[].volume_period_end | string (date) | null | No | |
data.keywords[].volume_period_start | string (date) | null | No | |
data.missing_keywords | array of string | Yes | |
data.rights_expires_at | string (date-time) | Yes | |
data.source_revision | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
PUT /v2/brands/{brand_id}/evidence/{kind}/{key}
Save brand evidence
Put Reviewcitation_review
Open this request with Python and TypeScript examples
- Path
kindiscitation_review.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string | Yes | Unpadded base64url of the UTF-8 canonical page URL with prefix u~. |
kind | path | "citation_review" | Yes |
Request body
{
"brand_mentioned": true,
"checked_at": "2026-11-24T10:00:00Z",
"complete_page_text": "Example retained source text.",
"evidence_reference": "fixture-review",
"expires_at": "2026-12-24T10:00:00Z",
"url": "https://example.com/product"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_mentioned | boolean | null | No | |
channel | "owned" | "competitor" | "peer" | "earned" | "paid" | "affiliate" | "ugc" | "review_site" | "local_directory" | "social" | null | No | |
checked_at | string (date-time) | Yes | |
competitor_mentions | object | No | |
competitor_mentions.[key] | boolean | No | Value for each key. |
complete_page_html | string | null | No | |
complete_page_text | string | null | No | |
content_type | "blog" | "listicle" | "comparison" | "product" | "documentation" | "review" | "research" | "news" | "social" | "video" | "wiki" | "guide" | "how_to" | "press_release" | "educational" | "directory" | null | No | |
evidence_reference | string | Yes | |
expires_at | string (date-time) | Yes | |
opportunity_prompt_ids | array of string (uuid) | null | No | Buyer questions that this permitted source can help answer. |
social_publisher | object | null | No | |
social_publisher.entity_id | string (uuid) | Conditional | |
social_publisher.profile_url | string | Conditional | |
url | string | No |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/citation_review/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Example generated from the response schema.
{
"data": {
"url": "example",
"checked_at": "example",
"source": "customer_page_review",
"brand_mentioned": null,
"competitor_mentions": {}
},
"meta": {}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_mentioned | boolean | null | Yes | |
data.checked_at | string | Yes | |
data.competitor_mentions | object | Yes | |
data.competitor_mentions.[key] | boolean | No | Value for each key. |
data.opportunity_prompt_ids | array of string | No | |
data.social_publisher | object | No | |
data.social_publisher.entity_id | string | Conditional | |
data.social_publisher.profile_url | string | Conditional | |
data.source | "customer_page_review" | "submitted_full_text_alias_match" | "permissioned_website_alias_match" | Yes | |
data.url | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Put Datasetkeyword_dataset
Open this request with Python and TypeScript examples
- Path
kindiskeyword_dataset.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | The dataset UUID. |
kind | path | "keyword_dataset" | Yes |
Request body
{
"rights_basis": "customer_licensed",
"rights_expires_at": "2026-12-24T10:00:00Z",
"rights_reference": "fixture-license",
"rows": [
{
"country": "US",
"estimated_monthly_searches": 120,
"keyword": "setup",
"language": "en",
"measured_on": "2026-11-24",
"source": "example",
"source_reference": "fixture-measurement",
"volume_period_end": "2026-10-31",
"volume_period_start": "2026-10-01"
}
],
"source_revision": 1
}| Name | Type | Required | Description |
|---|---|---|---|
csv | object | null | No | |
csv.column_map | object | No | |
csv.column_map.[key] | string | No | Value for each key. |
csv.content | string | Conditional | |
csv.defaults | object | No | |
csv.defaults.country | string | null | No | |
csv.defaults.difficulty_method | string | null | No | |
csv.defaults.language | string | null | No | |
csv.defaults.measured_on | string (date) | null | No | |
csv.defaults.source | string | null | No | |
csv.defaults.source_reference | string | null | No | |
csv.defaults.volume_period_end | string (date) | null | No | |
csv.defaults.volume_period_start | string (date) | null | No | |
rights_basis | "customer_licensed" | "customer_owned" | Yes | |
rights_expires_at | string (date-time) | Yes | |
rights_reference | string | Yes | |
rows | array of object | null | No | |
rows.country | string | Conditional | |
rows.difficulty_method | string | null | No | |
rows.difficulty_score | number | null | No | |
rows.estimated_monthly_searches | integer | null | No | |
rows.keyword | string | Conditional | |
rows.language | string | Conditional | |
rows.measured_on | string (date) | Conditional | |
rows.source | string | Conditional | |
rows.source_reference | string | Conditional | |
rows.volume_period_end | string (date) | null | No | |
rows.volume_period_start | string (date) | null | No | |
source_revision | integer | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/keyword_dataset/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.dataset_id | string (uuid) | Yes | |
data.rights_expires_at | string (date-time) | Yes | |
data.source_revision | integer | Yes | |
data.state | "active" | "revoked" | Yes | |
data.stored_keywords | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Ingest Traffic Logsaccess_logs
Open this request with Python and TypeScript examples
- Path
kindisaccess_logs.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- attribution:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string | Yes | Hash [canonical URL, UTC day, metric kind] with prefix access_logs~. Use lowercase SHA-256 of compact UTF-8 JSON with no separator whitespace and literal Unicode. Express dates as YYYY-MM-DD. |
kind | path | "access_logs" | Yes |
Request body
{
"coverage": "complete_utc_day",
"day": "2026-11-24",
"kind": "bot_requests",
"permission": "first_party_permitted",
"permission_expires_at": "2026-12-24T10:00:00Z",
"rows": [],
"source_revision": 1,
"url": "https://example.com/product"
}| Name | Type | Required | Description |
|---|---|---|---|
coverage | "complete_utc_day" | Yes | |
day | string (date) | Yes | |
kind | "bot_requests" | "referral_sessions" | Yes | |
permission | "first_party_permitted" | Yes | |
permission_expires_at | string (date-time) | Yes | |
rows | array of object | Yes | |
rows[].event_id | string (uuid) | Yes | |
rows[].occurred_at | string (date-time) | Yes | |
rows[].referrer_host | string | null | No | |
rows[].session_id | string (uuid) | null | No | |
rows[].user_agent | string | No | |
rows[].utm_campaign | string | null | No | |
rows[].utm_medium | string | null | No | |
rows[].utm_source | string | null | No | |
source_revision | integer | Yes | |
url | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/access_logs/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.daily_totals_saved | integer | Yes | |
data.day | string (date) | Yes | |
data.kind | "bot_requests" | "referral_sessions" | Yes | |
data.replayed | boolean | Yes | |
data.source_revision | integer | Yes | |
data.url | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Put Targetimpact_target
Open this request with Python and TypeScript examples
- Path
kindisimpact_target.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- attribution:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string | Yes | Unpadded base64url of the UTF-8 canonical page URL with prefix u~. |
kind | path | "impact_target" | Yes |
Request body
{
"label": "Product launch",
"started_on": "2026-11-24",
"url": "https://example.com/product"
}| Name | Type | Required | Description |
|---|---|---|---|
action_channel | "site_audit" | "owned_content" | "social" | "outreach" | null | No | |
label | string | Yes | |
started_on | string (date) | Yes | |
url | string | No |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/impact_target/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.action_channel | "site_audit" | "owned_content" | "social" | "outreach" | null | Yes | |
data.label | string | Yes | |
data.started_on | string (date) | Yes | |
data.url | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Import Traffictraffic
Open this request with Python and TypeScript examples
- Path
kindistraffic.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- attribution:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string | Yes | Hash the sorted list of [canonical URL, UTC day, metric kind, trimmed source] tuples with prefix traffic~. The key does not depend on counts or the row order. Use lowercase SHA-256 of compact UTF-8 JSON with no separator whitespace and literal Unicode. Express dates as YYYY-MM-DD. |
kind | path | "traffic" | Yes |
Request body
{
"rows": [
{
"count": 12,
"day": "2026-11-24",
"kind": "referral_sessions",
"source": "first_party",
"url": "https://example.com/product"
}
]
}| Name | Type | Required | Description |
|---|---|---|---|
rows | array of object | Yes | |
rows[].count | integer | Yes | |
rows[].day | string (date) | Yes | |
rows[].kind | "bot_requests" | "referral_sessions" | Yes | |
rows[].source | string | Yes | |
rows[].url | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/traffic/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.daily_totals_saved | integer | Yes | |
data.source | "customer_aggregates" | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Put Vitalspage_experience
Open this request with Python and TypeScript examples
- Path
kindispage_experience.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string | Yes | Hash [canonical URL, device (default "ALL"), period_end] with prefix page_experience~. Use lowercase SHA-256 of compact UTF-8 JSON with no separator whitespace and literal Unicode. Express dates as YYYY-MM-DD. |
kind | path | "page_experience" | Yes |
Request body
{
"p75": {
"largest_contentful_paint": 2200
},
"period_end": "2026-11-24",
"period_start": "2026-10-28",
"url": "https://example.com/product"
}| Name | Type | Required | Description |
|---|---|---|---|
device | "ALL" | "PHONE" | "DESKTOP" | "TABLET" | No | |
p75 | object | Yes | |
p75.cumulative_layout_shift | number | null | No | |
p75.interaction_to_next_paint | number | null | No | |
p75.largest_contentful_paint | number | null | No | |
period_end | string (date) | Yes | |
period_start | string (date) | Yes | |
url | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/page_experience/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.all_vitals_good | boolean | null | Yes | |
data.device | string | Yes | |
data.metrics | object | Yes | |
data.metrics.[key] | object | No | Value for each key. |
data.period_end | string | Yes | |
data.period_start | string | Yes | |
data.source | "public_field_measurement" | "partner_field_measurement" | Yes | |
data.url | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Import Googlegoogle_import
Open this request with Python and TypeScript examples
- Path
kindisgoogle_import.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write, analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string | Yes | Hash [exact signed property, signed day] with prefix google_import~. The path brand must equal the signed brand. Supply the original payload_base64 and signature. The server verifies Ed25519 against the decoded bytes. Prefix those bytes with aeoapi/gsc/export and a newline. The request limit is 3 MiB and the decoded export limit is 2 MiB. Use lowercase SHA-256 of compact UTF-8 JSON with no separator whitespace and literal Unicode. Express dates as YYYY-MM-DD. |
kind | path | "google_import" | Yes |
Request body
{
"payload_base64": "REPLACE_WITH_SIGNED_PAYLOAD",
"signature": "REPLACE_WITH_SIGNATURE"
}| Name | Type | Required | Description |
|---|---|---|---|
payload_base64 | string | Yes | |
signature | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/google_import/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.status | "imported" | "unchanged" | Yes | |
data.property | string | Yes | |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.day | string (date) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Putpassage_document
Open this request with Python and TypeScript examples
- Path
kindispassage_document.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write, analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | |
kind | path | "passage_document" | Yes |
Request body
{
"rights_basis": "customer_owned",
"rights_expire_at": "2026-12-24T10:00:00Z",
"rights_reference": "fixture-authorization",
"text": "Example first-party source text.",
"url": "https://example.com/product"
}| Name | Type | Required | Description |
|---|---|---|---|
expected_revision | string (uuid) | null | No | |
product_fact_event | object | No | |
product_fact_event.amount | string | Conditional | |
product_fact_event.currency | string | Conditional | |
product_fact_event.depends_on | array of string (uuid) | No | |
product_fact_event.effective_from | string (date) | Conditional | |
product_fact_event.event_id | string (uuid) | Conditional | |
product_fact_event.market | string | Conditional | |
product_fact_event.period | "month" | "year" | "one_time" | Conditional | |
product_fact_event.product | string | Conditional | |
product_fact_event.resolves_conflict | boolean | No | |
product_fact_event.sequence | integer | Conditional | |
product_fact_event.source | string | Conditional | |
rights_basis | "customer_owned" | "licensed_internal" | Yes | |
rights_expire_at | string (date-time) | Yes | |
rights_reference | string | Yes | |
text | string | Yes | |
url | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/passage_document/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.chunking_version | string | Yes | |
data.chunks | array of object | Yes | |
data.chunks[].end_offset | integer | Yes | |
data.chunks[].ordinal | integer | Yes | |
data.chunks[].passage_id | string | Yes | |
data.chunks[].sha256 | string | Yes | |
data.chunks[].start_offset | integer | Yes | |
data.content_id | string | Yes | |
data.revision | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.chunking_version | string | Conditional | |
data.chunks | array of object | Conditional | |
data.chunks[].end_offset | integer | Conditional | |
data.chunks[].ordinal | integer | Conditional | |
data.chunks[].passage_id | string | Conditional | |
data.chunks[].sha256 | string | Conditional | |
data.chunks[].start_offset | integer | Conditional | |
data.content_id | string | string (uuid) | Yes | |
data.product_fact | object | Yes | |
data.product_fact.event_id | string (uuid) | Yes | |
data.product_fact.outcome | "applied" | "duplicate" | "stale" | "conflict" | Yes | |
data.product_fact.supersedes | string (uuid) | null | No | |
data.revision | string | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Pre-publish review evidenceprepublish_draft
Open this request with Python and TypeScript examples
- Path
kindisprepublish_draft.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read, brands:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | |
kind | path | "prepublish_draft" | Yes |
Request body
{
"page": {
"captured_at": "2026-11-24T10:00:00Z",
"text": "Set up shared billing.",
"url": "https://example.com/product"
},
"rights_basis": "customer_owned",
"rights_expire_at": "2026-12-24T10:00:00Z",
"rights_reference": "fixture-authorization"
}| Name | Type | Required | Description |
|---|---|---|---|
origin | "customer_supplied" | "synthetic_fixture" | No | |
page | object | Yes | |
page.captured_at | string (date-time) | Yes | |
page.text | string | Yes | |
page.url | string | Yes | |
rights_basis | "customer_owned" | "licensed_internal" | Yes | |
rights_expire_at | string (date-time) | Yes | |
rights_reference | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/prepublish_draft/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.expires_at | string (date-time) | Yes | |
data.kind | "prepublish_draft" | Yes | |
data.sha256 | string | Yes | |
data.snapshot_id | string (uuid) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Import approved facts and their source passagesverified_facts
Open this request with Python and TypeScript examples
- Path
kindisverified_facts.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, brands:write
- Roles
- approver, owner
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | |
kind | path | "verified_facts" | Yes |
Request body
{
"facts": [
{
"product": "Calendar",
"plan": "Standard",
"amount": "20",
"currency": "USD",
"period": "month",
"market": "US",
"effective_from": "2026-11-01",
"evidence_quote": "USD 20 per month"
}
],
"rights_basis": "customer_owned",
"rights_expire_at": "2027-11-01T00:00:00Z",
"rights_reference": "pricing-guide-2026",
"text": "The Standard plan costs USD 20 per month.",
"url": "https://example.com/pricing"
}| Name | Type | Required | Description |
|---|---|---|---|
expected_revision | string (uuid) | null | No | |
facts | array of object | Yes | |
facts[].amount | string | Yes | |
facts[].currency | string | Yes | |
facts[].effective_from | string (date) | Yes | |
facts[].effective_until | string (date) | null | No | |
facts[].evidence_quote | string | Yes | |
facts[].market | string | Yes | |
facts[].period | "month" | "year" | "one_time" | Yes | |
facts[].plan | string | Yes | |
facts[].product | string | Yes | |
rights_basis | "customer_owned" | "licensed_internal" | Yes | |
rights_expire_at | string (date-time) | Yes | |
rights_reference | string | Yes | |
text | string | Yes | |
url | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/verified_facts/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.chunking_version | string | Yes | |
data.chunks | array of object | Yes | |
data.chunks[].end_offset | integer | Yes | |
data.chunks[].ordinal | integer | Yes | |
data.chunks[].passage_id | string (uuid) | Yes | |
data.chunks[].sha256 | string | Yes | |
data.chunks[].start_offset | integer | Yes | |
data.content_id | string (uuid) | Yes | |
data.fact_ids | array of string (uuid) | Yes | |
data.revision | string (uuid) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Set approved facts for an accuracy checkaccuracy_facts
Open this request with Python and TypeScript examples
- Path
kindisaccuracy_facts.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write, analytics:read
- Roles
- approver, owner
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | |
kind | path | "accuracy_facts" | Yes |
Request body
{
"facts": [
{
"fact_id": "00000000-0000-4000-8000-000000007141",
"type": "price",
"statement": "The Standard plan costs USD 20 per month.",
"effective_from": "2026-11-01",
"source_quote": "USD 20 per month"
}
],
"rights_basis": "customer_owned",
"rights_expire_at": "2027-11-01T00:00:00Z",
"rights_reference": "pricing-guide-2026",
"text": "The Standard plan costs USD 20 per month.",
"url": "https://example.com/pricing"
}| Name | Type | Required | Description |
|---|---|---|---|
expected_revision | string (uuid) | null | No | |
facts | array of object | Yes | Supply approved facts, or an empty list to withdraw this content. |
facts[].country | string | null | No | |
facts[].effective_from | string (date) | Yes | |
facts[].effective_until | string (date) | null | No | |
facts[].fact_id | string (uuid) | Yes | |
facts[].source_quote | string | Yes | |
facts[].statement | string | Yes | |
facts[].suggestion_id | string (uuid) | null | No | |
facts[].type | "price" | "feature" | "availability" | "policy" | "company" | "integration" | "custom" | Yes | |
rights_basis | "customer_owned" | Yes | |
rights_expire_at | string (date-time) | Yes | |
rights_reference | string | Yes | |
text | string | Yes | |
url | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/accuracy_facts/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Set approved facts for an accuracy check
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.content_id | string (uuid) | Yes | |
data.content_revision | string (uuid) | Yes | |
data.facts | array of object | Yes | |
data.facts[].fact_id | string (uuid) | Yes | |
data.facts[].revision | string (uuid) | Yes | |
data.facts[].status | "approved" | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Pre-publish review evidenceprepublish_prompts
Open this request with Python and TypeScript examples
- Path
kindisprepublish_prompts.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read, brands:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | |
kind | path | "prepublish_prompts" | Yes |
Request body
{
"questions": [
{
"id": "billing",
"revision": "2",
"subqueries": [
{
"focus_terms": [
"billing",
"settings"
],
"id": "setup",
"origin": "inferred",
"source_reference": "fixture-prompt",
"text": "Where are billing settings?"
}
],
"text": "How do I set up shared billing?"
}
],
"rights_basis": "customer_owned",
"rights_expire_at": "2026-12-24T10:00:00Z",
"rights_reference": "fixture-authorization"
}| Name | Type | Required | Description |
|---|---|---|---|
origin | "customer_supplied" | "synthetic_fixture" | No | |
questions | array of object | Yes | |
questions[].id | string | Yes | |
questions[].revision | string | Yes | |
questions[].subqueries | array of object | Yes | |
questions[].subqueries[].focus_terms | array of string | Yes | |
questions[].subqueries[].id | string | Yes | |
questions[].subqueries[].origin | "inferred" | "observed" | Yes | |
questions[].subqueries[].source_reference | string | Yes | |
questions[].subqueries[].text | string | Yes | |
questions[].text | string | Yes | |
rights_basis | "customer_owned" | "licensed_internal" | Yes | |
rights_expire_at | string (date-time) | Yes | |
rights_reference | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/prepublish_prompts/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.expires_at | string (date-time) | Yes | |
data.kind | "prepublish_prompts" | Yes | |
data.sha256 | string | Yes | |
data.snapshot_id | string (uuid) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Pre-publish review evidenceprepublish_competitors
Open this request with Python and TypeScript examples
- Path
kindisprepublish_competitors.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read, brands:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | |
kind | path | "prepublish_competitors" | Yes |
Request body
{
"pages": [
{
"captured_at": "2026-11-24T10:00:00Z",
"text": "Set up shared billing.",
"url": "https://example.com/product"
}
],
"permitted_uses": [
"benchmark",
"display_excerpt"
],
"rights_basis": "licensed_internal",
"rights_expire_at": "2026-12-24T10:00:00Z",
"rights_reference": "fixture-authorization"
}| Name | Type | Required | Description |
|---|---|---|---|
origin | "customer_supplied" | "synthetic_fixture" | No | |
pages | array of object | Yes | |
pages[].captured_at | string (date-time) | Yes | |
pages[].text | string | Yes | |
pages[].url | string | Yes | |
permitted_uses | array of "benchmark" | "display_excerpt" | Yes | |
rights_basis | "licensed_internal" | Yes | |
rights_expire_at | string (date-time) | Yes | |
rights_reference | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/prepublish_competitors/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.expires_at | string (date-time) | Yes | |
data.kind | "prepublish_competitors" | Yes | |
data.sha256 | string | Yes | |
data.snapshot_id | string (uuid) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Pre-publish review evidenceprepublish_capture
Open this request with Python and TypeScript examples
- Path
kindisprepublish_capture.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read, brands:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | |
kind | path | "prepublish_capture" | Yes |
Request body
{
"capture": "raw",
"captured_at": "2026-11-24T10:00:00Z",
"consent": "accepted",
"draft_revision": "00000000-0000-4000-8000-000000000001",
"html": "<h1>Set up shared billing</h1>",
"language": "en",
"rights_basis": "customer_owned",
"rights_expire_at": "2026-12-24T10:00:00Z",
"rights_reference": "fixture-authorization",
"url": "https://example.com/product",
"variant": "default",
"viewport": "1280x720"
}| Name | Type | Required | Description |
|---|---|---|---|
capture | "raw" | "rendered" | Yes | |
captured_at | string (date-time) | Yes | |
consent | string | Yes | |
content_checksum | string | null | No | |
draft_revision | string (uuid) | Yes | |
failure_reason | string | null | No | |
html | string | null | No | |
language | string | Yes | |
origin | "customer_supplied" | "synthetic_fixture" | No | |
rights_basis | "customer_owned" | "licensed_internal" | Yes | |
rights_expire_at | string (date-time) | Yes | |
rights_reference | string | Yes | |
status | "captured" | "failed" | "blocked" | No | |
url | string | Yes | |
variant | string | Yes | |
viewport | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/prepublish_capture/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.expires_at | string (date-time) | Yes | |
data.kind | "prepublish_capture" | Yes | |
data.sha256 | string | Yes | |
data.snapshot_id | string (uuid) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Import supplied asset textasset_document
Open this request with Python and TypeScript examples
- Path
kindisasset_document.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write, analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | |
kind | path | "asset_document" | Yes |
Request body
{
"allow_display": true,
"allow_index": true,
"asset_type": "pdf",
"equivalents": [
{
"page": 7,
"text": "Delivery takes three days.",
"type": "pdf"
}
],
"mime_type": "application/pdf",
"origin": "customer_supplied",
"rights_basis": "customer_owned",
"rights_expire_at": "2026-12-24T10:00:00Z",
"rights_reference": "Handbook publication policy",
"sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://example.com/handbook.pdf"
}| Name | Type | Required | Description |
|---|---|---|---|
allow_display | true | Yes | |
allow_index | true | Yes | |
alt_text | string | null | No | The service stores only whether you supplied alt text. |
asset_type | "pdf" | "chart" | "table" | "transcript" | "diagram" | Yes | |
equivalents | array of object | object | object | object | object | No | |
equivalents[].page | integer | Conditional | |
equivalents[].text | string | Conditional | |
equivalents[].type | "pdf" | Conditional | |
equivalents[].end_ms | integer | Conditional | |
equivalents[].start_ms | integer | Conditional | |
equivalents[].type | "transcript" | Conditional | |
equivalents[].series | string | Conditional | |
equivalents[].type | "chart" | Conditional | |
equivalents[].x | object | Conditional | |
equivalents[].x.label | string | Conditional | |
equivalents[].x.unit | string | null | No | |
equivalents[].x.value | string | Conditional | |
equivalents[].y | object | Conditional | |
equivalents[].y.label | string | Conditional | |
equivalents[].y.unit | string | Conditional | |
equivalents[].y.value | string | Conditional | |
equivalents[].cells | array of object | Conditional | |
equivalents[].cells[].label | string | Conditional | |
equivalents[].cells[].unit | string | null | No | |
equivalents[].cells[].value | string | Conditional | |
equivalents[].row | integer | Conditional | |
equivalents[].type | "table" | Conditional | |
equivalents[].label | string | Conditional | |
equivalents[].type | "diagram" | Conditional | |
gated | boolean | No | |
mime_type | string | Yes | Accepted types by asset_type. pdf accepts application/pdf. chart accepts image/gif, image/jpeg, image/png, image/svg+xml, image/webp, application/json. table accepts text/csv, text/tab-separated-values, application/json. transcript accepts audio/mpeg, audio/mp4, audio/ogg, audio/wav, text/plain, text/vtt, video/mp4, video/webm. diagram accepts image/gif, image/jpeg, image/png, image/svg+xml, image/webp. |
origin | "customer_supplied" | "synthetic_fixture" | Yes | |
parse_status | "parsed" | "failed" | No | Parse outcome declared by the caller. The service evaluates the supplied text. |
rights_basis | "customer_owned" | "licensed_internal" | Yes | |
rights_expire_at | string (date-time) | Yes | |
rights_reference | string | Yes | |
sha256 | string | Yes | Original asset checksum declared by the caller. Validation checks its format. |
url | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PUT "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/asset_document/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Import supplied asset text
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.chunking_version | "supplied-equivalent-r1" | Yes | |
data.chunks | array of object | Yes | |
data.chunks[].end_offset | integer | Yes | |
data.chunks[].locator | object | object | object | object | object | Yes | |
data.chunks[].locator.page | integer | Conditional | |
data.chunks[].locator.type | "pdf" | "transcript" | "chart" | "table" | "diagram" | Yes | |
data.chunks[].locator.end_ms | integer | Conditional | |
data.chunks[].locator.start_ms | integer | Conditional | |
data.chunks[].locator.series | string | Conditional | |
data.chunks[].locator.x | object | Conditional | |
data.chunks[].locator.x.label | string | Conditional | |
data.chunks[].locator.x.unit | string | null | Conditional | |
data.chunks[].locator.x.value | string | Conditional | |
data.chunks[].locator.y | object | Conditional | |
data.chunks[].locator.y.label | string | Conditional | |
data.chunks[].locator.y.unit | string | Conditional | |
data.chunks[].locator.y.value | string | Conditional | |
data.chunks[].locator.row | integer | Conditional | |
data.chunks[].locator.label | string | Conditional | |
data.chunks[].ordinal | integer | Yes | |
data.chunks[].passage_id | string (uuid) | Yes | |
data.chunks[].sha256 | string | Yes | |
data.chunks[].start_offset | integer | Yes | |
data.content_id | string (uuid) | Yes | |
data.revision | string (uuid) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
DELETE /v2/brands/{brand_id}/evidence/{kind}/{key}
Remove saved brand evidence
Revoke Reviewscitation_review
Open this request with Python and TypeScript examples
- Path
kindiscitation_review.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string | Yes | Unpadded base64url of the UTF-8 canonical page URL with prefix u~. |
kind | path | "citation_review" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X DELETE "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/citation_review/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Successful Response
application/json
Example generated from the response schema.
{
"data": {
"url": "https://example.com/review",
"review_status": "revoked"
},
"meta": {
"request_id": "00000000-0000-4000-8000-000000000001",
"as_of": "2026-01-01T00:00:00Z",
"schema_version": "1.0",
"warnings": [],
"rights_filtered": false,
"next_cursor": null,
"collected_at": null,
"next_refresh_at": null,
"stale": false
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.url | string (uri) | Yes | |
data.review_status | "revoked" | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Revoke Datasetkeyword_dataset
Open this request with Python and TypeScript examples
- Path
kindiskeyword_dataset.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | The dataset UUID. |
kind | path | "keyword_dataset" | Yes | |
source_revision | query | integer | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X DELETE "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/keyword_dataset/$KEY?source_revision=$SOURCE_REVISION" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.dataset_id | string (uuid) | Yes | |
data.rights_expires_at | string (date-time) | Yes | |
data.source_revision | integer | Yes | |
data.state | "active" | "revoked" | Yes | |
data.stored_keywords | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Delete Targetimpact_target
Open this request with Python and TypeScript examples
- Path
kindisimpact_target.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- attribution:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string | Yes | Unpadded base64url of the UTF-8 canonical page URL with prefix u~. |
kind | path | "impact_target" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X DELETE "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/impact_target/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.tracking | false | Yes | Tracking has stopped for this URL. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Deletepassage_document
Open this request with Python and TypeScript examples
- Path
kindispassage_document.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write, analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | |
kind | path | "passage_document" | Yes | |
expected_revision | query | string (uuid) | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X DELETE "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/passage_document/$KEY?expected_revision=$EXPECTED_REVISION" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.content_id | string | Yes | |
data.status | "revoked" | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Pre-publish review evidenceprepublish_snapshot
Open this request with Python and TypeScript examples
- Path
kindisprepublish_snapshot.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read, brands:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | |
kind | path | "prepublish_snapshot" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X DELETE "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/prepublish_snapshot/$KEY" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 204
Snapshot access revoked.
This response has no body.
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Revoke asset accessasset_document
Open this request with Python and TypeScript examples
- Path
kindisasset_document.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write, analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | path | string (uuid) | Yes | |
key | path | string (uuid) | Yes | |
kind | path | "asset_document" | Yes | |
expected_revision | query | string (uuid) | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X DELETE "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/asset_document/$KEY?expected_revision=$EXPECTED_REVISION" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 204
Asset access revoked.
This response has no body.
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
POST /v2/passages/search
Search
Searchdefault
Open this request with Python and TypeScript examples
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"query": "product documentation"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
limit | integer | No | |
query | string | No |
| Name | Type | Required | Description |
|---|---|---|---|
asset_filter | object | Yes | Search supplied asset text only. |
asset_filter.asset_type | "pdf" | "chart" | "table" | "transcript" | "diagram" | null | No | |
asset_filter.content_ids | array of string (uuid) | null | No | |
asset_filter.revision_ids | array of string (uuid) | null | No | |
brand_id | string (uuid) | Yes | |
limit | integer | No | |
query | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/passages/search" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Example generated from the response schema.
{
"data": [],
"meta": {}
}| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].content_id | string | Yes | |
data[].end_offset | integer | Yes | |
data[].meaning_rank | integer | null | Yes | |
data[].ordinal | integer | Yes | |
data[].passage_id | string | Yes | |
data[].revision | string | Yes | |
data[].rights_expire_at | string | Yes | |
data[].score | number | Yes | |
data[].start_offset | integer | Yes | |
data[].term_rank | integer | null | Yes | |
data[].text | string | Yes | |
data[].url | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].content_id | string (uuid) | Yes | |
data[].end_offset | integer | Yes | |
data[].locator | object | object | object | object | object | Yes | |
data[].locator.page | integer | Conditional | |
data[].locator.type | "pdf" | "transcript" | "chart" | "table" | "diagram" | Yes | |
data[].locator.end_ms | integer | Conditional | |
data[].locator.start_ms | integer | Conditional | |
data[].locator.series | string | Conditional | |
data[].locator.x | object | Conditional | |
data[].locator.x.label | string | Conditional | |
data[].locator.x.unit | string | null | Conditional | |
data[].locator.x.value | string | Conditional | |
data[].locator.y | object | Conditional | |
data[].locator.y.label | string | Conditional | |
data[].locator.y.unit | string | Conditional | |
data[].locator.y.value | string | Conditional | |
data[].locator.row | integer | Conditional | |
data[].locator.label | string | Conditional | |
data[].meaning_rank | integer | null | Yes | |
data[].ordinal | integer | Yes | |
data[].passage_id | string (uuid) | Yes | |
data[].revision | string (uuid) | Yes | |
data[].rights_expire_at | string (date-time) | Yes | |
data[].score | number | Yes | |
data[].sha256 | string | Yes | |
data[].start_offset | integer | Yes | |
data[].term_rank | integer | null | Yes | |
data[].text | string | Yes | |
data[].url | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
GET /v2/prompts
Read prompts, prompt sets, or topics
List prompt library or private promptslibrary
Open this request with Python and TypeScript examples
- Query
viewislibrary. Default islibrary.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
scope | query | "shared" | "private" | No | scope |
category_id | query | string | null | No | category_id |
brand_id | query | string (uuid) | No | brand_id |
id | query | string (uuid) | No | id |
language | query | string | No | language |
include_archived | query | boolean | No | include_archived |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
view | query | "library" | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=library'Responses
HTTP 200
List prompt library or private prompts result.
| Name | Type | Required | Description |
|---|---|---|---|
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": [],
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].brand_id | string (uuid) | null | Yes | |
data[].category_ids | array of string | null | Yes | |
data[].cohort_version | string | null | Yes | |
data[].created_at | string (date-time) | Yes | |
data[].duplicate_of | string (uuid) | No | ID of your existing prompt. |
data[].id | string (uuid) | Yes | |
data[].intent | string | null | Yes | |
data[].market | object | Yes | |
data[].market.city | string | null | null | No | |
data[].market.country | string | Yes | |
data[].market.language | string | Yes | |
data[].market.region | string | null | null | No | |
data[].revision | integer | Yes | |
data[].scope | "shared" | "private" | Yes | |
data[].similar_prompts | array of object | No | Other matching prompts in your library. |
data[].similar_prompts[].prompt_id | string (uuid) | Conditional | |
data[].status | "active" | "archived" | "deletion_pending" | Yes | |
data[].tags | array of string | null | Yes | |
data[].text | string | Yes | |
data[].version | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Get Coveragecoverage
Open this request with Python and TypeScript examples
- Query
viewiscoverage. Default islibrary.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
view | query | "coverage" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=coverage'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.profile_revision | integer | Yes | |
data.active_prompts | integer | Yes | |
data.by_intent | object | Yes | |
data.by_intent.[key] | integer | No | Value for each key. |
data.by_stage | object | Yes | |
data.by_stage.[key] | integer | No | Value for each key. |
data.by_market | array of object | Yes | |
data.by_market[].market | object | Yes | |
data.by_market[].market.city | string | null | null | No | |
data.by_market[].market.country | string | Yes | |
data.by_market[].market.language | string | Yes | |
data.by_market[].market.region | string | null | null | No | |
data.by_market[].active_prompts | integer | Yes | |
data.by_groups | array of object | Yes | |
data.by_groups[].id | string (uuid) | Yes | |
data.by_groups[].name | string | Yes | |
data.by_groups[].active_prompts | integer | Yes | |
data.by_products | array of object | Yes | |
data.by_products[].id | string (uuid) | Yes | |
data.by_products[].name | string | Yes | |
data.by_products[].active_prompts | integer | Yes | |
data.by_services | array of object | Yes | |
data.by_services[].id | string (uuid) | Yes | |
data.by_services[].name | string | Yes | |
data.by_services[].active_prompts | integer | Yes | |
data.by_audiences | array of object | Yes | |
data.by_audiences[].id | string (uuid) | Yes | |
data.by_audiences[].name | string | Yes | |
data.by_audiences[].active_prompts | integer | Yes | |
data.unassigned | object | Yes | Number of active prompts without each type of assignment. |
data.unassigned.[key] | integer | No | Value for each key. |
data.plan_capacity | object | No | Account limits and remaining capacity. Returned for an account-wide key. |
data.plan_capacity.scope | "tenant" | Conditional | |
data.plan_capacity.limit | integer | Conditional | |
data.plan_capacity.active_private_prompts | integer | Conditional | |
data.plan_capacity.remaining | integer | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Export Promptsexport
Open this request with Python and TypeScript examples
- Query
viewisexport. Default islibrary.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
status | query | "active" | "archived" | null | No | |
intent | query | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | null | No | |
category_id | query | string | null | No | |
country | query | string | null | No | |
language | query | string | null | No | |
group_id | query | string (uuid) | null | No | |
product_id | query | string (uuid) | null | No | |
service_id | query | string (uuid) | null | No | |
audience_id | query | string (uuid) | null | No | |
stage | query | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | |
tag | query | string | null | No | |
q | query | string | null | No | |
format | query | "json" | "csv" | No | |
include_archived | query | boolean | No | |
limit | query | integer | No | |
cursor | query | string | null | No | |
view | query | "export" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=export'Responses
HTTP 200
Successful Response
| Name | Type | Required | Description |
|---|---|---|---|
Content-Disposition | string | No | |
X-Next-Cursor | string | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].brand_id | string (uuid) | null | Yes | |
data[].category_ids | array of string | null | Yes | |
data[].cohort_version | string | null | Yes | |
data[].created_at | string (date-time) | Yes | |
data[].duplicate_of | string (uuid) | No | ID of your existing prompt. |
data[].id | string (uuid) | Yes | |
data[].intent | string | null | Yes | |
data[].market | object | Yes | |
data[].market.city | string | null | null | No | |
data[].market.country | string | Yes | |
data[].market.language | string | Yes | |
data[].market.region | string | null | null | No | |
data[].revision | integer | Yes | |
data[].scope | "shared" | "private" | Yes | |
data[].similar_prompts | array of object | No | Other matching prompts in your library. |
data[].similar_prompts[].prompt_id | string (uuid) | Conditional | |
data[].status | "active" | "archived" | "deletion_pending" | Yes | |
data[].tags | array of string | null | Yes | |
data[].text | string | Yes | |
data[].version | integer | Yes | |
data[].metadata | object | Yes | |
data[].metadata.audience_ids | array of string (uuid) | Yes | |
data[].metadata.group_ids | array of string (uuid) | Yes | |
data[].metadata.product_ids | array of string (uuid) | Yes | |
data[].metadata.service_ids | array of string (uuid) | Yes | |
data[].metadata.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Yes | |
data[].custom_fields | object | Yes | Custom field values by field ID. Each entry includes label, type, value and archived. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
text/csv
With format=csv, the first row contains column names. Each remaining row contains one prompt. Read X-Next-Cursor for the next page.
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Buyer Questionssuggestions
Open this request with Python and TypeScript examples
- Query
viewissuggestions. Default islibrary.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:read, brands:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
audience_id | query | string (uuid) | null | No | |
product_id | query | string (uuid) | null | No | |
service_id | query | string (uuid) | null | No | |
group_id | query | string (uuid) | null | No | |
country | query | string | null | No | |
language | query | string | null | No | |
intent | query | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | null | No | |
stage | query | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | |
source | query | "all" | "crm" | "profile" | No | |
mode | query | "unbranded" | "branded" | "all" | No | |
limit | query | integer | No | |
view | query | "suggestions" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=suggestions'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.profile_revision | integer | Yes | |
data.review_required | true | Yes | |
data.template_languages | array of string | Yes | |
data.suggestions | array of object | Yes | Review each suggested prompt before adding it to your library. |
data.suggestions[].mode | "branded" | "unbranded" | Yes | |
data.suggestions[].source | object | Yes | |
data.suggestions[].source.kind | string | Yes | |
data.suggestions[].source.id | string (uuid) | No | ID of the CRM question or localized template. |
data.suggestions[].source.reference | string | No | Source reference saved with the CRM question. |
data.suggestions[].source.version | integer | No | |
data.suggestions[].prompt | object | Yes | |
data.suggestions[].prompt.text | string | Yes | |
data.suggestions[].prompt.market | object | Yes | |
data.suggestions[].prompt.market.city | string | null | null | No | |
data.suggestions[].prompt.market.country | string | Yes | |
data.suggestions[].prompt.market.language | string | Yes | |
data.suggestions[].prompt.market.region | string | null | null | No | |
data.suggestions[].prompt.intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Yes | The purpose of the prompt. |
data.suggestions[].prompt.category_ids | array of string | Yes | |
data.suggestions[].prompt.metadata | object | Yes | |
data.suggestions[].prompt.metadata.audience_ids | array of string (uuid) | Yes | |
data.suggestions[].prompt.metadata.group_ids | array of string (uuid) | Yes | |
data.suggestions[].prompt.metadata.product_ids | array of string (uuid) | No | |
data.suggestions[].prompt.metadata.service_ids | array of string (uuid) | No | |
data.suggestions[].prompt.metadata.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Prompt Metadatametadata
Open this request with Python and TypeScript examples
- Query
viewismetadata. Default islibrary.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
prompt_id | query | string (uuid) | Yes | |
view | query | "metadata" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode "prompt_id=$PROMPT_ID" \
--data-urlencode 'view=metadata'Responses
HTTP 200
Successful Response
| Name | Type | Required | Description |
|---|---|---|---|
ETag | string | No | Current quoted resource revision |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | null | Yes | Identifies the brand this result belongs to. |
data.category_ids | array of string | null | Yes | |
data.cohort_version | string | null | Yes | |
data.created_at | string (date-time) | Yes | |
data.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.id | string (uuid) | Yes | |
data.intent | string | null | Yes | |
data.market | object | Yes | |
data.market.city | string | null | null | No | |
data.market.country | string | Yes | |
data.market.language | string | Yes | |
data.market.region | string | null | null | No | |
data.revision | integer | Yes | |
data.scope | "shared" | "private" | Yes | |
data.similar_prompts | array of object | No | Other matching prompts in your library. |
data.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.status | "active" | "archived" | "deletion_pending" | Yes | |
data.tags | array of string | null | Yes | |
data.text | string | Yes | |
data.version | integer | Yes | |
data.metadata | object | Yes | |
data.metadata.audience_ids | array of string (uuid) | Yes | |
data.metadata.group_ids | array of string (uuid) | Yes | |
data.metadata.product_ids | array of string (uuid) | Yes | |
data.metadata.service_ids | array of string (uuid) | Yes | |
data.metadata.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Historyhistory
Open this request with Python and TypeScript examples
- Query
viewishistory. Default islibrary.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
prompt_id | query | string (uuid) | Yes | |
brand_id | query | string (uuid) | Yes | |
limit | query | integer | No | |
offset | query | integer | No | |
view | query | "history" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "prompt_id=$PROMPT_ID" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=history'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.checks | array of object | Yes | |
data.checks[].answers | array of object | Yes | |
data.checks[].answers[].answer | object | null | Yes | |
data.checks[].answers[].answer.answer_text | string | Conditional | |
data.checks[].answers[].answer.answer_text_truncated | boolean | Conditional | |
data.checks[].answers[].answer.brand_cited | boolean | Conditional | |
data.checks[].answers[].answer.brand_mentioned | boolean | null | Conditional | |
data.checks[].answers[].answer.citations | array of object | Conditional | |
data.checks[].answers[].answer.citations[].order | integer | Conditional | |
data.checks[].answers[].answer.citations[].url | string | Conditional | |
data.checks[].answers[].answer.excerpt | string | Conditional | |
data.checks[].answers[].answer.truncated | boolean | Conditional | |
data.checks[].answers[].check_created_at | string (date-time) | Yes | |
data.checks[].answers[].check_id | string (uuid) | Yes | |
data.checks[].answers[].collected_at | string | null | Yes | |
data.checks[].answers[].last_error | string | null | Yes | |
data.checks[].answers[].mode | string | null | Yes | |
data.checks[].answers[].observation_id | string | null | Yes | |
data.checks[].answers[].platform | string | null | Yes | |
data.checks[].answers[].prompt_id | string (uuid) | Yes | |
data.checks[].answers[].state | string | Yes | |
data.checks[].answers[].step_id | string | Yes | |
data.checks[].answers[].version_id | string | null | Yes | |
data.checks[].check | object | Yes | |
data.checks[].check.billed_units | integer | Yes | |
data.checks[].check.completed_at | string | null | Yes | |
data.checks[].check.created_at | string (date-time) | Yes | |
data.checks[].check.error_code | string | null | Yes | |
data.checks[].check.id | string (uuid) | Yes | |
data.checks[].check.state | string | Yes | |
data.checks[].check.steps_cancelled | integer | Yes | |
data.checks[].check.steps_failed | integer | Yes | |
data.checks[].check.steps_succeeded | integer | Yes | |
data.checks[].check.steps_total | integer | Yes | |
data.checks[].prompt_id | string (uuid) | Yes | |
data.checks[].prompt_text | string | null | No | |
data.checks[].prompt_version | integer | null | No | |
data.checks[].version_id | string | null | Yes | |
data.next_offset | integer | null | Yes | |
data.prompt_id | string (uuid) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Suggest Topicstopic_suggestions
Open this request with Python and TypeScript examples
- Query
viewistopic_suggestions. Default islibrary.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
query | query | string | Yes | |
view | query | "topic_suggestions" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode "query=$QUERY" \
--data-urlencode 'view=topic_suggestions'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].id | string (uuid) | Yes | ID of a matching active prompt. Pass this ID in prompt_ids when you save the topic. |
data[].text | string | Yes | Current prompt text. |
data[].version | integer | Yes | Current prompt version. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Setsets
Open this request with Python and TypeScript examples
- Query
viewissets.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
website | query | string | null | No | |
view | query | "sets" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=sets'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.website | string | null | Yes | |
data.prompts | array of object | Yes | Approved prompt IDs and versions. |
data.prompts[].prompt_id | string (uuid) | Yes | |
data.prompts[].version | integer | Yes | |
data.prompt_set_revision | string | null | Yes | Send this value as previous_revision when you replace the set. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
List Topicstopics
Open this request with Python and TypeScript examples
- Query
viewistopics.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
view | query | "topics" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=topics'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].id | string (uuid) | Yes | |
data[].brand_id | string (uuid) | Yes | |
data[].name | string | Yes | |
data[].revision | integer | Yes | Current revision. Use it when you edit this record. |
data[].prompt_ids | array of string (uuid) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
POST /v2/prompts
Create, import, or preview prompts
Create a prompt or generate suggestionscreate
Open this request with Python and TypeScript examples
- Body
actioniscreate.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"action": "create",
"category_ids": [
"gcid:plumber"
],
"intent": "evaluation",
"market": {
"city": "Chicago",
"country": "US",
"language": "en"
},
"text": "What should homeowners compare when choosing a plumber in Chicago?"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "create" | Yes | |
allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
brand_id | string (uuid) | null | No | |
category_ids | array of string | null | Yes | |
intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Yes | |
market | object | Yes | |
market.city | string | null | null | No | |
market.country | string | Yes | |
market.language | string | Yes | |
market.region | string | null | null | No | |
tags | array of string | null | No | |
text | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 201
Create a prompt or generate suggestions result.
| Name | Type | Required | Description |
|---|---|---|---|
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"brand_id": null,
"category_ids": [],
"cohort_version": "example",
"created_at": "2026-11-06T00:00:00Z",
"id": "00000000-0000-4000-8000-000000000001",
"intent": "example",
"market": {
"country": "US",
"language": "example"
},
"revision": 1,
"scope": "shared",
"status": "active",
"tags": [],
"text": "example",
"version": 1
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | null | Yes | Identifies the brand this result belongs to. |
data.category_ids | array of string | null | Yes | |
data.cohort_version | string | null | Yes | |
data.created_at | string (date-time) | Yes | |
data.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.id | string (uuid) | Yes | |
data.intent | string | null | Yes | |
data.market | object | Yes | |
data.market.city | string | null | null | No | |
data.market.country | string | Yes | |
data.market.language | string | Yes | |
data.market.region | string | null | null | No | |
data.revision | integer | Yes | |
data.scope | "shared" | "private" | Yes | |
data.similar_prompts | array of object | No | Other matching prompts in your library. |
data.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.status | "active" | "archived" | "deletion_pending" | Yes | |
data.tags | array of string | null | Yes | |
data.text | string | Yes | |
data.version | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Create a prompt or generate suggestionsbuild
Open this request with Python and TypeScript examples
- Body
actionisbuild.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"action": "build",
"category_ids": [
"gcid:dentist"
],
"count": 5,
"intent": "local",
"market": {
"city": "Chicago",
"country": "US",
"language": "en"
},
"max_units": 100,
"neutral_discovery": true,
"template_id": "neutral-service-choice"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "build" | Yes | |
brand_id | string (uuid) | null | No | |
category_ids | array of string | Yes | |
count | integer | Yes | |
intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Yes | |
local_intent | boolean | No | |
location_id | string (uuid) | No | |
market | object | Yes | |
market.city | string | null | null | No | |
market.country | string | Yes | |
market.language | string | Yes | |
market.region | string | null | null | No | |
max_units | integer | Yes | |
need_text | string | No | |
neutral_discovery | true | No | |
template_id | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Suggestion job queued. Poll collections/{id}.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "00000000-0000-4000-8000-000000000001",
"kind": "prompt_generation",
"poll_url": "https://api.aeoapi.dev/v2/runs/job:00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string (uuid) | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Create a prompt or generate suggestionsgenerate
Open this request with Python and TypeScript examples
- Body
actionisgenerate.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"action": "generate",
"category_ids": [
"example"
],
"count": 20,
"intents": [
"discovery"
],
"market": {
"country": "US",
"language": "example"
},
"max_units": 1
}| Name | Type | Required | Description |
|---|---|---|---|
action | "generate" | Yes | |
audit_id | string (uuid) | null | No | |
brand_id | string (uuid) | null | No | |
category_ids | array of string | null | Yes | |
count | integer | Yes | |
intents | array of "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Yes | |
market | object | Yes | |
market.city | string | null | null | No | |
market.country | string | Yes | |
market.language | string | Yes | |
market.region | string | null | null | No | |
max_units | integer | Yes | |
method | "web" | "model" | No | Choose how to generate prompt suggestions. |
neutral_discovery | boolean | No |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Suggestion job queued. Poll collections/{id}.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "00000000-0000-4000-8000-000000000001",
"kind": "prompt_generation",
"poll_url": "https://api.aeoapi.dev/v2/runs/job:00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string (uuid) | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Post Importimport
Open this request with Python and TypeScript examples
- Body
actionisimport.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"action": "import",
"brand_id": "00000000-0000-4000-8000-000000000001",
"content": "How do I set up shared billing?",
"format": "newline"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "import" | Yes | |
allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
brand_id | string (uuid) | Yes | |
content | string | null | No | |
defaults | object | No | |
defaults.category_ids | array of string | null | No | |
defaults.intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | No | The purpose of the prompt. |
defaults.market | object | null | No | |
defaults.market.city | string | null | No | |
defaults.market.country | string | Conditional | |
defaults.market.language | string | Conditional | |
defaults.market.region | string | null | No | |
defaults.tags | array of string | No | |
format | "manual" | "newline" | "csv" | Yes | |
rows | array of object | null | No | |
rows.category_ids | array of string | null | No | |
rows.intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | null | No | |
rows.market | object | null | No | |
rows.market.city | string | null | No | |
rows.market.country | string | Conditional | |
rows.market.language | string | Conditional | |
rows.market.region | string | null | No | |
rows.metadata | object | No | |
rows.metadata.audience_ids | array of string (uuid) | No | |
rows.metadata.group_ids | array of string (uuid) | No | |
rows.metadata.product_ids | array of string (uuid) | No | |
rows.metadata.service_ids | array of string (uuid) | No | |
rows.metadata.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | |
rows.tags | array of string | No | |
rows.text | string | Conditional |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 201
Prompt batch created
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.imported | integer | Yes | |
data.prompts | array of object | Yes | |
data.prompts[].brand_id | string (uuid) | null | Yes | |
data.prompts[].category_ids | array of string | null | Yes | |
data.prompts[].cohort_version | string | null | Yes | |
data.prompts[].created_at | string (date-time) | Yes | |
data.prompts[].duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.prompts[].id | string (uuid) | Yes | |
data.prompts[].intent | string | null | Yes | |
data.prompts[].market | object | Yes | |
data.prompts[].market.city | string | null | null | No | |
data.prompts[].market.country | string | Yes | |
data.prompts[].market.language | string | Yes | |
data.prompts[].market.region | string | null | null | No | |
data.prompts[].revision | integer | Yes | |
data.prompts[].scope | "shared" | "private" | Yes | |
data.prompts[].similar_prompts | array of object | No | Other matching prompts in your library. |
data.prompts[].similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.prompts[].status | "active" | "archived" | "deletion_pending" | Yes | |
data.prompts[].tags | array of string | null | Yes | |
data.prompts[].text | string | Yes | |
data.prompts[].version | integer | Yes | |
data.prompts[].metadata | object | Yes | |
data.prompts[].metadata.audience_ids | array of string (uuid) | Yes | |
data.prompts[].metadata.group_ids | array of string (uuid) | Yes | |
data.prompts[].metadata.product_ids | array of string (uuid) | Yes | |
data.prompts[].metadata.service_ids | array of string (uuid) | Yes | |
data.prompts[].metadata.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Create a prompt or generate suggestionspreview_local
Open this request with Python and TypeScript examples
- Body
actionispreview. - Body
sourceislocal.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"action": "preview",
"category_ids": [
"gcid:dentist"
],
"count": 5,
"intent": "local",
"market": {
"city": "Chicago",
"country": "US",
"language": "en"
},
"max_units": 100,
"neutral_discovery": true,
"source": "local",
"template_id": "neutral-service-choice",
"location_id": "00000000-0000-4000-8000-000000011571"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "preview" | Yes | |
brand_id | string (uuid) | null | No | |
category_ids | array of string | Yes | |
count | integer | Yes | |
intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Yes | |
local_intent | boolean | No | |
location_id | string (uuid) | Yes | |
market | object | Yes | |
market.city | string | null | null | No | |
market.country | string | Yes | |
market.language | string | Yes | |
market.region | string | null | null | No | |
max_units | integer | Yes | |
need_text | string | No | |
neutral_discovery | true | No | |
source | "local" | Yes | |
template_id | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Local prompt suggestions.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | Suggestions are unpersisted; explicitly create selected prompts. |
data.details | array of object | No | |
data.details[].rationale | string | Conditional | |
data.details[].suggestion_index | integer | Conditional | |
data.details[].template_version | string | Conditional | |
data.details[].warnings | array of string | Conditional | |
data.kind | "prompt_generation" | Yes | |
data.outcome | object | No | Explains why the result contains no suggestions. |
data.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.suggestions | array of object | Yes | |
data.suggestions[].action | "create" | Yes | |
data.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.suggestions[].brand_id | string (uuid) | null | No | |
data.suggestions[].category_ids | array of string | null | Yes | |
data.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Yes | |
data.suggestions[].market | object | Yes | |
data.suggestions[].market.city | string | null | null | No | |
data.suggestions[].market.country | string | Yes | |
data.suggestions[].market.language | string | Yes | |
data.suggestions[].market.region | string | null | null | No | |
data.suggestions[].tags | array of string | null | No | |
data.suggestions[].text | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Preview Hubspotpreview_hubspot
Open this request with Python and TypeScript examples
- Body
actionispreview. - Body
sourceishubspot.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write, brands:read
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
X-HubSpot-Access-Token | header | string (password) | Yes | Customer-held HubSpot conversations.read credential. Required when enabling or pulling from a connector. |
Request body
{
"action": "preview",
"brand_id": "00000000-0000-4000-8000-000000000001",
"inbox_id": "17",
"source": "hubspot",
"threads": [
{
"permission": "customer_permitted",
"permission_expires_at": "2026-12-24T10:00:00Z",
"thread_id": "25"
}
]
}| Name | Type | Required | Description |
|---|---|---|---|
action | "preview" | Yes | |
brand_id | string (uuid) | Yes | |
inbox_id | string | Yes | |
limit | integer | No | |
market | object | null | No | |
market.city | string | null | No | |
market.country | string | Conditional | |
market.language | string | Conditional | |
market.region | string | null | No | |
source | "hubspot" | Yes | |
threads | array of object | Yes | |
threads[].cursor | string | null | No | |
threads[].known_latest_message_at | string (date-time) | null | No | |
threads[].permission | "customer_permitted" | Yes | |
threads[].permission_expires_at | string (date-time) | Yes | |
threads[].thread_id | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "X-HubSpot-Access-Token: $X_HUBSPOT_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.questions | array of object | Yes | |
data.questions[].draft | object | Yes | |
data.questions[].draft.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.questions[].draft.id | string (uuid) | Yes | |
data.questions[].draft.intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | No | The purpose of the prompt. |
data.questions[].draft.market | object | null | No | |
data.questions[].draft.market.city | string | null | No | |
data.questions[].draft.market.country | string | Conditional | |
data.questions[].draft.market.language | string | Conditional | |
data.questions[].draft.market.region | string | null | No | |
data.questions[].draft.metadata | object | No | |
data.questions[].draft.metadata.audience_ids | array of string (uuid) | No | |
data.questions[].draft.metadata.group_ids | array of string (uuid) | No | |
data.questions[].draft.metadata.product_ids | array of string (uuid) | No | |
data.questions[].draft.metadata.service_ids | array of string (uuid) | No | |
data.questions[].draft.metadata.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | |
data.questions[].draft.similar_prompts | array of object | No | Other matching prompts in your library. |
data.questions[].draft.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.questions[].draft.source_ref | string | Yes | |
data.questions[].draft.text | string | Yes | |
data.questions[].redacted | boolean | Yes | |
data.questions[].source | object | Yes | |
data.questions[].source.reference | string | Yes | |
data.questions[].source.turn | integer | Yes | |
data.review_required | true | Yes | |
data.skipped | object | Yes | |
data.skipped.[key] | integer | No | Value for each key. |
data.supported_languages | array of string | Yes | |
data.threads | array of object | Yes | |
data.threads[].latest_message_at | string (date-time) | Yes | |
data.threads[].next_cursor | string | null | Yes | |
data.threads[].status | "unchanged" | "processed" | "partial" | Yes | |
data.threads[].thread_id | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Post Conversation Previewpreview_conversations
Open this request with Python and TypeScript examples
- Body
actionispreview. - Body
sourceisconversations.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write, brands:read
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
The contract lists no fields for this section.
Request body
{
"action": "preview",
"brand_id": "00000000-0000-4000-8000-000000000001",
"conversations": [
{
"permission": "customer_permitted",
"source_ref": "example-thread",
"turns": [
{
"speaker": "customer",
"text": "How do I set up shared billing?"
}
]
}
],
"source": "conversations"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "preview" | Yes | |
brand_id | string (uuid) | Yes | |
conversations | array of object | Yes | |
conversations[].market | object | null | No | |
conversations[].market.city | string | null | No | |
conversations[].market.country | string | Conditional | |
conversations[].market.language | string | Conditional | |
conversations[].market.region | string | null | No | |
conversations[].permission | "customer_permitted" | Yes | |
conversations[].source_ref | string | Yes | |
conversations[].turns | array of object | Yes | |
conversations[].turns[].speaker | "customer" | "staff" | Yes | |
conversations[].turns[].text | string | Yes | |
limit | integer | No | |
source | "conversations" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.questions | array of object | Yes | |
data.questions[].draft | object | Yes | |
data.questions[].draft.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.questions[].draft.id | string (uuid) | Yes | |
data.questions[].draft.intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Yes | The purpose of the prompt. |
data.questions[].draft.market | object | null | Yes | |
data.questions[].draft.market.city | string | null | No | |
data.questions[].draft.market.country | string | Conditional | |
data.questions[].draft.market.language | string | Conditional | |
data.questions[].draft.market.region | string | null | No | |
data.questions[].draft.metadata | object | Yes | |
data.questions[].draft.metadata.audience_ids | array of string (uuid) | Yes | |
data.questions[].draft.metadata.group_ids | array of string (uuid) | Yes | |
data.questions[].draft.metadata.product_ids | array of string (uuid) | Yes | |
data.questions[].draft.metadata.service_ids | array of string (uuid) | Yes | |
data.questions[].draft.metadata.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Yes | |
data.questions[].draft.similar_prompts | array of object | No | Other matching prompts in your library. |
data.questions[].draft.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.questions[].draft.source_ref | string | Yes | |
data.questions[].draft.text | string | Yes | |
data.questions[].source | object | Yes | |
data.questions[].source.reference | string | Yes | |
data.questions[].source.turn | integer | Yes | |
data.questions[].redacted | boolean | Yes | |
data.review_required | true | Yes | |
data.supported_languages | array of string | Yes | |
data.skipped | object | Yes | Skipped items grouped by reason. |
data.skipped.[key] | integer | No | Value for each key. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
PATCH /v2/prompts
Update prompts, prompt sets, or topics
Version, archive or request prompt deletionupdate
Open this request with Python and TypeScript examples
- Body
actionisupdate.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
If-Match | header | string | Yes | Resource/config revision ETag; mismatch returns 412. |
Request body
{
"action": "update",
"prompt_id": "00000000-0000-4000-8000-000000000001",
"text": "How should a homeowner compare plumbing services in Chicago?"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "update" | Yes | |
prompt_id | string (uuid) | Yes | |
status | "active" | "archived" | No | |
tags | array of string | null | No | |
text | string | No |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "If-Match: $IF_MATCH" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Version, archive or request prompt deletion result.
| Name | Type | Required | Description |
|---|---|---|---|
ETag | string | No | Current revision as a quoted integer. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"brand_id": null,
"category_ids": [],
"cohort_version": "example",
"created_at": "2026-11-06T00:00:00Z",
"id": "00000000-0000-4000-8000-000000000001",
"intent": "example",
"market": {
"country": "US",
"language": "example"
},
"revision": 1,
"scope": "shared",
"status": "active",
"tags": [],
"text": "example",
"version": 1
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | null | Yes | Identifies the brand this result belongs to. |
data.category_ids | array of string | null | Yes | |
data.cohort_version | string | null | Yes | |
data.created_at | string (date-time) | Yes | |
data.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.id | string (uuid) | Yes | |
data.intent | string | null | Yes | |
data.market | object | Yes | |
data.market.city | string | null | null | No | |
data.market.country | string | Yes | |
data.market.language | string | Yes | |
data.market.region | string | null | null | No | |
data.revision | integer | Yes | |
data.scope | "shared" | "private" | Yes | |
data.similar_prompts | array of object | No | Other matching prompts in your library. |
data.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.status | "active" | "archived" | "deletion_pending" | Yes | |
data.tags | array of string | null | Yes | |
data.text | string | Yes | |
data.version | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Version, archive or request prompt deletionarchive
Open this request with Python and TypeScript examples
- Body
actionisarchive.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
If-Match | header | string | Yes | Resource/config revision ETag; mismatch returns 412. |
Request body
{
"action": "archive",
"prompt_id": "00000000-0000-4000-8000-000000000001"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "archive" | Yes | |
prompt_id | string (uuid) | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "If-Match: $IF_MATCH" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Version, archive or request prompt deletion result.
| Name | Type | Required | Description |
|---|---|---|---|
ETag | string | No | Current revision as a quoted integer. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"brand_id": null,
"category_ids": [],
"cohort_version": "example",
"created_at": "2026-11-06T00:00:00Z",
"id": "00000000-0000-4000-8000-000000000001",
"intent": "example",
"market": {
"country": "US",
"language": "example"
},
"revision": 1,
"scope": "shared",
"status": "active",
"tags": [],
"text": "example",
"version": 1
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | null | Yes | Identifies the brand this result belongs to. |
data.category_ids | array of string | null | Yes | |
data.cohort_version | string | null | Yes | |
data.created_at | string (date-time) | Yes | |
data.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.id | string (uuid) | Yes | |
data.intent | string | null | Yes | |
data.market | object | Yes | |
data.market.city | string | null | null | No | |
data.market.country | string | Yes | |
data.market.language | string | Yes | |
data.market.region | string | null | null | No | |
data.revision | integer | Yes | |
data.scope | "shared" | "private" | Yes | |
data.similar_prompts | array of object | No | Other matching prompts in your library. |
data.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.status | "active" | "archived" | "deletion_pending" | Yes | |
data.tags | array of string | null | Yes | |
data.text | string | Yes | |
data.version | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Version, archive or request prompt deletionrequest_delete
Open this request with Python and TypeScript examples
- Body
actionisrequest_delete.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
If-Match | header | string | Yes | Resource/config revision ETag; mismatch returns 412. |
Request body
{
"action": "request_delete",
"prompt_id": "00000000-0000-4000-8000-000000000001",
"reason": "example"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "request_delete" | Yes | |
prompt_id | string (uuid) | Yes | |
reason | string | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "If-Match: $IF_MATCH" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Deletion queued.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "00000000-0000-4000-8000-000000000001",
"kind": "deletion",
"poll_url": "https://api.aeoapi.dev/v2/runs/job:00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string (uuid) | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Patch Prompt Batchbatch
Open this request with Python and TypeScript examples
- Body
actionisbatch.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"action": "batch",
"brand_id": "00000000-0000-4000-8000-000000000001",
"edits": [
{
"action": "archive",
"expected_revision": 1,
"prompt_id": "00000000-0000-4000-8000-000000000001"
}
]
}| Name | Type | Required | Description |
|---|---|---|---|
action | "batch" | Yes | |
brand_id | string (uuid) | Yes | |
edits | array of object | object | Yes | |
edits[].action | "metadata" | "archive" | Yes | |
edits[].expected_revision | integer | Yes | |
edits[].metadata | object | Conditional | |
edits[].metadata.audience_ids | array of string (uuid) | No | |
edits[].metadata.group_ids | array of string (uuid) | No | |
edits[].metadata.product_ids | array of string (uuid) | No | |
edits[].metadata.service_ids | array of string (uuid) | No | |
edits[].metadata.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No | |
edits[].prompt_id | string (uuid) | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.updated | integer | Yes | |
data.prompts | array of object | Yes | |
data.prompts[].brand_id | string (uuid) | null | Yes | |
data.prompts[].category_ids | array of string | null | Yes | |
data.prompts[].cohort_version | string | null | Yes | |
data.prompts[].created_at | string (date-time) | Yes | |
data.prompts[].duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.prompts[].id | string (uuid) | Yes | |
data.prompts[].intent | string | null | Yes | |
data.prompts[].market | object | Yes | |
data.prompts[].market.city | string | null | null | No | |
data.prompts[].market.country | string | Yes | |
data.prompts[].market.language | string | Yes | |
data.prompts[].market.region | string | null | null | No | |
data.prompts[].revision | integer | Yes | |
data.prompts[].scope | "shared" | "private" | Yes | |
data.prompts[].similar_prompts | array of object | No | Other matching prompts in your library. |
data.prompts[].similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.prompts[].status | "active" | "archived" | "deletion_pending" | Yes | |
data.prompts[].tags | array of string | null | Yes | |
data.prompts[].text | string | Yes | |
data.prompts[].version | integer | Yes | |
data.prompts[].metadata | object | Yes | |
data.prompts[].metadata.audience_ids | array of string (uuid) | Yes | |
data.prompts[].metadata.group_ids | array of string (uuid) | Yes | |
data.prompts[].metadata.product_ids | array of string (uuid) | Yes | |
data.prompts[].metadata.service_ids | array of string (uuid) | Yes | |
data.prompts[].metadata.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited
Patch Prompt Metadatametadata
Open this request with Python and TypeScript examples
- Body
actionismetadata.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | |
If-Match | header | string | Yes |
Request body
{
"action": "metadata",
"brand_id": "00000000-0000-4000-8000-000000000001",
"prompt_id": "00000000-0000-4000-8000-000000000001",
"stage": "evaluation"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "metadata" | Yes | |
audience_ids | array of string (uuid) | No | |
brand_id | string (uuid) | Yes | |
group_ids | array of string (uuid) | No | |
product_ids | array of string (uuid) | No | |
prompt_id | string (uuid) | Yes | |
service_ids | array of string (uuid) | No | |
stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | No |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "If-Match: $IF_MATCH" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
| Name | Type | Required | Description |
|---|---|---|---|
ETag | string | No | Current quoted resource revision |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | null | Yes | Identifies the brand this result belongs to. |
data.category_ids | array of string | null | Yes | |
data.cohort_version | string | null | Yes | |
data.created_at | string (date-time) | Yes | |
data.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.id | string (uuid) | Yes | |
data.intent | string | null | Yes | |
data.market | object | Yes | |
data.market.city | string | null | null | No | |
data.market.country | string | Yes | |
data.market.language | string | Yes | |
data.market.region | string | null | null | No | |
data.revision | integer | Yes | |
data.scope | "shared" | "private" | Yes | |
data.similar_prompts | array of object | No | Other matching prompts in your library. |
data.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.status | "active" | "archived" | "deletion_pending" | Yes | |
data.tags | array of string | null | Yes | |
data.text | string | Yes | |
data.version | integer | Yes | |
data.metadata | object | Yes | |
data.metadata.audience_ids | array of string (uuid) | Yes | |
data.metadata.group_ids | array of string (uuid) | Yes | |
data.metadata.product_ids | array of string (uuid) | Yes | |
data.metadata.service_ids | array of string (uuid) | Yes | |
data.metadata.stage | "awareness" | "consideration" | "evaluation" | "decision" | "retention" | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited
Put Setset
Open this request with Python and TypeScript examples
- Body
actionisset.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
website | query | string | null | No | |
Idempotency-Key | header | string | Yes |
Request body
{
"action": "set",
"prompts": [
{
"prompt_id": "00000000-0000-4000-8000-000000000001",
"version": 1
}
]
}| Name | Type | Required | Description |
|---|---|---|---|
action | "set" | Yes | |
previous_revision | string | null | No | |
prompts | array of object | Yes | |
prompts[].prompt_id | string (uuid) | Yes | |
prompts[].version | integer | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/prompts?brand_id=$BRAND_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.website | string | null | Yes | |
data.prompts | array of object | Yes | Approved prompt IDs and versions. |
data.prompts[].prompt_id | string (uuid) | Yes | |
data.prompts[].version | integer | Yes | |
data.prompt_set_revision | string | Yes | Send this value as previous_revision when you replace the set. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Put Topictopic
Open this request with Python and TypeScript examples
- Body
actionistopic.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
The contract lists no fields for this section.
Request body
{
"action": "topic",
"brand_id": "00000000-0000-4000-8000-000000000001",
"name": "Billing",
"prompt_ids": [
"00000000-0000-4000-8000-000000000001"
],
"topic_id": "00000000-0000-4000-8000-000000000001"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "topic" | Yes | |
brand_id | string (uuid) | Yes | |
expected_revision | integer | null | No | |
name | string | Yes | |
prompt_ids | array of string (uuid) | Yes | |
topic_id | string (uuid) | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.id | string (uuid) | Yes | |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.name | string | Yes | |
data.revision | integer | Yes | Current revision. Use it when you edit this record. |
data.prompt_ids | array of string (uuid) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Delete Topictopic_delete
Open this request with Python and TypeScript examples
- Body
actionistopic_delete.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
The contract lists no fields for this section.
Request body
{
"action": "topic_delete",
"brand_id": "00000000-0000-4000-8000-000000000001",
"expected_revision": 1,
"topic_id": "00000000-0000-4000-8000-000000000001"
}| Name | Type | Required | Description |
|---|---|---|---|
action | "topic_delete" | Yes | |
brand_id | string (uuid) | Yes | |
expected_revision | integer | Yes | |
topic_id | string (uuid) | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/prompts" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.id | string (uuid) | Yes | |
data.deleted | true | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
GET /v2/recommendations
Read recommendations and actions
Read diagnosis and recommended actionsdiagnosis
Open this request with Python and TypeScript examples
- Query
viewisdiagnosis. Default isdiagnosis.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- recommendations:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | brand_id |
status | query | "open" | "resolved" | "dismissed" | No | status |
type | query | "debugger" | "content" | "citation" | "technical" | "local" | No | type |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
view | query | "diagnosis" | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/recommendations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=diagnosis'Responses
HTTP 200
Read diagnosis and recommended actions result.
| Name | Type | Required | Description |
|---|---|---|---|
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": [],
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].action_type | "unblock_crawler" | "update_robots" | "add_schema" | "fix_schema" | "fix_business_facts" | "fix_listing" | No | |
data[].brand_id | string (uuid) | Yes | |
data[].confidence | number | Yes | |
data[].effort | "small" | "medium" | "large" | Yes | |
data[].evidence | object | No | |
data[].evidence_ids | array of string (uuid) | Yes | |
data[].expected_impact | string | Yes | |
data[].hypothesis | string | Yes | |
data[].id | string (uuid) | Yes | |
data[].location_id | string (uuid) | null | No | |
data[].owner_id | string (uuid) | null | Yes | |
data[].priority | integer | Yes | |
data[].priority_score | integer | No | |
data[].severity | "critical" | "high" | "medium" | "low" | "info" | Yes | |
data[].status | "open" | "resolved" | "dismissed" | Yes | |
data[].target_domain | string | null | No | |
data[].target_url | string | No | |
data[].title | string | null | Yes | |
data[].type | "debugger" | "content" | "citation" | "technical" | "local" | Yes | |
data[].verification | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Get Boardboard
Open this request with Python and TypeScript examples
- Query
viewisboard. Default isdiagnosis.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- recommendations:read, analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
- citation benchmark requirements. Scope
attribution:read. Plan Optimizer.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
report_id | query | string (uuid) | null | No | |
month | query | string | null | No | |
prompt_id | query | string (uuid) | null | No | |
status | query | "new" | "in_progress" | "completed" | "dismissed" | "archived" | "open" | "done" | No | |
channel | query | "site_audit" | "owned_content" | "social" | "outreach" | null | No | |
item_id | query | string (uuid) | null | No | |
include_citation_benchmark | query | boolean | No | |
include_citation_projection | query | boolean | No | |
priority | query | "high" | "medium" | "low" | null | No | |
assignee | query | string | null | No | |
content_type | query | string | null | No | |
limit | query | integer | No | |
offset | query | integer | No | |
location_id | query | string (uuid) | No | Limit to one location. |
action_type | query | "create_content" | "update_content" | "outreach" | "fix_listing" | "update_robots" | "unblock_crawler" | "add_schema" | "fix_schema" | "fix_business_facts" | No | |
view | query | "board" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/recommendations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=board'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.items | array of object | Yes | |
data.items[].action_type | "create_content" | "update_content" | "outreach" | "fix_listing" | "update_robots" | "unblock_crawler" | "add_schema" | "fix_schema" | "fix_business_facts" | No | |
data.items[].assignee | string | null | Yes | |
data.items[].brief | string | Yes | |
data.items[].channel | string | Yes | |
data.items[].citation_lift_benchmark | object | No | |
data.items[].citation_lift_benchmark.benchmark | object | null | Conditional | |
data.items[].citation_lift_benchmark.benchmark.action_channel | string | Conditional | |
data.items[].citation_lift_benchmark.benchmark.after_answer_target_pairs | integer | Conditional | |
data.items[].citation_lift_benchmark.benchmark.after_citing_target_pairs | integer | Conditional | |
data.items[].citation_lift_benchmark.benchmark.before_answer_target_pairs | integer | Conditional | |
data.items[].citation_lift_benchmark.benchmark.before_citing_target_pairs | integer | Conditional | |
data.items[].citation_lift_benchmark.benchmark.eligible_targets | integer | Conditional | |
data.items[].citation_lift_benchmark.benchmark.matched_target_cohorts | integer | Conditional | |
data.items[].citation_lift_benchmark.benchmark.mean_after_citation_rate | number | Conditional | |
data.items[].citation_lift_benchmark.benchmark.mean_before_citation_rate | number | Conditional | |
data.items[].citation_lift_benchmark.benchmark.mean_citation_rate_change_percentage_points | number | Conditional | |
data.items[].citation_lift_benchmark.benchmark.median_citation_rate_change_percentage_points | number | Conditional | |
data.items[].citation_lift_benchmark.benchmark.method | "equal_weighted_targets_and_matched_cohorts" | Conditional | |
data.items[].citation_lift_benchmark.benchmark.observational | true | Conditional | |
data.items[].citation_lift_benchmark.benchmark.report_generated_at | string | Conditional | |
data.items[].citation_lift_benchmark.benchmark.report_id | string | Conditional | |
data.items[].citation_lift_benchmark.benchmark.window_days | integer | Conditional | |
data.items[].citation_lift_benchmark.reason | "insufficient_access" | "no_saved_report" | "insufficient_eligible_targets" | "scan_limit_exceeded" | null | Conditional | |
data.items[].citation_projection | object | No | |
data.items[].citation_projection.projection | object | null | Conditional | |
data.items[].citation_projection.projection.action_channel | string | Conditional | |
data.items[].citation_projection.projection.baseline_answer_target_pairs | integer | Conditional | |
data.items[].citation_projection.projection.baseline_citation_rate | number | Conditional | |
data.items[].citation_projection.projection.evaluated_through_report_at | string | Conditional | |
data.items[].citation_projection.projection.evaluated_through_report_id | string | Conditional | |
data.items[].citation_projection.projection.fitted_on_report_at | string | Conditional | |
data.items[].citation_projection.projection.fitted_on_report_id | string | Conditional | |
data.items[].citation_projection.projection.forecast_percentage_points | number | Conditional | |
data.items[].citation_projection.projection.horizon_days | integer | Conditional | |
data.items[].citation_projection.projection.lower_percentage_points | number | Conditional | |
data.items[].citation_projection.projection.method | "median_period_change_with_chronological_holdout" | Conditional | |
data.items[].citation_projection.projection.observational | true | Conditional | |
data.items[].citation_projection.projection.target_url | string | Conditional | |
data.items[].citation_projection.projection.upper_percentage_points | number | Conditional | |
data.items[].citation_projection.reason | "owned_target_required" | "no_saved_report" | "insufficient_hindcast_history" | "insufficient_current_evidence" | "insufficient_matched_history" | "hindcast_quality_threshold" | "scan_limit_exceeded" | null | Conditional | |
data.items[].citation_projection.validation | object | null | Conditional | |
data.items[].citation_projection.validation.matching_cohorts | integer | Conditional | |
data.items[].citation_projection.validation.mean_absolute_error_percentage_points | number | null | Conditional | |
data.items[].citation_projection.validation.observed_interval_coverage | number | null | Conditional | |
data.items[].citation_projection.validation.training_periods | integer | Conditional | |
data.items[].citation_projection.validation.training_targets | integer | Conditional | |
data.items[].citation_projection.validation.validation_periods | integer | Conditional | |
data.items[].citation_projection.validation.validation_targets | integer | Conditional | |
data.items[].citation_projection.validation.zero_change_error_percentage_points | number | null | Conditional | |
data.items[].comparison_run_id | string | No | |
data.items[].content_type | string | Yes | |
data.items[].effort | string | No | |
data.items[].evidence | object | No | |
data.items[].evidence.answer_ids | array of string | Conditional | |
data.items[].evidence.competitors | array of string | Conditional | |
data.items[].evidence.engines | array of string | Conditional | |
data.items[].evidence.prompt_ids | array of string | Conditional | |
data.items[].evidence_ids | array of string | No | |
data.items[].expected_impact | string | No | |
data.items[].item_id | string | Yes | |
data.items[].location_id | string | null | No | |
data.items[].month | string | null | No | |
data.items[].origin | "current_recommendation" | "saved_citations" | "comparison_evidence" | "customer_review" | "citation_fix" | Yes | |
data.items[].outreach_outcome | "no_response" | "declined" | "accepted" | "published" | "other" | null | No | |
data.items[].page_id | string | No | |
data.items[].priority | string | Yes | |
data.items[].priority_basis | "customer_reviewed_buyer_question_match" | string | Yes | |
data.items[].priority_score | integer | No | |
data.items[].prompt_ids | array of string | No | |
data.items[].reason | string | No | |
data.items[].report_id | string | null | No | |
data.items[].resolved_by | object | null | No | |
data.items[].resolved_by.answer_id | string | null | Conditional | |
data.items[].resolved_by.basis | "page_check" | "answer" | Conditional | |
data.items[].resolved_by.observed_at | string | Conditional | |
data.items[].revision | integer | Yes | |
data.items[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.items[].source_domain | string | No | |
data.items[].source_url | string | No | |
data.items[].status | string | Yes | |
data.items[].supporting_answers | integer | No | |
data.items[].target_domain | string | null | No | |
data.items[].target_url | string | null | No | |
data.items[].title | string | Yes | |
data.items[].verification | string | Yes | |
data.next_offset | integer | null | Yes | |
data.owned_recommendation_projection | object | No | |
data.owned_recommendation_projection.distinct_targets_estimated | integer | Conditional | |
data.owned_recommendation_projection.distinct_targets_evaluated | integer | Conditional | |
data.owned_recommendation_projection.distinct_tracked_targets | integer | Conditional | |
data.owned_recommendation_projection.mean_estimated_target_change_percentage_points | number | null | Conditional | |
data.owned_recommendation_projection.method | "unweighted_mean_of_distinct_targets_with_estimates" | Conditional | |
data.owned_recommendation_projection.recommendations_considered | integer | Conditional | |
data.owned_recommendation_projection.recommendations_with_estimates | integer | Conditional | |
data.owned_recommendation_projection.status | "complete" | "partial" | "unknown" | Conditional | |
data.total | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read optimization review and execution stateaction_optimization
Open this request with Python and TypeScript examples
- Query
viewisaction. - Query
action_idstarts withoptimization:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
view | query | "action" | Yes | |
action_id | query | string | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/recommendations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=action' \
--data-urlencode "action_id=$ACTION_ID"Responses
HTTP 200
Read optimization review and execution state result.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "00000000-0000-4000-8000-000000000001",
"kind": "optimization",
"poll_url": "https://api.aeoapi.dev/v2/recommendations?view=action&action_id=optimization%3A00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | Value | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string (uuid) | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | "in_progress" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_action_id | string | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Get Actionaction_analyst_action
Open this request with Python and TypeScript examples
- Query
viewisaction. - Query
action_idstarts withanalyst_action:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
- Action kind content_draft. Scopes analytics:read, optimizations:read. Plans Optimizer.
- FAQ drafts also require this permission. Scope
prompts:read. - Action kind fresh_check. Scopes analytics:read, collections:read. Plans Optimizer, Analyzer.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
view | query | "action" | Yes | |
action_id | query | string | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/recommendations" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=action' \
--data-urlencode "action_id=$ACTION_ID"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.action_id | string | Yes | |
data.analyst_run_id | string | Yes | |
data.approved_at | string | null | Yes | |
data.approved_by | string | null | Yes | |
data.approved_max_credits | integer | null | Yes | |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.draft | object | null | Yes | |
data.draft_fingerprint | string | null | Yes | |
data.estimated_credits | integer | Yes | The expected credit cost for this selection. |
data.finding_id | string | Yes | |
data.kind | "content_draft" | "fresh_check" | Yes | |
data.maximum_credits | integer | Yes | The upper credit estimate for this selection. |
data.organization_facts_status | "partner_confirmed" | "pending_partner_confirmation" | null | Yes | |
data.passage_id | string | null | Yes | |
data.proposed_at | string | Yes | |
data.proposed_by | string | Yes | |
data.quote | object | null | Yes | |
data.run | object | null | Yes | |
data.run.brand_id | string | Conditional | |
data.run.charged_credits | integer | Conditional | |
data.run.check_id | string | null | Conditional | |
data.run.check_url | string | null | Conditional | |
data.run.citation_status | "in_progress" | "completed" | No | Citation preparation status for this run, when applicable. |
data.run.created_at | string | Conditional | |
data.run.estimated_credits | integer | Conditional | |
data.run.failure_reasons | array of "access_restricted" | "limit_reached" | "input_missing" | "approval_expired" | "cancelled" | "check_failed" | "check_incomplete" | Conditional | |
data.run.hold_reasons | array of "retry_pending" | "under_review" | Conditional | |
data.run.phase | string | null | Conditional | |
data.run.progress | object | Conditional | |
data.run.progress.by_location | array of object | No | |
data.run.progress.by_location[].by_source | array of object | Conditional | |
data.run.progress.by_location[].completed_steps | integer | Conditional | |
data.run.progress.by_location[].expected_steps | integer | Conditional | |
data.run.progress.by_location[].location_id | string (uuid) | Conditional | |
data.run.progress.by_source | array of object | Conditional | |
data.run.progress.completed_steps | integer | Conditional | |
data.run.progress.expected_steps | integer | Conditional | |
data.run.prompt_set_revision | string | Conditional | |
data.run.released_credits | integer | Conditional | |
data.run.report_id | string | null | Conditional | |
data.run.report_status | "pending" | "ready" | "not_available" | Conditional | |
data.run.report_url | string | null | Conditional | |
data.run.reserved_credits | integer | Conditional | |
data.run.run_id | string | Conditional | |
data.run.status | string | Conditional | |
data.run.updated_at | string | Conditional | |
data.run.website | string | null | Conditional | |
data.run_id | string | null | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "proposed" | "approved" | Yes | |
data.v2_action_id | string | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
PATCH /v2/recommendations
Update recommendations or act on a recommendation
Update Boardboard
Open this request with Python and TypeScript examples
- Body
sectionisboard.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write, analytics:read, recommendations:read
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"edits": [
{
"expected_revision": 0,
"item_id": "00000000-0000-4000-8000-000000000001",
"status": "in_progress"
}
],
"section": "board"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
edits | array of object | Yes | |
edits[].assignee | string | null | No | |
edits[].expected_revision | integer | Yes | |
edits[].item_id | string (uuid) | Yes | |
edits[].outreach_outcome | "no_response" | "declined" | "accepted" | "published" | "other" | null | No | Customer-reported outcome. Omit to keep it or send null to clear it. |
edits[].status | "new" | "in_progress" | "completed" | "dismissed" | "archived" | "open" | "done" | Yes | |
month | string | null | No | |
report_id | string (uuid) | null | No | |
section | "board" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/recommendations" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.updated | array of object | Yes | Board items from your request with their current revisions. |
data.updated[].item_id | string (uuid) | Yes | |
data.updated[].revision | integer | Yes | Current revision. Use it when you edit this record. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Simulate, draft, review or publish an optimizationact_optimization
Open this request with Python and TypeScript examples
- Body
sectionisact. - Body
workflowisoptimization.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- This operation can use credits.
- Billing access
- Required
- draft. Roles editor, owner, service.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"max_units": 1,
"recommendation_ids": [
"00000000-0000-4000-8000-000000000001"
],
"section": "act",
"target_url": "https://example.com/evidence",
"workflow": "optimization"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
connector_id | string (uuid) | null | No | |
max_units | integer | Yes | |
recommendation_ids | array of string (uuid) | Yes | |
section | "act" | Yes | |
target_url | string (uri) | Yes | |
workflow | "optimization" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/recommendations" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Simulate, draft, review or publish an optimization result.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "00000000-0000-4000-8000-000000000001",
"kind": "optimization",
"poll_url": "https://api.aeoapi.dev/v2/recommendations?view=action&action_id=optimization%3A00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | Value | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string (uuid) | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | "in_progress" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_action_id | string | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Proposeact_analyst_action
Open this request with Python and TypeScript examples
- Body
sectionisact. - Body
workflowisanalyst_action.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
- Action kind content_draft. Scopes analytics:read, optimizations:write. Plans Optimizer.
- FAQ drafts also require this permission. Scope
prompts:read. - Action kind fresh_check. Scopes analytics:read, collections:write. Plans Optimizer, Analyzer.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"analyst_run_id": "analyst:report.00000000-0000-4000-8000-000000000001.2026-10.2026-11",
"brand_id": "00000000-0000-4000-8000-000000000001",
"finding_id": "00000000-0000-4000-8000-000000000001",
"kind": "fresh_check",
"section": "act",
"workflow": "analyst_action"
}| Name | Type | Required | Description |
|---|---|---|---|
analyst_run_id | string | Yes | |
brand_id | string (uuid) | Yes | |
draft_format | "faq" | "organization_jsonld" | null | No | |
finding_id | string (uuid) | Yes | |
kind | "fresh_check" | "content_draft" | Yes | |
passage_id | string (uuid) | null | No | |
section | "act" | Yes | |
website | string | null | No | |
workflow | "analyst_action" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/recommendations" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 201
Created
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.action_id | string | Yes | |
data.analyst_run_id | string | Yes | |
data.approved_at | string | null | Yes | |
data.approved_by | string | null | Yes | |
data.approved_max_credits | integer | null | Yes | |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.draft | object | null | Yes | |
data.draft_fingerprint | string | null | Yes | |
data.estimated_credits | integer | Yes | The expected credit cost for this selection. |
data.finding_id | string | Yes | |
data.kind | "content_draft" | "fresh_check" | Yes | |
data.maximum_credits | integer | Yes | The upper credit estimate for this selection. |
data.organization_facts_status | "partner_confirmed" | "pending_partner_confirmation" | null | Yes | |
data.passage_id | string | null | Yes | |
data.proposed_at | string | Yes | |
data.proposed_by | string | Yes | |
data.quote | object | null | Yes | |
data.run | object | null | Yes | |
data.run.brand_id | string | Conditional | |
data.run.charged_credits | integer | Conditional | |
data.run.check_id | string | null | Conditional | |
data.run.check_url | string | null | Conditional | |
data.run.citation_status | "in_progress" | "completed" | No | Citation preparation status for this run, when applicable. |
data.run.created_at | string | Conditional | |
data.run.estimated_credits | integer | Conditional | |
data.run.failure_reasons | array of "access_restricted" | "limit_reached" | "input_missing" | "approval_expired" | "cancelled" | "check_failed" | "check_incomplete" | Conditional | |
data.run.hold_reasons | array of "retry_pending" | "under_review" | Conditional | |
data.run.phase | string | null | Conditional | |
data.run.progress | object | Conditional | |
data.run.progress.by_location | array of object | No | |
data.run.progress.by_location[].by_source | array of object | Conditional | |
data.run.progress.by_location[].completed_steps | integer | Conditional | |
data.run.progress.by_location[].expected_steps | integer | Conditional | |
data.run.progress.by_location[].location_id | string (uuid) | Conditional | |
data.run.progress.by_source | array of object | Conditional | |
data.run.progress.completed_steps | integer | Conditional | |
data.run.progress.expected_steps | integer | Conditional | |
data.run.prompt_set_revision | string | Conditional | |
data.run.released_credits | integer | Conditional | |
data.run.report_id | string | null | Conditional | |
data.run.report_status | "pending" | "ready" | "not_available" | Conditional | |
data.run.report_url | string | null | Conditional | |
data.run.reserved_credits | integer | Conditional | |
data.run.run_id | string | Conditional | |
data.run.status | string | Conditional | |
data.run.updated_at | string | Conditional | |
data.run.website | string | null | Conditional | |
data.run_id | string | null | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "proposed" | "approved" | Yes | |
data.v2_action_id | string | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Preview Articleact_editorial_preview
Open this request with Python and TypeScript examples
- Body
sectionisact. - Body
workflowiseditorial_preview.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write, analytics:read, recommendations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"item_id": "00000000-0000-4000-8000-000000000001",
"section": "act",
"sections": [
{
"heading": "Setup",
"passage_id": "00000000-0000-4000-8000-000000000001"
}
],
"title": "Shared billing",
"workflow": "editorial_preview"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
item_id | string (uuid) | Yes | |
month | string | null | No | |
report_id | string (uuid) | null | No | |
section | "act" | Yes | |
sections | array of object | Yes | |
sections[].heading | string | Yes | |
sections[].passage_id | string (uuid) | Yes | |
title | string | Yes | |
workflow | "editorial_preview" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/recommendations" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.article_text | string | Yes | |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.item_id | string | Yes | |
data.method | "customer_owned_passage_assembly" | Yes | |
data.sections | array of object | Yes | |
data.sections[].content_revision | string | Yes | |
data.sections[].heading | string | Yes | |
data.sections[].passage_id | string | Yes | |
data.sections[].source_url | string | Yes | |
data.sections[].text | string | Yes | |
data.sha256 | string | Yes | |
data.status | "editorial_draft" | Yes | |
data.title | string | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Simulate, draft, review or publish an optimizationdecide_optimization
Open this request with Python and TypeScript examples
- Body
sectionisdecide. - Body
action_idstarts withoptimization:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write
- Roles
- approver, owner
- Plans
- Optimizer
- Credits
- This operation can use credits.
- Billing access
- Required
- approve. Roles approver, owner.
- reject. Roles approver, owner.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"action_id": "optimization:00000000-0000-4000-8000-000000000001",
"artifact_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"decision": "approve",
"expected_revision": 1,
"reason": "example",
"section": "decide"
}| Name | Type | Required | Description |
|---|---|---|---|
action_id | string | Yes | |
artifact_sha256 | string | Yes | |
decision | "approve" | Yes | |
expected_revision | integer | Yes | |
reason | string | Yes | |
section | "decide" | Yes |
| Name | Type | Required | Description |
|---|---|---|---|
action_id | string | Yes | |
decision | "reject" | Yes | |
expected_revision | integer | Yes | |
reason | string | Yes | |
section | "decide" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/recommendations" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Simulate, draft, review or publish an optimization result.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "00000000-0000-4000-8000-000000000001",
"kind": "optimization",
"poll_url": "https://api.aeoapi.dev/v2/recommendations?view=action&action_id=optimization%3A00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | Value | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string (uuid) | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | "in_progress" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_action_id | string | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Approvedecide_analyst_action
Open this request with Python and TypeScript examples
- Body
sectionisdecide. - Body
action_idstarts withanalyst_action:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, owner
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
- Action kind content_draft. Scopes analytics:read, optimizations:write. Plans Optimizer.
- FAQ drafts also require this permission. Scope
prompts:read. - Action kind fresh_check. Scopes analytics:read, collections:write. Plans Optimizer, Analyzer.
- To approve a fresh check, use an owner key or an approver key that also has the editor or service role.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
For a content draft, copy data.draft_fingerprint from the proposal you reviewed and set max_credits to 0. For an organization_jsonld draft, check the organization facts and add "confirm_organization_facts": true.
{
"section": "decide",
"decision": "approve",
"brand_id": "00000000-0000-4000-8000-000000000001",
"action_id": "analyst_action:00000000-0000-4000-8000-000000000001",
"draft_fingerprint": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"max_credits": 0
}For a fresh check, read data.maximum_credits on the proposal. This example accepts a quote of 10 credits. Set max_credits to the cap you accept. The API returns HTTP 409 if the cap is below the quote.
{
"section": "decide",
"decision": "approve",
"brand_id": "00000000-0000-4000-8000-000000000001",
"action_id": "analyst_action:00000000-0000-4000-8000-000000000001",
"max_credits": 10
}| Name | Type | Required | Description |
|---|---|---|---|
action_id | string | Yes | |
brand_id | string (uuid) | Yes | |
confirm_organization_facts | boolean | Conditional | Set to true after checking the facts in an organization_jsonld draft. Omit it for other approvals. |
decision | "approve" | Yes | |
draft_fingerprint | string | null | Conditional | For a content draft, send the fingerprint from the reviewed proposal. Omit it for a fresh check. |
max_credits | integer | Yes | |
section | "decide" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/recommendations" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Draft approved
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.action_id | string | Yes | |
data.analyst_run_id | string | Yes | |
data.approved_at | string | Yes | |
data.approved_by | string | Yes | |
data.approved_max_credits | 0 | Yes | |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.draft | object | Yes | |
data.draft_fingerprint | string | Yes | |
data.estimated_credits | 0 | Yes | The expected credit cost for this selection. |
data.finding_id | string | Yes | |
data.kind | "content_draft" | Yes | |
data.maximum_credits | 0 | Yes | The upper credit estimate for this selection. |
data.organization_facts_status | "partner_confirmed" | null | Yes | |
data.passage_id | string | null | Yes | |
data.proposed_at | string | Yes | |
data.proposed_by | string | Yes | |
data.quote | null | Yes | |
data.run | null | Yes | |
data.run_id | null | Yes | Approving a draft does not start a run. |
data.status | "approved" | Yes | |
data.v2_action_id | string | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
HTTP 202
Fresh check accepted
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.action_id | string | Yes | |
data.analyst_run_id | string | Yes | |
data.approved_at | string | Yes | |
data.approved_by | string | Yes | |
data.approved_max_credits | integer | Yes | |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.draft | null | Yes | |
data.draft_fingerprint | null | Yes | |
data.estimated_credits | integer | Yes | The expected credit cost for this selection. |
data.finding_id | string | Yes | |
data.kind | "fresh_check" | Yes | |
data.maximum_credits | integer | Yes | The upper credit estimate for this selection. |
data.organization_facts_status | null | Yes | |
data.passage_id | null | Yes | |
data.proposed_at | string | Yes | |
data.proposed_by | string | Yes | |
data.quote | object | Yes | |
data.run | object | Yes | |
data.run.brand_id | string | Yes | |
data.run.charged_credits | integer | Yes | |
data.run.check_id | string | null | Yes | |
data.run.check_url | string | null | Yes | |
data.run.citation_status | "in_progress" | "completed" | No | Citation preparation status for this run, when applicable. |
data.run.created_at | string | Yes | |
data.run.estimated_credits | integer | Yes | |
data.run.failure_reasons | array of "access_restricted" | "limit_reached" | "input_missing" | "approval_expired" | "cancelled" | "check_failed" | "check_incomplete" | Yes | |
data.run.hold_reasons | array of "retry_pending" | "under_review" | Yes | |
data.run.phase | string | null | Yes | |
data.run.progress | object | Yes | |
data.run.progress.by_location | array of object | No | |
data.run.progress.by_location[].by_source | array of object | Conditional | |
data.run.progress.by_location[].completed_steps | integer | Conditional | |
data.run.progress.by_location[].expected_steps | integer | Conditional | |
data.run.progress.by_location[].location_id | string (uuid) | Conditional | |
data.run.progress.by_source | array of object | Yes | |
data.run.progress.completed_steps | integer | Yes | |
data.run.progress.expected_steps | integer | Yes | |
data.run.prompt_set_revision | string | Yes | |
data.run.released_credits | integer | Yes | |
data.run.report_id | string | null | Yes | |
data.run.report_status | "pending" | "ready" | "not_available" | Yes | |
data.run.report_url | string | null | Yes | |
data.run.reserved_credits | integer | Yes | |
data.run.run_id | string | Yes | |
data.run.status | string | Yes | |
data.run.updated_at | string | Yes | |
data.run.website | string | null | Yes | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "approved" | Yes | |
data.v2_action_id | string | No | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
GET /v2/reports
Read reports or compare report results
Read the baseline and measured follow-up for a client actionaction_outcome
Open this request with Python and TypeScript examples
- Query
viewisaction_outcome. Default isreport.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
- Action kind content_draft. Scopes analytics:read, optimizations:read. Plans Optimizer.
- To include question text in a draft outcome. Scope
prompts:read. - Action kind fresh_check. Scopes analytics:read, collections:read. Plans Optimizer, Analyzer.
- To include a linked check. Scope
collections:read.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
action_id | query | string | Yes | |
brand_id | query | string (uuid) | Yes | |
follow_up_action_id | query | string | No | |
view | query | "action_outcome" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/reports" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "action_id=$ACTION_ID" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=action_outcome'Responses
HTTP 200
Successful Response
application/json
Example generated from the response schema.
{
"data": {
"brand_id": "example",
"action": {
"action_id": "example",
"kind": "fresh_check",
"status": "proposed",
"proposed_at": "example",
"approved_at": null,
"draft_format": null,
"approved_max_credits": null,
"quoted_maximum_credits": 0
},
"baseline": {
"analyst_run_id": "example",
"analyst_run_url": "example",
"finding_id": "example",
"report_id": "example",
"report_url": "example",
"report_generated_at": "example",
"previous_month": "example",
"baseline_month": "example",
"finding": "example",
"previous_period": {
"valid_answers": 0,
"mentions": 0,
"mention_rate": null
},
"baseline_period": {
"valid_answers": 0,
"mentions": 0,
"mention_rate": null
},
"question": {
"prompt_id": "example",
"prompt_version": 0,
"text": null,
"brand_scope": "branded",
"classification_basis": "brand_term_match_r1"
},
"cohort": {
"engine": "example",
"ai_search": "example",
"provider": null,
"mode": "example",
"country": "example",
"region": null,
"city": null,
"language": "example",
"device": null,
"comparison_set_version": "example",
"analysis_version": "example"
}
},
"follow_up": null,
"measurement": {
"status": "not_measured",
"reason": "action_not_approved",
"before": {
"valid_answers": 0,
"mentions": 0,
"mention_rate": null
},
"after": null,
"mention_change_percentage_points": null,
"unmatched_valid_answers": null,
"invalid_or_missing_samples": null,
"warnings": []
},
"publication_status": "unpublished",
"interpretation": "example",
"usage_units": 0
},
"meta": {}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.action | object | Yes | |
data.action.action_id | string | Yes | |
data.action.approved_at | string | null | Yes | |
data.action.approved_max_credits | integer | null | Yes | |
data.action.draft_format | "faq" | "organization_jsonld" | null | Yes | |
data.action.kind | "fresh_check" | "content_draft" | Yes | |
data.action.proposed_at | string | Yes | |
data.action.quoted_maximum_credits | integer | Yes | |
data.action.status | "proposed" | "approved" | Yes | |
data.baseline | object | Yes | |
data.baseline.analyst_run_id | string | Yes | |
data.baseline.analyst_run_url | string | Yes | |
data.baseline.baseline_month | string | Yes | |
data.baseline.baseline_period | object | Yes | |
data.baseline.baseline_period.mention_rate | number | null | Yes | |
data.baseline.baseline_period.mentions | integer | Yes | |
data.baseline.baseline_period.valid_answers | integer | Yes | |
data.baseline.cohort | object | Yes | |
data.baseline.cohort.ai_search | string | Yes | The AI search product the answer came from, such as google_ai_overviews. |
data.baseline.cohort.analysis_version | string | Yes | |
data.baseline.cohort.city | string | null | Yes | |
data.baseline.cohort.comparison_set_version | string | Yes | |
data.baseline.cohort.country | string | Yes | |
data.baseline.cohort.device | string | null | Yes | |
data.baseline.cohort.engine | string | Yes | |
data.baseline.cohort.language | string | Yes | |
data.baseline.cohort.mode | string | Yes | |
data.baseline.cohort.provider | string | null | Yes | |
data.baseline.cohort.region | string | null | Yes | |
data.baseline.finding | string | Yes | |
data.baseline.finding_id | string | Yes | |
data.baseline.previous_month | string | Yes | |
data.baseline.previous_period | object | Yes | |
data.baseline.previous_period.mention_rate | number | null | Yes | |
data.baseline.previous_period.mentions | integer | Yes | |
data.baseline.previous_period.valid_answers | integer | Yes | |
data.baseline.question | object | Yes | |
data.baseline.question.brand_scope | "branded" | "unbranded" | "unknown" | Yes | |
data.baseline.question.classification_basis | "brand_term_match_r1" | "no_brand_term_match_r1" | "not_classified" | Yes | |
data.baseline.question.prompt_id | string | Yes | |
data.baseline.question.prompt_version | integer | Yes | |
data.baseline.question.text | string | null | Yes | |
data.baseline.report_generated_at | string | Yes | |
data.baseline.report_id | string | Yes | |
data.baseline.report_url | string | Yes | |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.follow_up | object | null | Yes | |
data.follow_up.action_id | string | Conditional | |
data.follow_up.approved_at | string | Conditional | |
data.follow_up.approved_max_credits | integer | Conditional | |
data.follow_up.charged_credits | integer | Conditional | |
data.follow_up.check_url | string | null | Conditional | |
data.follow_up.observation | object | null | Conditional | |
data.follow_up.observation.after | object | null | Conditional | |
data.follow_up.observation.after.mention_rate | number | null | Conditional | |
data.follow_up.observation.after.mentions | integer | Conditional | |
data.follow_up.observation.after.valid_answers | integer | Conditional | |
data.follow_up.observation.before | object | Conditional | |
data.follow_up.observation.before.mention_rate | number | null | Conditional | |
data.follow_up.observation.before.mentions | integer | Conditional | |
data.follow_up.observation.before.valid_answers | integer | Conditional | |
data.follow_up.observation.invalid_or_missing_samples | integer | null | Conditional | |
data.follow_up.observation.mention_change_percentage_points | number | null | Conditional | |
data.follow_up.observation.reason | "action_not_approved" | "draft_unpublished" | "report_pending" | "report_not_ready" | "analysis_version_changed" | "no_matched_valid_answers" | "matched_valid_answers" | Conditional | |
data.follow_up.observation.status | "not_measured" | "inconclusive" | "unchanged" | "measured" | Conditional | |
data.follow_up.observation.unmatched_valid_answers | integer | null | Conditional | |
data.follow_up.observation.warnings | array of string | Conditional | |
data.follow_up.prompt_segments | array of object | Conditional | |
data.follow_up.prompt_segments[].brand_scope | "branded" | "unbranded" | "unknown" | Conditional | |
data.follow_up.prompt_segments[].checked_prompt_versions | integer | Conditional | |
data.follow_up.prompt_segments[].invalid_or_missing_follow_up_samples | integer | Conditional | |
data.follow_up.prompt_segments[].matched_after | object | Conditional | |
data.follow_up.prompt_segments[].matched_after.mentions | integer | Conditional | |
data.follow_up.prompt_segments[].matched_after.valid_answers | integer | Conditional | |
data.follow_up.prompt_segments[].matched_before | object | Conditional | |
data.follow_up.prompt_segments[].matched_before.mentions | integer | Conditional | |
data.follow_up.prompt_segments[].matched_before.valid_answers | integer | Conditional | |
data.follow_up.prompt_segments[].matched_cohorts | integer | Conditional | |
data.follow_up.prompt_segments[].mean_cohort_change_percentage_points | number | null | Conditional | |
data.follow_up.prompt_segments[].unmatched_baseline_valid_answers | integer | Conditional | |
data.follow_up.prompt_segments[].unmatched_follow_up_valid_answers | integer | Conditional | |
data.follow_up.quoted_maximum_credits | integer | Conditional | |
data.follow_up.released_credits | integer | Conditional | |
data.follow_up.report_generated_at | string | null | Conditional | |
data.follow_up.report_id | string | null | Conditional | |
data.follow_up.report_status | "pending" | "ready" | "not_available" | Conditional | |
data.follow_up.report_url | string | null | Conditional | |
data.follow_up.reserved_credits | integer | Conditional | |
data.follow_up.run_id | string | Conditional | |
data.follow_up.run_status | string | Conditional | |
data.interpretation | string | Yes | |
data.measurement | object | Yes | |
data.measurement.after | object | null | Yes | |
data.measurement.after.mention_rate | number | null | Conditional | |
data.measurement.after.mentions | integer | Conditional | |
data.measurement.after.valid_answers | integer | Conditional | |
data.measurement.before | object | Yes | |
data.measurement.before.mention_rate | number | null | Yes | |
data.measurement.before.mentions | integer | Yes | |
data.measurement.before.valid_answers | integer | Yes | |
data.measurement.invalid_or_missing_samples | integer | null | Yes | |
data.measurement.mention_change_percentage_points | number | null | Yes | |
data.measurement.reason | "action_not_approved" | "draft_unpublished" | "report_pending" | "report_not_ready" | "analysis_version_changed" | "no_matched_valid_answers" | "matched_valid_answers" | Yes | |
data.measurement.status | "not_measured" | "inconclusive" | "unchanged" | "measured" | Yes | |
data.measurement.unmatched_valid_answers | integer | null | Yes | |
data.measurement.warnings | array of string | Yes | |
data.publication_status | "unpublished" | "not_applicable" | Yes | |
data.usage_units | 0 | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Reportreport
Open this request with Python and TypeScript examples
- Query
viewisreport. Default isreport.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
month | query | string | null | No | |
report_id | query | string (uuid) | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
topic_id | query | string | null | No | |
prompt_id | query | string (uuid) | null | No | |
view | query | "report" | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/reports" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=report'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.ai_searches | object | Yes | |
data.ai_searches.[key] | object | No | Value for each key. |
data.analysis_version | string | null | Yes | |
data.available_months | array of string | Yes | |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.competitors | array of object | Yes | |
data.engines | object | Yes | |
data.engines.[key] | object | No | Value for each key. |
data.generated_at | string | null | Yes | |
data.google_ai_overviews | object | Yes | |
data.google_ai_overviews.answers_with_citations | integer | Yes | |
data.google_ai_overviews.classified_answers | integer | Yes | |
data.google_ai_overviews.gaps | object | Yes | |
data.google_ai_overviews.gaps.[key] | integer | No | Value for each key. |
data.google_ai_overviews.mean_recorded_rank | number | null | Yes | |
data.google_ai_overviews.mentions | integer | Yes | |
data.google_ai_overviews.owned_citation_answers | integer | Yes | |
data.google_ai_overviews.ranked_answers | integer | Yes | |
data.google_ai_overviews.scheduled_samples | integer | Yes | |
data.google_ai_overviews.sentiment_counts | object | Yes | |
data.google_ai_overviews.sentiment_counts.[key] | integer | No | Value for each key. |
data.google_ai_overviews.valid_answers | integer | Yes | |
data.google_ai_overviews.valid_prompt_versions | integer | Yes | |
data.google_ai_overviews.visibility_score | number | null | Yes | |
data.history_starts_at | string | Yes | |
data.month | string | null | Yes | |
data.overall | object | Yes | |
data.overall.answers_with_citations | integer | Yes | |
data.overall.classified_answers | integer | Yes | |
data.overall.gaps | object | Yes | |
data.overall.gaps.[key] | integer | No | Value for each key. |
data.overall.mean_recorded_rank | number | null | Yes | |
data.overall.mentions | integer | Yes | |
data.overall.owned_citation_answers | integer | Yes | |
data.overall.ranked_answers | integer | Yes | |
data.overall.scheduled_samples | integer | Yes | |
data.overall.sentiment_counts | object | Yes | |
data.overall.sentiment_counts.[key] | integer | No | Value for each key. |
data.overall.valid_answers | integer | Yes | |
data.overall.valid_prompt_versions | integer | Yes | |
data.overall.visibility_score | number | null | Yes | |
data.prompts | array of object | Yes | |
data.report_id | string | null | Yes | |
data.topics | array of object | Yes | |
data.trends | array of object | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Compare Reportscompare
Open this request with Python and TypeScript examples
- Query
viewiscompare. Default isreport.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
from_month | query | string | Yes | |
to_month | query | string | Yes | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
topic_id | query | string | null | No | |
prompt_id | query | string (uuid) | null | No | |
view | query | "compare" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/reports" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode "from_month=$FROM_MONTH" \
--data-urlencode "to_month=$TO_MONTH" \
--data-urlencode 'view=compare'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.ai_search_comparisons | object | Yes | |
data.ai_search_comparisons.[key] | object | No | Value for each key. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.comparison | object | Yes | |
data.comparison.current_only | integer | Yes | |
data.comparison.matched_cohorts | integer | Yes | |
data.comparison.mention_change_percentage_points | number | null | Yes | |
data.comparison.previous_only | integer | Yes | |
data.from | object | Yes | |
data.from.ai_searches | object | Yes | |
data.from.ai_searches.[key] | object | No | Value for each key. |
data.from.competitors | array of object | Yes | |
data.from.competitors[].answer_mention_rate | number | Yes | |
data.from.competitors[].answers_without_brand | integer | Yes | |
data.from.competitors[].competitor_id | string (uuid) | Yes | |
data.from.competitors[].eligible_answers | integer | Yes | |
data.from.competitors[].mean_recorded_rank | number | null | Yes | |
data.from.competitors[].mentioned_answers | integer | Yes | |
data.from.competitors[].observed_name | string | null | Yes | |
data.from.competitors[].ranked_answers | integer | Yes | |
data.from.engines | object | Yes | |
data.from.engines.[key] | object | No | Value for each key. |
data.from.google_ai_overviews | object | Yes | |
data.from.google_ai_overviews.answers_with_citations | integer | Yes | |
data.from.google_ai_overviews.classified_answers | integer | Yes | |
data.from.google_ai_overviews.gaps | object | Yes | |
data.from.google_ai_overviews.gaps.[key] | integer | No | Value for each key. |
data.from.google_ai_overviews.mean_recorded_rank | number | null | Yes | |
data.from.google_ai_overviews.mentions | integer | Yes | |
data.from.google_ai_overviews.owned_citation_answers | integer | Yes | |
data.from.google_ai_overviews.ranked_answers | integer | Yes | |
data.from.google_ai_overviews.scheduled_samples | integer | Yes | |
data.from.google_ai_overviews.sentiment_counts | object | Yes | |
data.from.google_ai_overviews.sentiment_counts.[key] | integer | No | Value for each key. |
data.from.google_ai_overviews.valid_answers | integer | Yes | |
data.from.google_ai_overviews.valid_prompt_versions | integer | Yes | |
data.from.google_ai_overviews.visibility_score | number | null | Yes | |
data.from.month | string | Yes | |
data.from.overall | object | Yes | |
data.from.overall.answers_with_citations | integer | Yes | |
data.from.overall.classified_answers | integer | Yes | |
data.from.overall.gaps | object | Yes | |
data.from.overall.gaps.[key] | integer | No | Value for each key. |
data.from.overall.mean_recorded_rank | number | null | Yes | |
data.from.overall.mentions | integer | Yes | |
data.from.overall.owned_citation_answers | integer | Yes | |
data.from.overall.ranked_answers | integer | Yes | |
data.from.overall.scheduled_samples | integer | Yes | |
data.from.overall.sentiment_counts | object | Yes | |
data.from.overall.sentiment_counts.[key] | integer | No | Value for each key. |
data.from.overall.valid_answers | integer | Yes | |
data.from.overall.valid_prompt_versions | integer | Yes | |
data.from.overall.visibility_score | number | null | Yes | |
data.to | object | Yes | |
data.to.ai_searches | object | Yes | |
data.to.ai_searches.[key] | object | No | Value for each key. |
data.to.competitors | array of object | Yes | |
data.to.competitors[].answer_mention_rate | number | Yes | |
data.to.competitors[].answers_without_brand | integer | Yes | |
data.to.competitors[].competitor_id | string (uuid) | Yes | |
data.to.competitors[].eligible_answers | integer | Yes | |
data.to.competitors[].mean_recorded_rank | number | null | Yes | |
data.to.competitors[].mentioned_answers | integer | Yes | |
data.to.competitors[].observed_name | string | null | Yes | |
data.to.competitors[].ranked_answers | integer | Yes | |
data.to.engines | object | Yes | |
data.to.engines.[key] | object | No | Value for each key. |
data.to.google_ai_overviews | object | Yes | |
data.to.google_ai_overviews.answers_with_citations | integer | Yes | |
data.to.google_ai_overviews.classified_answers | integer | Yes | |
data.to.google_ai_overviews.gaps | object | Yes | |
data.to.google_ai_overviews.gaps.[key] | integer | No | Value for each key. |
data.to.google_ai_overviews.mean_recorded_rank | number | null | Yes | |
data.to.google_ai_overviews.mentions | integer | Yes | |
data.to.google_ai_overviews.owned_citation_answers | integer | Yes | |
data.to.google_ai_overviews.ranked_answers | integer | Yes | |
data.to.google_ai_overviews.scheduled_samples | integer | Yes | |
data.to.google_ai_overviews.sentiment_counts | object | Yes | |
data.to.google_ai_overviews.sentiment_counts.[key] | integer | No | Value for each key. |
data.to.google_ai_overviews.valid_answers | integer | Yes | |
data.to.google_ai_overviews.valid_prompt_versions | integer | Yes | |
data.to.google_ai_overviews.visibility_score | number | null | Yes | |
data.to.month | string | Yes | |
data.to.overall | object | Yes | |
data.to.overall.answers_with_citations | integer | Yes | |
data.to.overall.classified_answers | integer | Yes | |
data.to.overall.gaps | object | Yes | |
data.to.overall.gaps.[key] | integer | No | Value for each key. |
data.to.overall.mean_recorded_rank | number | null | Yes | |
data.to.overall.mentions | integer | Yes | |
data.to.overall.owned_citation_answers | integer | Yes | |
data.to.overall.ranked_answers | integer | Yes | |
data.to.overall.scheduled_samples | integer | Yes | |
data.to.overall.sentiment_counts | object | Yes | |
data.to.overall.sentiment_counts.[key] | integer | No | Value for each key. |
data.to.overall.valid_answers | integer | Yes | |
data.to.overall.valid_prompt_versions | integer | Yes | |
data.to.overall.visibility_score | number | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Rolluprollup
Open this request with Python and TypeScript examples
- Query
viewisrollup. Default isreport.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
month | query | string | null | No | |
engine | query | string | null | No | |
ai_search | query | string | null | No | The AI search product the answer came from, such as google_ai_overviews. |
view | query | "rollup" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/reports" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode 'view=rollup'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_count | integer | Yes | |
data.brands | array of object | Yes | |
data.brands[].answers_with_citations | integer | Yes | |
data.brands[].brand_id | string (uuid) | Yes | |
data.brands[].classified_answers | integer | Yes | |
data.brands[].gaps | object | Yes | |
data.brands[].gaps.[key] | integer | No | Value for each key. |
data.brands[].mean_recorded_rank | number | null | Yes | |
data.brands[].mentions | integer | Yes | |
data.brands[].month | string | null | Yes | |
data.brands[].name | string | Yes | |
data.brands[].owned_citation_answers | integer | Yes | |
data.brands[].ranked_answers | integer | Yes | |
data.brands[].scheduled_samples | integer | Yes | |
data.brands[].sentiment_counts | object | Yes | |
data.brands[].sentiment_counts.[key] | integer | No | Value for each key. |
data.brands[].valid_answers | integer | Yes | |
data.brands[].valid_prompt_versions | integer | Yes | |
data.brands[].visibility_score | number | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
PATCH /v2/reports
Create or revoke a report share link
Createshare_link_create
Open this request with Python and TypeScript examples
- Body
sectionisshare_link_create.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write, analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"month": "2026-11",
"section": "share_link_create"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
expires_in_days | integer | No | |
month | string | Yes | |
section | "share_link_create" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/reports" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 201
Created
application/json
Example generated from the response schema.
{
"data": {
"share_id": "00000000-0000-4000-8000-000000000001",
"share_path": "example",
"expires_at": "2026-01-01T00:00:00Z"
},
"meta": {
"request_id": "00000000-0000-4000-8000-000000000001",
"as_of": "2026-01-01T00:00:00Z"
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.expires_at | string (date-time) | Yes | |
data.share_id | string (uuid) | Yes | |
data.share_path | string (uri-reference) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Revokeshare_link_revoke
Open this request with Python and TypeScript examples
- Body
sectionisshare_link_revoke.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"section": "share_link_revoke",
"share_id": "00000000-0000-4000-8000-000000000001"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
section | "share_link_revoke" | Yes | |
share_id | string (uuid) | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X PATCH "$AEO_API_BASE_URL/v2/reports" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 204
No content
This response has no body.
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
GET /v2/runs
List managed runs or saved checks
List Runsmanaged
Open this request with Python and TypeScript examples
- Query
viewismanaged. Default ismanaged.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
cursor | query | string | null | No | |
limit | query | integer | No | |
view | query | "managed" | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=managed'Responses
HTTP 200
Successful Response
application/json
Example generated from the response schema.
{
"data": [],
"meta": {}
}| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | Yes | The requested result. See the fields below for its contents. |
data[].brand_id | string | Yes | |
data[].charged_credits | integer | Yes | |
data[].check_id | string | null | Yes | |
data[].check_url | string | null | Yes | |
data[].citation_status | "in_progress" | "completed" | No | Citation preparation status for this run, when applicable. |
data[].created_at | string | Yes | |
data[].estimated_credits | integer | Yes | |
data[].failure_reasons | array of "access_restricted" | "limit_reached" | "input_missing" | "approval_expired" | "cancelled" | "check_failed" | "check_incomplete" | Yes | |
data[].hold_reasons | array of "retry_pending" | "under_review" | Yes | |
data[].id | string | No | |
data[].phase | string | null | Yes | |
data[].progress | object | Yes | |
data[].progress.by_location | array of object | No | |
data[].progress.by_location[].by_source | array of object | Conditional | |
data[].progress.by_location[].completed_steps | integer | Conditional | |
data[].progress.by_location[].expected_steps | integer | Conditional | |
data[].progress.by_location[].location_id | string (uuid) | Conditional | |
data[].progress.by_source | array of object | Yes | |
data[].progress.completed_steps | integer | Yes | |
data[].progress.expected_steps | integer | Yes | |
data[].prompt_set_revision | string | Yes | |
data[].released_credits | integer | Yes | |
data[].report_id | string | null | Yes | |
data[].report_status | "pending" | "ready" | "not_available" | Yes | |
data[].report_url | string | null | Yes | |
data[].reserved_credits | integer | Yes | |
data[].run_id | string | Yes | |
data[].status | string | Yes | |
data[].updated_at | string | Yes | |
data[].v2_run_id | string | No | |
data[].website | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
List Checkssaved_checks
Open this request with Python and TypeScript examples
- Query
viewissaved_checks. Default ismanaged.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
brand_id | query | string (uuid) | Yes | |
limit | query | integer | No | |
offset | query | integer | No | |
view | query | "saved_checks" | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID" \
--data-urlencode 'view=saved_checks'Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.checks | array of object | Yes | |
data.checks[].id | string (uuid) | No | |
data.checks[].v2_run_id | string | No | |
data.next_offset | integer | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
POST /v2/runs
Start a workflow or get an estimate
Choose the operation with `workflow`. Set `estimate` to `true` to quote a workflow that supports estimates. An estimate starts no run and reserves no credits. Omit `estimate` or set it to `false` to start the workflow. Set `max_units` to cap the credits for workflows that accept it. Collect answers in three calls. Use `POST /v2/brands` to create a brand with inline prompts. Start `collect` with the returned `prompt_ids` and a `max_units` cap. Read the result with `GET /v2/runs/{run_id}`. The `collect` workflow has no estimate. Run a managed report in four calls when brand creation includes an enabled schedule. Create the brand, then request a `managed` estimate using the schedule's `website`. Start the run with the returned `estimate_fingerprint` and `prompt_set_revision`, then read the run. If brand creation omitted the enabled schedule, save a prompt set with `PATCH /v2/prompts` and `action: set` before requesting the estimate.
Collect or cancel workestimate_collect
Open this request with Python and TypeScript examples
- Body
workflowiscollect. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- The estimate uses zero credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"answer_mode": "standard",
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": true,
"market": {
"country": "US",
"language": "example"
},
"max_units": 0,
"prompt_ids": [
"00000000-0000-4000-8000-000000000001"
],
"sources": [
{
"mode": "ui_normal",
"platform": "chatgpt"
}
],
"workflow": "collect"
}| Name | Type | Required | Description |
|---|---|---|---|
all_locations | boolean | No | |
allow_country_level | boolean | No | Allow a country-level answer when the source cannot apply the requested location. |
answer_mode | "standard" | "new" | No | Use standard for the normal answer or new to request a new answer. |
brand_id | string (uuid) | Yes | |
estimate | true | Yes | |
location_ids | array of string (uuid) | No | |
market | object | Yes | |
market.city | string | null | null | No | |
market.country | string | Yes | |
market.language | string | Yes | |
market.latitude | number | null | No | |
market.location_id | string (uuid) | null | No | |
market.longitude | number | null | No | |
market.postal_code | string | null | No | |
market.region | string | null | null | No | |
max_units | integer | No | |
prompt_ids | array of string (uuid) | Yes | |
repeat_count | integer | No | |
sources | array of object | Yes | |
sources[].device | "desktop" | "mobile" | "unknown" | No | |
sources[].mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Yes | |
sources[].platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
sources[].provider | string | No | Optional source label for the selected platform and mode. An unsupported combination is rejected before the job starts. |
workflow | "collect" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Collection credit estimate.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.answer_count | integer | Yes | |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.eligible_engines | array of object | Yes | |
data.eligible_engines[].source | object | Yes | |
data.eligible_engines[].unenforced_controls | array of string | Yes | |
data.estimated_credits | integer | Yes | The expected credit cost for this selection. |
data.location_totals | array of object | No | |
data.location_totals[].eligible_engines | array of object | No | |
data.location_totals[].eligible_engines[].source | object | Conditional | |
data.location_totals[].eligible_engines[].unenforced_controls | array of string | Conditional | |
data.location_totals[].estimated_credits | integer | Conditional | |
data.location_totals[].location_id | string (uuid) | Conditional | |
data.location_totals[].market | object | Conditional | |
data.location_totals[].market.city | string | null | null | No | |
data.location_totals[].market.country | string | Conditional | |
data.location_totals[].market.language | string | Conditional | |
data.location_totals[].market.latitude | number | null | No | |
data.location_totals[].market.location_id | string (uuid) | No | |
data.location_totals[].market.longitude | number | null | No | |
data.location_totals[].market.postal_code | string | null | No | |
data.location_totals[].market.region | string | null | null | No | |
data.location_totals[].maximum_credits | integer | Conditional | |
data.location_totals[].prompt_count | integer | Conditional | |
data.maximum_credits | integer | Yes | The upper credit estimate for this selection. |
data.prompt_count | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Start a bounded authorized website auditaudit
Open this request with Python and TypeScript examples
- Body
workflowisaudit. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": false,
"max_pages": 100,
"max_units": 1,
"types": [
"technical"
],
"urls": [
"https://example.com/evidence"
],
"workflow": "audit"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
checks | array of "crawler_access" | "schema_consistency" | "business_facts" | null | No | Additional audit checks to run. |
estimate | false | No | |
listing_urls | array of string | No | Public listing URLs to compare with the profile. |
location_ids | array of string (uuid) | No | Brand locations to include in the comparisons. |
max_pages | integer | Yes | |
max_units | integer | Yes | |
profile | "instant" | "detailed" | No | |
types | array of "technical" | "content" | "agent" | Yes | |
urls | array of string (uri) | Yes | |
workflow | "audit" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Start a bounded authorized website audit result.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "audit:00000000-0000-4000-8000-000000000001",
"kind": "audit",
"poll_url": "https://api.aeoapi.dev/v2/runs/audit:00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z",
"v2_run_id": "audit:00000000-0000-4000-8000-000000000001"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "in_progress" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Collect or cancel workcollect
Open this request with Python and TypeScript examples
- Body
workflowiscollect. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"answer_mode": "standard",
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": false,
"market": {
"country": "US",
"language": "en"
},
"max_units": 1,
"prompt_ids": [
"00000000-0000-4000-8000-000000000001"
],
"sources": [
{
"mode": "ui_normal",
"platform": "chatgpt"
}
],
"workflow": "collect"
}| Name | Type | Required | Description |
|---|---|---|---|
all_locations | boolean | No | |
allow_country_level | boolean | No | Allow a country-level answer when the source cannot apply the requested location. |
answer_mode | "standard" | "new" | No | Use standard for the normal answer or new to request a new answer. |
brand_id | string (uuid) | Yes | |
estimate | false | No | |
location_ids | array of string (uuid) | No | |
market | object | Yes | |
market.city | string | null | null | No | |
market.country | string | Yes | |
market.language | string | Yes | |
market.latitude | number | null | No | |
market.location_id | string (uuid) | null | No | |
market.longitude | number | null | No | |
market.postal_code | string | null | No | |
market.region | string | null | null | No | |
max_units | integer | Yes | |
prompt_ids | array of string (uuid) | Yes | |
repeat_count | integer | No | |
sources | array of object | Yes | |
sources[].device | "desktop" | "mobile" | "unknown" | No | |
sources[].mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Yes | |
sources[].platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Yes | |
sources[].provider | string | No | Optional source label for the selected platform and mode. An unsupported combination is rejected before the job starts. |
workflow | "collect" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Collect or cancel work result.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "job:00000000-0000-4000-8000-000000000001",
"kind": "collection",
"poll_url": "https://api.aeoapi.dev/v2/runs/job:00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z",
"v2_run_id": "job:00000000-0000-4000-8000-000000000001"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Explainexplain_visibility_change
Open this request with Python and TypeScript examples
- Body
workflowisexplain_visibility_change. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": false,
"from_month": "2026-10",
"to_month": "2026-11",
"workflow": "explain_visibility_change"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
from_month | string | Yes | |
report_id | string (uuid) | null | No | |
to_month | string | Yes | |
workflow | "explain_visibility_change" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.after | object | Yes | |
data.after.gaps | object | Yes | |
data.after.gaps.[key] | integer | No | Value for each key. |
data.after.mentions | integer | Yes | |
data.after.month | string | Yes | |
data.after.scheduled_samples | integer | Yes | |
data.after.valid_answers | integer | Yes | |
data.before | object | Yes | |
data.before.gaps | object | Yes | |
data.before.gaps.[key] | integer | No | Value for each key. |
data.before.mentions | integer | Yes | |
data.before.month | string | Yes | |
data.before.scheduled_samples | integer | Yes | |
data.before.valid_answers | integer | Yes | |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.changed_groups | integer | Yes | |
data.comparison | object | Yes | |
data.comparison.current_only | integer | Yes | |
data.comparison.matched_cohorts | integer | Yes | |
data.comparison.mention_change_percentage_points | number | null | Yes | |
data.comparison.previous_only | integer | Yes | |
data.findings | array of object | Yes | |
data.findings[].after | object | Yes | |
data.findings[].after.mentions | integer | Yes | |
data.findings[].after.valid_answers | integer | Yes | |
data.findings[].ai_search | string | Yes | The AI search product the answer came from, such as google_ai_overviews. |
data.findings[].before | object | Yes | |
data.findings[].before.mentions | integer | Yes | |
data.findings[].before.valid_answers | integer | Yes | |
data.findings[].change_percentage_points | number | Yes | |
data.findings[].comparison_set_version | string | Yes | |
data.findings[].evidence | object | Yes | |
data.findings[].evidence.after | object | null | Yes | |
data.findings[].evidence.after.brand_mentioned | boolean | Conditional | |
data.findings[].evidence.after.cited_urls | array of string | Conditional | |
data.findings[].evidence.after.excerpt | string | Conditional | |
data.findings[].evidence.after.excerpt_truncated | boolean | Conditional | |
data.findings[].evidence.after.mention_in_excerpt | boolean | Conditional | |
data.findings[].evidence.after.observation_id | string | Conditional | |
data.findings[].evidence.after.origin | string | null | Conditional | |
data.findings[].evidence.before | object | null | Yes | |
data.findings[].evidence.before.brand_mentioned | boolean | Conditional | |
data.findings[].evidence.before.cited_urls | array of string | Conditional | |
data.findings[].evidence.before.excerpt | string | Conditional | |
data.findings[].evidence.before.excerpt_truncated | boolean | Conditional | |
data.findings[].evidence.before.mention_in_excerpt | boolean | Conditional | |
data.findings[].evidence.before.observation_id | string | Conditional | |
data.findings[].evidence.before.origin | string | null | Conditional | |
data.findings[].finding | string | Yes | |
data.findings[].finding_id | string | Yes | |
data.findings[].prompt_id | string | Yes | |
data.findings[].prompt_text | string | null | Yes | |
data.findings[].prompt_version | integer | Yes | |
data.findings[].source | object | Yes | |
data.report_id | string | Yes | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.summary | string | Yes | |
data.usage_units | integer | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
data.workflow | "explain_visibility_change" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Start Generationeditorial_generation
Open this request with Python and TypeScript examples
- Body
workflowiseditorial_generation. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:write, analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"draft_id": "00000000-0000-4000-8000-000000000001",
"estimate": false,
"expected_revision": 1,
"max_units": 100,
"quote_id": "qt_1001795737600AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"workflow": "editorial_generation"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
draft_id | string (uuid) | Yes | |
estimate | false | No | |
expected_revision | integer | Yes | |
max_units | integer | Yes | |
quote_id | string | Yes | |
workflow | "editorial_generation" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.candidate | object | null | No | |
data.candidate.body | string | Conditional | |
data.candidate.claim_support | array of object | Conditional | |
data.candidate.claim_support[].claim_text | string | Conditional | |
data.candidate.claim_support[].passage_id | string (uuid) | Conditional | |
data.candidate.claim_support[].source_excerpt | string | Conditional | |
data.candidate.title | string | Conditional | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.generation_id | string (uuid) | Yes | |
data.generator | "model" | "model:live" | "model:synthetic" | null | No | |
data.quote | object | Yes | |
data.quote.call_count | 1 | No | |
data.quote.charge_units | integer | Yes | |
data.quote.purpose | string | Yes | |
data.quote.reserve_units | integer | Yes | |
data.reason | string | null | No | |
data.source_revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Refresh Vitalspage_refresh
Open this request with Python and TypeScript examples
- Body
workflowispage_refresh. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": false,
"url": "https://example.com/product",
"workflow": "page_refresh"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
device | "ALL" | "PHONE" | "DESKTOP" | "TABLET" | No | |
estimate | false | No | |
url | string | Yes | |
workflow | "page_refresh" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | object | Yes | The requested result. See the fields below for its contents. |
data.all_vitals_good | boolean | null | Conditional | |
data.device | string | Yes | |
data.metrics | object | Conditional | |
data.metrics.[key] | object | No | Value for each key. |
data.period_end | string | Conditional | |
data.period_start | string | Conditional | |
data.source | "public_field_measurement" | "partner_field_measurement" | Conditional | |
data.url | string | Yes | |
data.status | "insufficient_data" | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Check Citationscitation_check
Open this request with Python and TypeScript examples
- Body
workflowiscitation_check. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:write, analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": false,
"max_pages": 100,
"max_units": 1,
"types": [
"technical"
],
"urls": [
"https://example.com/evidence"
],
"workflow": "citation_check"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
max_pages | integer | Yes | |
max_units | integer | Yes | |
profile | "instant" | "detailed" | No | |
types | array of "technical" | "content" | "agent" | Yes | |
urls | array of string (uri) | Yes | |
workflow | "citation_check" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Start a bounded authorized website audit result.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "citation_check:00000000-0000-4000-8000-000000000001",
"kind": "audit",
"poll_url": "https://api.aeoapi.dev/v2/runs/citation_check:00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z",
"v2_run_id": "citation_check:00000000-0000-4000-8000-000000000001"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "in_progress" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Start Runmanaged
Open this request with Python and TypeScript examples
- Body
workflowismanaged. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": false,
"estimate_fingerprint": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"prompt_set_revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"workflow": "managed"
}| Name | Type | Required | Description |
|---|---|---|---|
all_locations | boolean | No | |
brand_id | string (uuid) | Yes | |
estimate | false | No | |
estimate_fingerprint | string | Yes | |
location_ids | array of string (uuid) | No | |
prompt_set_revision | string | Yes | |
workflow | "managed" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Accepted
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.charged_credits | integer | Yes | |
data.check_id | string | null | Yes | |
data.check_url | string | null | Yes | |
data.citation_status | "in_progress" | "completed" | No | Citation preparation status for this run, when applicable. |
data.created_at | string | Yes | |
data.estimated_credits | integer | Yes | The expected credit cost for this selection. |
data.failure_reasons | array of "access_restricted" | "limit_reached" | "input_missing" | "approval_expired" | "cancelled" | "check_failed" | "check_incomplete" | Yes | |
data.hold_reasons | array of "retry_pending" | "under_review" | Yes | |
data.id | string | No | |
data.phase | string | null | Yes | |
data.progress | object | Yes | |
data.progress.by_location | array of object | No | |
data.progress.by_location[].by_source | array of object | Conditional | |
data.progress.by_location[].completed_steps | integer | Conditional | |
data.progress.by_location[].expected_steps | integer | Conditional | |
data.progress.by_location[].location_id | string (uuid) | Conditional | |
data.progress.by_source | array of object | Yes | |
data.progress.completed_steps | integer | Yes | |
data.progress.expected_steps | integer | Yes | |
data.prompt_set_revision | string | Yes | |
data.released_credits | integer | Yes | |
data.report_id | string | null | Yes | |
data.report_status | "pending" | "ready" | "not_available" | Yes | |
data.report_url | string | null | Yes | |
data.reserved_credits | integer | Yes | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | string | Yes | |
data.updated_at | string | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
data.website | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Bulk Startmanaged_batch
Open this request with Python and TypeScript examples
- Body
workflowismanaged_batch. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"estimate": false,
"items": [
{
"idempotency_key": "example-run-0001",
"request": {
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate_fingerprint": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"prompt_set_revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
],
"max_total_credits": 100,
"workflow": "managed_batch"
}| Name | Type | Required | Description |
|---|---|---|---|
estimate | false | No | |
items | array of object | Yes | |
items[].idempotency_key | string | Yes | |
items[].request | object | Yes | |
items[].request.brand_id | string (uuid) | Yes | |
items[].request.estimate_fingerprint | string | Yes | |
items[].request.prompt_set_revision | string | Yes | |
max_total_credits | integer | Yes | |
workflow | "managed_batch" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | object | Yes | The requested result. See the fields below for its contents. |
data[].brand_id | string (uuid) | Yes | |
data[].data | object | Conditional | |
data[].data.brand_id | string | Conditional | |
data[].data.charged_credits | integer | Conditional | |
data[].data.check_id | string | null | Conditional | |
data[].data.check_url | string | null | Conditional | |
data[].data.citation_status | "in_progress" | "completed" | No | Citation preparation status for this run, when applicable. |
data[].data.created_at | string | Conditional | |
data[].data.estimated_credits | integer | Conditional | |
data[].data.failure_reasons | array of "access_restricted" | "limit_reached" | "input_missing" | "approval_expired" | "cancelled" | "check_failed" | "check_incomplete" | Conditional | |
data[].data.hold_reasons | array of "retry_pending" | "under_review" | Conditional | |
data[].data.id | string | No | |
data[].data.phase | string | null | Conditional | |
data[].data.progress | object | Conditional | |
data[].data.progress.by_location | array of object | No | |
data[].data.progress.by_location[].by_source | array of object | Conditional | |
data[].data.progress.by_location[].completed_steps | integer | Conditional | |
data[].data.progress.by_location[].expected_steps | integer | Conditional | |
data[].data.progress.by_location[].location_id | string (uuid) | Conditional | |
data[].data.progress.by_source | array of object | Conditional | |
data[].data.progress.completed_steps | integer | Conditional | |
data[].data.progress.expected_steps | integer | Conditional | |
data[].data.prompt_set_revision | string | Conditional | |
data[].data.released_credits | integer | Conditional | |
data[].data.report_id | string | null | Conditional | |
data[].data.report_status | "pending" | "ready" | "not_available" | Conditional | |
data[].data.report_url | string | null | Conditional | |
data[].data.reserved_credits | integer | Conditional | |
data[].data.run_id | string | Conditional | |
data[].data.status | string | Conditional | |
data[].data.updated_at | string | Conditional | |
data[].data.v2_run_id | string | No | |
data[].data.website | string | null | Conditional | |
data[].idempotency_key | string | Yes | |
data[].status | 202 | integer | Yes | |
data[].error | object | Conditional | |
data[].error.code | string | Conditional | |
data[].error.field_errors | array of object | No | |
data[].error.field_errors[].field | string | null | Conditional | |
data[].error.field_errors[].message | string | Conditional | |
data[].error.message | string | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Pre-publish review evidenceprepublish_review
Open this request with Python and TypeScript examples
- Body
workflowisprepublish_review. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- Check the estimate for the selected delivery mode.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"draft_revision": "00000000-0000-4000-8000-000000000002",
"estimate": false,
"prompt_set_revision": "00000000-0000-4000-8000-000000000003",
"workflow": "prepublish_review"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
captures | object | No | |
captures.raw | string (uuid) | null | No | |
captures.rendered | string (uuid) | null | No | |
competitor_corpus_revision | string (uuid) | null | No | |
draft_revision | string (uuid) | Yes | |
estimate | false | No | |
fact_mode | "detailed" | null | No | Set to detailed to include capture metadata and unannotated price evidence. |
prompt_set_revision | string (uuid) | Yes | |
top_k | integer | No | |
workflow | "prepublish_review" | Yes |
| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
captures | object | No | |
captures.raw | string (uuid) | null | No | |
captures.rendered | string (uuid) | null | No | |
competitor_corpus_revision | string (uuid) | null | No | |
draft_revision | string (uuid) | Yes | |
estimate | false | No | |
estimate_id | string (uuid) | Yes | |
max_units | integer | Yes | |
prompt_set_revision | string (uuid) | Yes | |
simulation_options | object | Yes | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Yes | |
simulation_options.monitored_competitors | object | null | No | |
simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
simulation_options.monitored_competitors.limit | integer | No | |
simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
simulation_options.revision_ids | array of string (uuid) | No | |
top_k | integer | No | |
workflow | "prepublish_review" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Saved review accepted and ready to poll.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "prepublish_review" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.inline_result | object | No | Result returned on the first successful inline start. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "succeeded" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.workflow | "prepublish_review" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Retrieval benchmarkretrieval_benchmark
Open this request with Python and TypeScript examples
- Body
workflowisretrieval_benchmark. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- Check the estimate for the selected delivery mode.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"draft_revision": "00000000-0000-4000-8000-000000000002",
"estimate": false,
"prompt_ids": [
"franchise"
],
"prompt_set_revision": "00000000-0000-4000-8000-000000000003",
"ranker_version": "simulation-r1",
"workflow": "retrieval_benchmark"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
competitor_corpus_revision | string (uuid) | null | No | |
draft_revision | string (uuid) | Yes | |
estimate | false | No | |
observed_citations | array of object | No | Citation observations you recorded for these prompts. |
observed_citations[].observed_at | string (date-time) | Conditional | |
observed_citations[].prompt_id | string | Conditional | |
observed_citations[].source_reference | string | Conditional | |
observed_citations[].url | string | Conditional | |
prompt_ids | array of string | Yes | |
prompt_set_revision | string (uuid) | Yes | |
ranker_version | "simulation-r1" | Yes | |
top_k | integer | No | |
workflow | "retrieval_benchmark" | Yes |
| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
competitor_corpus_revision | string (uuid) | null | No | |
draft_revision | string (uuid) | Yes | |
estimate | false | No | |
estimate_id | string (uuid) | Yes | |
max_units | integer | Yes | |
observed_citations | array of object | No | |
observed_citations[].observed_at | string (date-time) | Conditional | |
observed_citations[].prompt_id | string | Conditional | |
observed_citations[].source_reference | string | Conditional | |
observed_citations[].url | string | Conditional | |
prompt_ids | array of string | Yes | |
prompt_set_revision | string (uuid) | Yes | |
simulation_options | object | Yes | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Yes | |
simulation_options.monitored_competitors | object | null | No | |
simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
simulation_options.monitored_competitors.limit | integer | No | |
simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
simulation_options.revision_ids | array of string (uuid) | No | |
top_k | integer | No | |
workflow | "retrieval_benchmark" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Saved review accepted and ready to poll.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "retrieval_benchmark" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.inline_result | object | No | Result returned on the first successful inline start. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "succeeded" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.workflow | "retrieval_benchmark" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Retrieval regressionretrieval_regression
Open this request with Python and TypeScript examples
- Body
workflowisretrieval_regression. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- Check the estimate for the selected delivery mode.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": false,
"production_revision": "00000000-0000-4000-8000-000000000003",
"prompt_ids": [
"franchise"
],
"prompt_set_revision": "00000000-0000-4000-8000-000000000004",
"ranker_version": "simulation-r1",
"staging_revision": "00000000-0000-4000-8000-000000000002",
"workflow": "retrieval_regression"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
facts | array of object | No | |
facts[].fact_id | string | Conditional | |
facts[].phrase | string | Conditional | |
facts[].prompt_id | string | Conditional | |
policy | object | No | |
policy.critical_prompt_ids | array of string | No | |
policy.max_coverage_drop | number | No | Maximum allowed decrease in the fraction of focus phrases found. |
policy.max_lost_facts | integer | No | |
policy.max_rank_drop | integer | No | |
policy.mode | "warning" | "blocking" | No | |
policy.on_pending | "inconclusive" | "fail" | No | |
production_index | "complete" | "partial" | No | Whether the production snapshot covers the full sample. |
production_revision | string (uuid) | Yes | |
prompt_ids | array of string | Yes | |
prompt_set_revision | string (uuid) | Yes | |
ranker_version | "simulation-r1" | Yes | |
staging_index | "complete" | "partial" | No | Whether the staging snapshot covers the full sample. |
staging_revision | string (uuid) | Yes | |
top_k | integer | No | |
workflow | "retrieval_regression" | Yes |
| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
estimate_id | string (uuid) | Yes | |
facts | array of object | No | |
facts[].fact_id | string | Conditional | |
facts[].phrase | string | Conditional | |
facts[].prompt_id | string | Conditional | |
max_units | integer | Yes | |
policy | object | No | |
policy.critical_prompt_ids | array of string | No | |
policy.max_coverage_drop | number | No | Maximum allowed decrease in the fraction of focus phrases found. |
policy.max_lost_facts | integer | No | |
policy.max_rank_drop | integer | No | |
policy.mode | "warning" | "blocking" | No | |
policy.on_pending | "inconclusive" | "fail" | No | |
production_index | "complete" | "partial" | No | Whether the production snapshot covers the full sample. |
production_revision | string (uuid) | Yes | |
prompt_ids | array of string | Yes | |
prompt_set_revision | string (uuid) | Yes | |
simulation_options | object | Yes | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Yes | |
simulation_options.monitored_competitors | object | null | No | |
simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
simulation_options.monitored_competitors.limit | integer | No | |
simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
simulation_options.revision_ids | array of string (uuid) | No | |
staging_index | "complete" | "partial" | No | Whether the staging snapshot covers the full sample. |
staging_revision | string (uuid) | Yes | |
top_k | integer | No | |
workflow | "retrieval_regression" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Saved review accepted and ready to poll.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "retrieval_regression" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "queued" | Yes | |
data.workflow | "retrieval_regression" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Evaluate supplied asset textasset_readability
Open this request with Python and TypeScript examples
- Body
workflowisasset_readability. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"assets": [
{
"content_id": "00000000-0000-4000-8000-000000000002",
"revision": "00000000-0000-4000-8000-000000000003"
}
],
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": false,
"questions": [
{
"question": "How long does delivery take?",
"required_terms": "delivery days"
}
],
"workflow": "asset_readability"
}| Name | Type | Required | Description |
|---|---|---|---|
assets | array of object | Yes | |
assets[].content_id | string (uuid) | Yes | |
assets[].revision | string (uuid) | Yes | |
brand_id | string (uuid) | Yes | |
estimate | false | No | |
questions | array of object | Yes | |
questions[].question | string | Yes | |
questions[].required_terms | string | Yes | Terms that must occur in the same passage to count as matching text. |
workflow | "asset_readability" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Evaluate supplied asset text
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "asset_readability" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Buyer question coveragequery_fanout_coverage
Open this request with Python and TypeScript examples
- Body
workflowisquery_fanout_coverage. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- Check the estimate for the selected delivery mode.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"prompt_id": "00000000-0000-4000-8000-000000009741",
"prompt_set_revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"workflow": "query_fanout_coverage"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
observation_id | string (uuid) | null | No | |
prompt_id | string (uuid) | Yes | |
prompt_set_revision | string | Yes | |
website | string | null | No | |
workflow | "query_fanout_coverage" | Yes |
| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
estimate_id | string (uuid) | Yes | |
max_units | integer | Yes | |
observation_id | string (uuid) | null | No | |
prompt_id | string (uuid) | Yes | |
prompt_set_revision | string | Yes | |
simulation_options | object | Yes | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Yes | |
simulation_options.monitored_competitors | object | null | No | |
simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
simulation_options.monitored_competitors.limit | integer | No | |
simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
simulation_options.revision_ids | array of string (uuid) | No | |
website | string | null | No | |
workflow | "query_fanout_coverage" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Coverage run saved.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "query_fanout_coverage" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "queued" | Yes | |
data.workflow | "query_fanout_coverage" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Verify saved answer claims against approved factsverify_answer_claims
Open this request with Python and TypeScript examples
- Body
workflowisverify_answer_claims. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- Check the estimate for the selected delivery mode.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"observation_id": "00000000-0000-4000-8000-000000014961",
"workflow": "verify_answer_claims"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
observation_id | string (uuid) | Yes | |
workflow | "verify_answer_claims" | Yes |
| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
estimate_id | string (uuid) | Yes | |
max_units | integer | Yes | |
observation_id | string (uuid) | Yes | |
simulation_options | object | Yes | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Yes | |
simulation_options.monitored_competitors | object | null | No | |
simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
simulation_options.monitored_competitors.limit | integer | No | |
simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
simulation_options.revision_ids | array of string (uuid) | No | |
workflow | "verify_answer_claims" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Verification run saved.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "verify_answer_claims" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "queued" | Yes | |
data.workflow | "verify_answer_claims" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Compare synthetic personas and marketspersona_geo_divergence
Open this request with Python and TypeScript examples
- Body
workflowispersona_geo_divergence. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"draft_revision": "00000000-0000-4000-8000-000000015031",
"markets": [
{
"id": "pricing",
"market": {
"country": "US",
"language": "en"
},
"context_terms": [
"monthly price"
]
},
{
"id": "support",
"market": {
"country": "US",
"language": "en"
},
"context_terms": [
"monthly price"
]
}
],
"personas": [
{
"id": "pricing",
"name": "Budget owner",
"source": "synthetic",
"audience_id": "00000000-0000-4000-8000-000000011301",
"role_assumptions": [
"Manages the team budget"
]
},
{
"id": "support",
"name": "Budget owner",
"source": "synthetic",
"audience_id": "00000000-0000-4000-8000-000000011302",
"role_assumptions": [
"Manages the team budget"
]
}
],
"prompt_set_revision": "00000000-0000-4000-8000-000000020751",
"subquery_id": "monthly-price",
"workflow": "persona_geo_divergence"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
competitor_corpus_revision | string (uuid) | null | No | |
draft_revision | string (uuid) | Yes | |
estimate | false | No | |
include_grid | boolean | No | |
markets | array of object | Yes | |
markets[].context_terms | array of string | Yes | |
markets[].id | string | Yes | |
markets[].market | object | Yes | |
markets[].market.city | string | null | No | |
markets[].market.country | string | Yes | |
markets[].market.language | string | Yes | |
markets[].market.region | string | null | No | |
personas | array of object | Yes | |
personas[].audience_id | string (uuid) | Yes | |
personas[].id | string | Yes | |
personas[].name | string | Yes | |
personas[].role_assumptions | array of string | Yes | |
personas[].source | "synthetic" | Yes | |
personas[].synthetic_memory_summary | string | null | No | |
prompt_set_revision | string (uuid) | Yes | |
subquery_id | string | Yes | |
top_k | integer | No | |
workflow | "persona_geo_divergence" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Saved review accepted and ready to poll.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "persona_geo_divergence" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Synthetic context position testcontext_position_test
Open this request with Python and TypeScript examples
- Body
workflowiscontext_position_test. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": false,
"repetitions": 2,
"review_run_id": "prepublish_review:00000000-0000-4000-8000-000000000002",
"subquery_id": "bulk",
"target_fact": "bulk updates for local listings",
"target_passage_id": "00000000-0000-4000-8000-000000000003",
"token_budget": 300,
"workflow": "context_position_test"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
fixture_mode | "grounded" | "omit_fact" | "wrong_source" | No | |
paired | object | object | null | No | |
paired.kind | "edited_opening" | Conditional | |
paired.replace_tokens | integer | Conditional | |
paired.text | string | Conditional | |
paired.kind | "relocated_fact" | Conditional | |
repetitions | integer | No | |
review_run_id | string | Yes | |
subquery_id | string | Yes | |
target_fact | string | Yes | |
target_passage_id | string (uuid) | Yes | |
token_budget | integer | Yes | |
workflow | "context_position_test" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Saved review accepted and ready to poll.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "context_position_test" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Read or save passage overlap and retrieval rank comparisonspassage_overlap
Open this request with Python and TypeScript examples
- Body
workflowispassage_overlap. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- Check the estimate for the selected delivery mode.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"content_items": [
{
"content_id": "00000000-0000-4000-8000-000000010631"
},
{
"content_id": "00000000-0000-4000-8000-000000010632"
}
],
"questions": [
{
"id": "pricing",
"focus_terms": [
"monthly price"
]
}
],
"workflow": "passage_overlap"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
content_items | array of object | Yes | |
content_items[].boilerplate | boolean | No | |
content_items[].canonical_url | string | null | No | |
content_items[].content_id | string (uuid) | Yes | |
content_items[].language | string | No | |
content_items[].product_edition | string | No | |
estimate | false | No | |
excerpts | array of object | No | |
excerpts[].passage_id | string (uuid) | Conditional | |
excerpts[].text | string | Conditional | |
match_threshold | number | No | |
questions | array of object | Yes | |
questions[].focus_terms | array of string | Yes | |
questions[].id | string | Yes | |
workflow | "passage_overlap" | Yes |
| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
content_items | array of object | Yes | |
content_items[].boilerplate | boolean | No | |
content_items[].canonical_url | string | null | No | |
content_items[].content_id | string (uuid) | Yes | |
content_items[].language | string | No | |
content_items[].product_edition | string | No | |
estimate | false | No | |
estimate_id | string (uuid) | Yes | |
excerpts | array of object | No | |
excerpts[].passage_id | string (uuid) | Conditional | |
excerpts[].text | string | Conditional | |
match_threshold | number | No | |
max_units | integer | Yes | |
questions | array of object | Yes | |
questions[].focus_terms | array of string | Yes | |
questions[].id | string | Yes | |
simulation_options | object | Yes | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Yes | |
simulation_options.monitored_competitors | object | null | No | |
simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
simulation_options.monitored_competitors.limit | integer | No | |
simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
simulation_options.revision_ids | array of string (uuid) | No | |
workflow | "passage_overlap" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Saved review accepted and ready to poll.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "passage_overlap" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "queued" | Yes | |
data.workflow | "passage_overlap" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Compare buyer-question framings against saved evidencecomparison_evidence_gaps
Open this request with Python and TypeScript examples
- Body
workflowiscomparison_evidence_gaps. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"as_of": "2026-11-01",
"brand_id": "00000000-0000-4000-8000-000000008191",
"claims": [
{
"id": "pricing",
"product": "brand",
"statement": "The Standard plan costs USD 20 per month.",
"evidence_needed": "A published price list."
}
],
"competitor_corpus_revision": "00000000-0000-4000-8000-000000028311",
"competitor_id": "00000000-0000-4000-8000-000000013941",
"draft_revision": "00000000-0000-4000-8000-000000015031",
"prompt_set_revision": "00000000-0000-4000-8000-000000020751",
"question_id": "pricing",
"workflow": "comparison_evidence_gaps"
}| Name | Type | Required | Description |
|---|---|---|---|
as_of | string (date) | Yes | |
brand_id | string (uuid) | Yes | |
claims | array of object | Yes | |
claims[].asserted | boolean | No | |
claims[].assessed_quotes | array of object | No | Caller-verified assessments with exact quotes from the saved evidence. |
claims[].assessed_quotes[].assessment | "supported_strength" | "verified_limitation" | "contradicted_assertion" | Conditional | |
claims[].assessed_quotes[].quote | string | Conditional | |
claims[].assessed_quotes[].url | string | Conditional | |
claims[].evidence_needed | string | Yes | |
claims[].id | string | Yes | |
claims[].product | "brand" | "competitor" | Yes | |
claims[].statement | string | Yes | |
competitor_corpus_revision | string (uuid) | Yes | |
competitor_id | string (uuid) | Yes | |
draft_revision | string (uuid) | Yes | |
estimate | false | No | |
prompt_set_revision | string (uuid) | Yes | |
question_id | string | Yes | |
workflow | "comparison_evidence_gaps" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Saved review accepted and ready to poll.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "comparison_evidence_gaps" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Start a cited page runcited_page_sweep
Open this request with Python and TypeScript examples
- Body
workflowiscited_page_sweep. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"estimate_id": "00000000-0000-4000-8000-000000011601",
"max_units": 1,
"workflow": "cited_page_sweep"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
estimate_id | string (uuid) | Yes | |
max_units | integer | Yes | |
workflow | "cited_page_sweep" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Start a cited page run.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | No | The credits charged for this work. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.completed_pages | integer | No | |
data.due_pages | integer | No | |
data.next_offset | integer | null | No | |
data.pages | array of object | No | |
data.pages[].brand_mentioned_on_page | boolean | null | No | |
data.pages[].changed_since_previous_check | boolean | null | No | |
data.pages[].citing_answers | integer | No | |
data.pages[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.pages[].classification_confidence | number | No | |
data.pages[].competitors_mentioned_on_page | object | No | |
data.pages[].competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.pages[].domain | string | No | |
data.pages[].last_checked_at | string | No | |
data.pages[].page_id | string | Conditional | |
data.pages[].page_status | "in_progress" | "live" | "gone" | Conditional | |
data.pages[].page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.pages[].page_type_confidence | number | null | No | |
data.pages[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.pages[].url | string | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "in_progress" | "completed" | "cancelled" | Yes | |
data.total_pages | integer | No | |
data.workflow | "cited_page_sweep" | "cited_page_labelling" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Start a cited page runcited_page_labelling
Open this request with Python and TypeScript examples
- Body
workflowiscited_page_labelling. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"estimate_id": "00000000-0000-4000-8000-000000011601",
"max_units": 1,
"workflow": "cited_page_labelling"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
estimate_id | string (uuid) | Yes | |
max_units | integer | Yes | |
workflow | "cited_page_labelling" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Start a cited page run.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | No | The credits charged for this work. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.completed_pages | integer | No | |
data.due_pages | integer | No | |
data.next_offset | integer | null | No | |
data.pages | array of object | No | |
data.pages[].brand_mentioned_on_page | boolean | null | No | |
data.pages[].changed_since_previous_check | boolean | null | No | |
data.pages[].citing_answers | integer | No | |
data.pages[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.pages[].classification_confidence | number | No | |
data.pages[].competitors_mentioned_on_page | object | No | |
data.pages[].competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.pages[].domain | string | No | |
data.pages[].last_checked_at | string | No | |
data.pages[].page_id | string | Conditional | |
data.pages[].page_status | "in_progress" | "live" | "gone" | Conditional | |
data.pages[].page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.pages[].page_type_confidence | number | null | No | |
data.pages[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.pages[].url | string | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "in_progress" | "completed" | "cancelled" | Yes | |
data.total_pages | integer | No | |
data.workflow | "cited_page_sweep" | "cited_page_labelling" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Start an AI search topics runai_search_topics
Open this request with Python and TypeScript examples
- Body
workflowisai_search_topics. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": false,
"estimate_id": "00000000-0000-4000-8000-000000000002",
"max_units": 511,
"workflow": "ai_search_topics"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
estimate_id | string (uuid) | Yes | |
max_units | integer | Yes | |
workflow | "ai_search_topics" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Start an AI search topics run
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string (uuid) | Yes | |
data.kind | "ai_search_topics" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | Yes | |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | null | Yes | |
data.revision | integer | Yes | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.state | "queued" | Yes | |
data.status | "queued" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.workflow | "ai_search_topics" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Start an answer accuracy checkcheck_answer_accuracy
Open this request with Python and TypeScript examples
- Body
workflowischeck_answer_accuracy. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"estimate_id": "00000000-0000-4000-8000-000000011601",
"max_units": 1,
"workflow": "check_answer_accuracy"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
estimate_id | string (uuid) | Yes | |
max_units | integer | Yes | |
workflow | "check_answer_accuracy" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Start an answer accuracy check
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "in_progress" | "completed" | Yes | |
data.workflow | "check_answer_accuracy" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Start a draft accuracy checkcheck_draft_accuracy
Open this request with Python and TypeScript examples
- Body
workflowischeck_draft_accuracy. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write, analytics:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- This operation can use credits.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"estimate_id": "00000000-0000-4000-8000-000000011601",
"max_units": 1,
"workflow": "check_draft_accuracy"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
estimate_id | string (uuid) | Yes | |
max_units | integer | Yes | |
workflow | "check_draft_accuracy" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Start a draft accuracy check
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "in_progress" | "completed" | Yes | |
data.workflow | "check_draft_accuracy" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Submit a brand page to Brave Searchbrave_submit
Open this request with Python and TypeScript examples
- Body
workflowisbrave_submit. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": false,
"url": "https://example.com/pricing",
"workflow": "brave_submit"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | false | No | |
url | string | Yes | |
workflow | "brave_submit" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Submit a brand page to Brave Search
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.requested_at | string (date-time) | Yes | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "in_progress" | "submitted" | "failed" | Yes | |
data.submitted_at | string (date-time) | null | Yes | |
data.url | string | Yes | |
data.workflow | "brave_submit" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Start a win rate simulationretrieval_win_rate
Available only in fixture tests.
Open this request with Python and TypeScript examples
- Body
workflowisretrieval_win_rate. - Body
estimateisfalse. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- Check the estimate for the selected delivery mode.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000050",
"competitor_corpus_revision": "00000000-0000-4000-8000-000000000053",
"draft_revision": "00000000-0000-4000-8000-000000000051",
"estimate": false,
"estimate_id": "00000000-0000-4000-8000-000000000054",
"max_units": 4,
"prompt_ids": [
"win",
"loss",
"tie",
"alternate"
],
"prompt_set_revision": "00000000-0000-4000-8000-000000000052",
"simulation_options": {
"max_candidates": 21,
"max_prompts": 4,
"mode": "persistent"
},
"workflow": "retrieval_win_rate"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
competitor_corpus_revision | string (uuid) | Yes | |
draft_revision | string (uuid) | Yes | |
estimate | false | No | |
estimate_id | string (uuid) | Yes | |
max_units | integer | Yes | |
prompt_ids | array of string | Yes | |
prompt_set_revision | string (uuid) | Yes | |
simulation_options | object | No | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Conditional | |
simulation_options.monitored_competitors | null | No | |
simulation_options.revision_ids | array of string (uuid) | No | |
workflow | "retrieval_win_rate" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 202
Win rate simulation queued.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No |
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "queued" | Yes | |
data.workflow | "retrieval_win_rate" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Estimate pages and credits for an auditestimate_audit
Open this request with Python and TypeScript examples
- Body
workflowisaudit. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- The estimate uses zero credits.
- Billing access
- Required
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"estimate": true,
"max_pages": 1,
"max_units": 1,
"types": [
"technical"
],
"urls": [
"https://example.com/pricing"
],
"workflow": "audit"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
checks | array of "crawler_access" | "schema_consistency" | "business_facts" | null | No | Additional audit checks to run. |
estimate | true | Yes | |
listing_urls | array of string | No | Public listing URLs to compare with the profile. |
location_ids | array of string (uuid) | No | Brand locations to include in the comparisons. |
max_pages | integer | Yes | |
max_units | integer | Yes | |
profile | "instant" | "detailed" | No | |
types | array of "technical" | "content" | "agent" | Yes | |
urls | array of string (uri) | Yes | |
workflow | "audit" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Audit estimate
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.estimated_credits | integer | Yes | The expected credit cost for this selection. |
data.id | string | No | |
data.max_pages | integer | Yes | |
data.maximum_credits | integer | Yes | The upper credit estimate for this selection. |
data.page_breakdown | object | Yes | |
data.page_breakdown.crawler_access_max_requests | integer | Yes | |
data.page_breakdown.crawler_access_pages | integer | Yes | |
data.page_breakdown.listing_pages | integer | Yes | |
data.page_breakdown.listing_pages_omitted | integer | Yes | |
data.page_breakdown.site_pages | integer | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
data.workflow | "audit" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Estimate web prompt suggestionsestimate_prompt_suggestions
Open this request with Python and TypeScript examples
- Body
workflowisprompt_suggestions. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- The estimate uses zero credits.
- Billing access
- Required
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"category_ids": [
"software"
],
"estimate": true,
"intents": [
"discovery"
],
"market": {
"country": "US",
"language": "en"
},
"workflow": "prompt_suggestions"
}| Name | Type | Required | Description |
|---|---|---|---|
audit_id | string (uuid) | null | No | |
brand_id | string (uuid) | Yes | |
category_ids | array of string | Yes | |
count | integer | No | |
estimate | true | Yes | |
intents | array of "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Yes | |
market | object | Yes | |
market.city | string | null | No | |
market.country | string | Yes | |
market.language | string | Yes | |
market.region | string | null | No | |
neutral_discovery | true | No | |
workflow | "prompt_suggestions" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Credit estimate
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.workflow | "prompt_suggestions" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Quote Generationestimate_editorial_generation
Open this request with Python and TypeScript examples
- Body
workflowiseditorial_generation. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"draft_id": "00000000-0000-4000-8000-000000000001",
"estimate": true,
"workflow": "editorial_generation"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
draft_id | string (uuid) | Yes | |
estimate | true | Yes | |
workflow | "editorial_generation" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.call_count | 1 | No | |
data.charge_units | integer | Yes | |
data.draft_revision | integer | Yes | |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.purpose | string | Yes | |
data.quote_id | string | Yes | |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Bulk Estimateestimate_managed_batch
Open this request with Python and TypeScript examples
- Body
workflowismanaged_batch. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- The estimate uses zero credits.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"estimate": true,
"items": [
{
"idempotency_key": "example-estimate-0001",
"request": {
"brand_id": "00000000-0000-4000-8000-000000000001",
"market": {
"country": "US",
"language": "en"
}
}
}
],
"workflow": "managed_batch"
}| Name | Type | Required | Description |
|---|---|---|---|
estimate | true | Yes | |
items | array of object | Yes | |
items[].idempotency_key | string | Yes | |
items[].request | object | Yes | |
items[].request.allow_country_level | boolean | No | Allow a country-level answer when the source cannot apply the requested location. |
items[].request.answer_mode | "standard" | "new" | No | Use standard for the normal answer or new to request a new answer. |
items[].request.brand_id | string (uuid) | Yes | |
items[].request.market | object | Yes | ``components.schemas.Market``. |
items[].request.market.city | string | null | No | |
items[].request.market.country | string | Yes | |
items[].request.market.language | string | Yes | |
items[].request.market.latitude | number | null | No | |
items[].request.market.location_id | string (uuid) | null | No | |
items[].request.market.longitude | number | null | No | |
items[].request.market.postal_code | string | null | No | |
items[].request.market.region | string | null | No | |
items[].request.sources | array of object | null | No | |
items[].request.sources.device | "desktop" | "mobile" | "unknown" | null | No | |
items[].request.sources.mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Conditional | The mode used to collect the answer. The unverified value appears only in evidence. |
items[].request.sources.platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Conditional | The platform where the answer was observed. |
items[].request.sources.provider | string | null | No | |
items[].request.website | string | null | No | |
workflow | "managed_batch" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | array of object | object | Yes | The requested result. See the fields below for its contents. |
data[].brand_id | string (uuid) | Yes | |
data[].data | object | Conditional | |
data[].data.brand_id | string | Conditional | |
data[].data.eligible_engines | array of object | Conditional | |
data[].data.eligible_engines[].applied_location | object | null | No | |
data[].data.eligible_engines[].applied_location.city | string | null | No | |
data[].data.eligible_engines[].applied_location.country | string | null | No | |
data[].data.eligible_engines[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data[].data.eligible_engines[].applied_location.latitude | number | null | No | |
data[].data.eligible_engines[].applied_location.longitude | number | null | No | |
data[].data.eligible_engines[].applied_location.postal_code | string | null | No | |
data[].data.eligible_engines[].applied_location.region | string | null | No | |
data[].data.eligible_engines[].charge_per_step | integer | Conditional | |
data[].data.eligible_engines[].reserve_per_step | integer | Conditional | |
data[].data.eligible_engines[].source | object | Conditional | |
data[].data.eligible_engines[].unenforced_controls | array of string | Conditional | |
data[].data.estimate_fingerprint | string | Conditional | |
data[].data.estimated_credits | integer | Conditional | |
data[].data.excluded_sources | array of object | Conditional | Sources omitted from the estimate. Location estimates include the affected location_id with each exclusion. Location exclusions have reason location_not_supported. Sources outside your plan have reason feature_not_offered. |
data[].data.excluded_sources[].location_id | string (uuid) | No | |
data[].data.expires_at | string | Conditional | |
data[].data.location_totals | array of object | No | |
data[].data.location_totals[].eligible_engines | array of object | No | |
data[].data.location_totals[].eligible_engines[].source | object | Conditional | |
data[].data.location_totals[].eligible_engines[].unenforced_controls | array of string | Conditional | |
data[].data.location_totals[].estimated_credits | integer | Conditional | |
data[].data.location_totals[].location_id | string (uuid) | Conditional | |
data[].data.location_totals[].market | object | Conditional | |
data[].data.location_totals[].market.city | string | null | null | No | |
data[].data.location_totals[].market.country | string | Conditional | |
data[].data.location_totals[].market.language | string | Conditional | |
data[].data.location_totals[].market.latitude | number | null | No | |
data[].data.location_totals[].market.location_id | string (uuid) | No | |
data[].data.location_totals[].market.longitude | number | null | No | |
data[].data.location_totals[].market.postal_code | string | null | No | |
data[].data.location_totals[].market.region | string | null | null | No | |
data[].data.location_totals[].maximum_credits | integer | Conditional | |
data[].data.location_totals[].prompt_count | integer | Conditional | |
data[].data.maximum_credits | integer | Conditional | |
data[].data.poll_url | string | Conditional | |
data[].data.prompt_count | integer | Conditional | |
data[].data.prompt_set_revision | string | Conditional | |
data[].data.run_id | string | null | No | |
data[].data.website | string | null | Conditional | |
data[].idempotency_key | string | Yes | |
data[].status | 200 | integer | Yes | |
data[].error | object | Conditional | |
data[].error.code | string | Conditional | |
data[].error.field_errors | array of object | No | |
data[].error.field_errors[].field | string | null | Conditional | |
data[].error.field_errors[].message | string | Conditional | |
data[].error.message | string | Conditional | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Estimate Runestimate_managed
Open this request with Python and TypeScript examples
- Body
workflowismanaged. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- The estimate uses zero credits.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | Yes |
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"estimate": true,
"market": {
"country": "US",
"language": "en"
},
"workflow": "managed"
}| Name | Type | Required | Description |
|---|---|---|---|
all_locations | boolean | No | |
allow_country_level | boolean | No | Allow a country-level answer when the source cannot apply the requested location. |
answer_mode | "standard" | "new" | No | Use standard for the normal answer or new to request a new answer. |
brand_id | string (uuid) | Yes | |
estimate | true | Yes | |
location_ids | array of string (uuid) | No | |
market | object | Yes | ``components.schemas.Market``. |
market.city | string | null | No | |
market.country | string | Yes | |
market.language | string | Yes | |
market.latitude | number | null | No | |
market.location_id | string (uuid) | null | No | |
market.longitude | number | null | No | |
market.postal_code | string | null | No | |
market.region | string | null | No | |
sources | array of object | null | No | |
sources.device | "desktop" | "mobile" | "unknown" | null | No | |
sources.mode | "ui_normal" | "ui_search" | "api_normal" | "api_web" | "ai_mode" | "ai_overview" | "organic_search" | Conditional | The mode used to collect the answer. The unverified value appears only in evidence. |
sources.platform | "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Conditional | The platform where the answer was observed. |
sources.provider | string | null | No | |
website | string | null | No | |
workflow | "managed" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.eligible_engines | array of object | Yes | |
data.eligible_engines[].applied_location | object | null | No | |
data.eligible_engines[].applied_location.city | string | null | No | |
data.eligible_engines[].applied_location.country | string | null | No | |
data.eligible_engines[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.eligible_engines[].applied_location.latitude | number | null | No | |
data.eligible_engines[].applied_location.longitude | number | null | No | |
data.eligible_engines[].applied_location.postal_code | string | null | No | |
data.eligible_engines[].applied_location.region | string | null | No | |
data.eligible_engines[].charge_per_step | integer | Yes | |
data.eligible_engines[].reserve_per_step | integer | Yes | |
data.eligible_engines[].source | object | Yes | |
data.eligible_engines[].unenforced_controls | array of string | Yes | |
data.estimate_fingerprint | string | Yes | |
data.estimated_credits | integer | Yes | The expected credit cost for this selection. |
data.excluded_sources | array of object | Yes | Sources omitted from the estimate. Location estimates include the affected location_id with each exclusion. Location exclusions have reason location_not_supported. Sources outside your plan have reason feature_not_offered. |
data.excluded_sources[].location_id | string (uuid) | No | |
data.expires_at | string | Yes | |
data.location_totals | array of object | No | |
data.location_totals[].eligible_engines | array of object | No | |
data.location_totals[].eligible_engines[].source | object | Conditional | |
data.location_totals[].eligible_engines[].unenforced_controls | array of string | Conditional | |
data.location_totals[].estimated_credits | integer | Conditional | |
data.location_totals[].location_id | string (uuid) | Conditional | |
data.location_totals[].market | object | Conditional | |
data.location_totals[].market.city | string | null | null | No | |
data.location_totals[].market.country | string | Conditional | |
data.location_totals[].market.language | string | Conditional | |
data.location_totals[].market.latitude | number | null | No | |
data.location_totals[].market.location_id | string (uuid) | No | |
data.location_totals[].market.longitude | number | null | No | |
data.location_totals[].market.postal_code | string | null | No | |
data.location_totals[].market.region | string | null | null | No | |
data.location_totals[].maximum_credits | integer | Conditional | |
data.location_totals[].prompt_count | integer | Conditional | |
data.maximum_credits | integer | Yes | The upper credit estimate for this selection. |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.prompt_count | integer | Yes | |
data.prompt_set_revision | string | Yes | |
data.run_id | string | null | No | Identifies the run. Keep any prefix when using it in a request. |
data.website | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Estimate a cited page runestimate_cited_page_sweep
Open this request with Python and TypeScript examples
- Body
workflowiscited_page_sweep. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"estimate": true,
"max_credits_per_run": 1,
"workflow": "cited_page_sweep"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | true | Yes | |
label_pages | boolean | No | |
max_credits_per_run | integer | Yes | |
max_pages_per_run | integer | No | |
workflow | "cited_page_sweep" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Estimate a cited page run.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.due_pages | integer | Yes | |
data.estimate_id | string | Yes | Identifies the estimate for this selection. |
data.expires_at | string | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.selected_pages | integer | Yes | |
data.workflow | "cited_page_sweep" | "cited_page_labelling" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Estimate a cited page runestimate_cited_page_labelling
Open this request with Python and TypeScript examples
- Body
workflowiscited_page_labelling. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"estimate": true,
"max_credits_per_run": 1,
"workflow": "cited_page_labelling"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | true | Yes | |
label_pages | boolean | No | |
max_credits_per_run | integer | Yes | |
max_pages_per_run | integer | No | |
workflow | "cited_page_labelling" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Estimate a cited page run.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.due_pages | integer | Yes | |
data.estimate_id | string | Yes | Identifies the estimate for this selection. |
data.expires_at | string | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.selected_pages | integer | Yes | |
data.workflow | "cited_page_sweep" | "cited_page_labelling" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Estimate the credits for AI search topicsestimate_ai_search_topics
Open this request with Python and TypeScript examples
- Body
workflowisai_search_topics. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000001",
"category_id": "gcid:dentist",
"estimate": true,
"market": {
"country": "US",
"language": "en-US"
},
"period": {
"end": "2026-10-01",
"start": "2026-09-01"
},
"platforms": [
"chatgpt",
"google_ai_overviews"
],
"workflow": "ai_search_topics"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
category_id | string | Yes | |
estimate | true | Yes | |
language_scope | "exact" | "unfiltered" | No | |
limit | integer | No | |
market | object | Yes | |
market.city | string | null | null | No | |
market.country | string | Yes | |
market.language | string | Yes | |
market.region | string | null | null | No | |
period | object | Yes | |
period.end | string (date) | Yes | |
period.granularity | "month" | No | |
period.start | string (date) | Yes | |
platform_scope | "covered" | "chatgpt" | "google_ai_overviews" | No | |
platforms | array of string | null | No | |
workflow | "ai_search_topics" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Estimate the credits for AI search topics
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.category_id | string | Yes | |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.language_scope | "exact" | "unfiltered" | Yes | |
data.limit | integer | Yes | |
data.market | object | Yes | |
data.market.city | string | null | null | No | |
data.market.country | string | Yes | |
data.market.language | string | Yes | |
data.market.region | string | null | null | No | |
data.period | object | Yes | |
data.period.end | string (date) | Yes | |
data.period.granularity | "month" | No | |
data.period.start | string (date) | Yes | |
data.platform_attribution | "none" | "unknown" | "partial" | Yes | |
data.platform_costs | array of object | No | |
data.platform_costs[].charge_units | integer | Conditional | |
data.platform_costs[].platform | "chatgpt" | "google_ai_overviews" | Conditional | |
data.platform_costs[].reserve_units | integer | Conditional | |
data.platform_scope | "covered" | "chatgpt" | "google_ai_overviews" | Yes | |
data.platforms | array of string | No | |
data.platforms_covered | array of string | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.workflow | "ai_search_topics" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited
Estimate credits for answer accuracy checksestimate_check_answer_accuracy
Open this request with Python and TypeScript examples
- Body
workflowischeck_answer_accuracy. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"estimate": true,
"observation_ids": [
"00000000-0000-4000-8000-000000016111"
],
"workflow": "check_answer_accuracy"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | true | Yes | |
observation_ids | array of string (uuid) | Yes | |
workflow | "check_answer_accuracy" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Estimate credits for answer accuracy checks
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.check_count | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.estimated_units | integer | Yes | |
data.expires_at | string (date-time) | Yes | |
data.max_units | integer | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Estimate credits to check a draft revisionestimate_check_draft_accuracy
Open this request with Python and TypeScript examples
- Body
workflowischeck_draft_accuracy. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:write, analytics:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"draft_id": "00000000-0000-4000-8000-000000008291",
"draft_revision": 1,
"estimate": true,
"workflow": "check_draft_accuracy"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
country | string | null | No | |
draft_id | string (uuid) | Yes | |
draft_revision | integer | Yes | Current revision of the draft. |
estimate | true | Yes | |
workflow | "check_draft_accuracy" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Estimate credits to check a draft revision
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.check_count | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.estimated_units | integer | Yes | |
data.expires_at | string (date-time) | Yes | |
data.max_units | integer | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Estimate credits for a saved simulationestimate_passage_overlap
Open this request with Python and TypeScript examples
- Body
workflowispassage_overlap. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"content_items": [
{
"content_id": "00000000-0000-4000-8000-000000010631"
},
{
"content_id": "00000000-0000-4000-8000-000000010632"
}
],
"estimate": true,
"questions": [
{
"id": "pricing",
"focus_terms": [
"monthly price"
]
}
],
"simulation_options": {
"mode": "persistent"
},
"workflow": "passage_overlap"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
content_items | array of object | Yes | |
content_items[].boilerplate | boolean | No | |
content_items[].canonical_url | string | null | No | |
content_items[].content_id | string (uuid) | Yes | |
content_items[].language | string | No | |
content_items[].product_edition | string | No | |
estimate | true | Yes | |
excerpts | array of object | No | |
excerpts[].passage_id | string (uuid) | Conditional | |
excerpts[].text | string | Conditional | |
match_threshold | number | No | |
questions | array of object | Yes | |
questions[].focus_terms | array of string | Yes | |
questions[].id | string | Yes | |
simulation_options | object | Yes | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Yes | |
simulation_options.monitored_competitors | object | null | No | |
simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
simulation_options.monitored_competitors.limit | integer | No | |
simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
simulation_options.revision_ids | array of string (uuid) | No | |
workflow | "passage_overlap" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Estimate for a saved simulation.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | object | null | No | |
data.simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
data.simulation_options.monitored_competitors.limit | integer | No | |
data.simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "passage_overlap" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Estimate credits for a saved simulationestimate_prepublish_review
Open this request with Python and TypeScript examples
- Body
workflowisprepublish_review. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"draft_revision": "00000000-0000-4000-8000-000000015031",
"estimate": true,
"prompt_set_revision": "00000000-0000-4000-8000-000000020751",
"simulation_options": {
"mode": "persistent"
},
"workflow": "prepublish_review"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
captures | object | No | |
captures.raw | string (uuid) | null | No | |
captures.rendered | string (uuid) | null | No | |
competitor_corpus_revision | string (uuid) | null | No | |
draft_revision | string (uuid) | Yes | |
estimate | true | Yes | |
prompt_set_revision | string (uuid) | Yes | |
simulation_options | object | Yes | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Yes | |
simulation_options.monitored_competitors | object | null | No | |
simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
simulation_options.monitored_competitors.limit | integer | No | |
simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
simulation_options.revision_ids | array of string (uuid) | No | |
top_k | integer | No | |
workflow | "prepublish_review" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Estimate for a saved simulation.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | object | null | No | |
data.simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
data.simulation_options.monitored_competitors.limit | integer | No | |
data.simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "prepublish_review" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Estimate credits for a saved simulationestimate_query_fanout_coverage
Open this request with Python and TypeScript examples
- Body
workflowisquery_fanout_coverage. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"estimate": true,
"prompt_id": "00000000-0000-4000-8000-000000009741",
"prompt_set_revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"simulation_options": {
"mode": "persistent"
},
"workflow": "query_fanout_coverage"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | true | Yes | |
observation_id | string (uuid) | null | No | |
prompt_id | string (uuid) | Yes | |
prompt_set_revision | string | Yes | |
simulation_options | object | Yes | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Yes | |
simulation_options.monitored_competitors | object | null | No | |
simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
simulation_options.monitored_competitors.limit | integer | No | |
simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
simulation_options.revision_ids | array of string (uuid) | No | |
website | string | null | No | |
workflow | "query_fanout_coverage" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Estimate for a saved simulation.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | object | null | No | |
data.simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
data.simulation_options.monitored_competitors.limit | integer | No | |
data.simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "query_fanout_coverage" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Estimate credits for a saved simulationestimate_retrieval_benchmark
Open this request with Python and TypeScript examples
- Body
workflowisretrieval_benchmark. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"draft_revision": "00000000-0000-4000-8000-000000015031",
"estimate": true,
"prompt_ids": [
"pricing"
],
"prompt_set_revision": "00000000-0000-4000-8000-000000020751",
"simulation_options": {
"mode": "persistent"
},
"workflow": "retrieval_benchmark"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
competitor_corpus_revision | string (uuid) | null | No | |
draft_revision | string (uuid) | Yes | |
estimate | true | Yes | |
observed_citations | array of object | No | |
observed_citations[].observed_at | string (date-time) | Conditional | |
observed_citations[].prompt_id | string | Conditional | |
observed_citations[].source_reference | string | Conditional | |
observed_citations[].url | string | Conditional | |
prompt_ids | array of string | Yes | |
prompt_set_revision | string (uuid) | Yes | |
simulation_options | object | Yes | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Yes | |
simulation_options.monitored_competitors | object | null | No | |
simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
simulation_options.monitored_competitors.limit | integer | No | |
simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
simulation_options.revision_ids | array of string (uuid) | No | |
top_k | integer | No | |
workflow | "retrieval_benchmark" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Estimate for a saved simulation.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | object | null | No | |
data.simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
data.simulation_options.monitored_competitors.limit | integer | No | |
data.simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "retrieval_benchmark" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Estimate credits for a saved simulationestimate_retrieval_regression
Open this request with Python and TypeScript examples
- Body
workflowisretrieval_regression. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"estimate": true,
"production_revision": "00000000-0000-4000-8000-000000020691",
"prompt_ids": [
"pricing"
],
"prompt_set_revision": "00000000-0000-4000-8000-000000020751",
"simulation_options": {
"mode": "persistent"
},
"staging_revision": "00000000-0000-4000-8000-000000017231",
"workflow": "retrieval_regression"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | true | Yes | |
facts | array of object | No | |
facts[].fact_id | string | Conditional | |
facts[].phrase | string | Conditional | |
facts[].prompt_id | string | Conditional | |
policy | object | No | |
policy.critical_prompt_ids | array of string | No | |
policy.max_coverage_drop | number | No | Maximum allowed decrease in the fraction of focus phrases found. |
policy.max_lost_facts | integer | No | |
policy.max_rank_drop | integer | No | |
policy.mode | "warning" | "blocking" | No | |
policy.on_pending | "inconclusive" | "fail" | No | |
production_index | "complete" | "partial" | No | Whether the production snapshot covers the full sample. |
production_revision | string (uuid) | Yes | |
prompt_ids | array of string | Yes | |
prompt_set_revision | string (uuid) | Yes | |
simulation_options | object | Yes | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Yes | |
simulation_options.monitored_competitors | object | null | No | |
simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
simulation_options.monitored_competitors.limit | integer | No | |
simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
simulation_options.revision_ids | array of string (uuid) | No | |
staging_index | "complete" | "partial" | No | Whether the staging snapshot covers the full sample. |
staging_revision | string (uuid) | Yes | |
top_k | integer | No | |
workflow | "retrieval_regression" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Estimate for a saved simulation.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | object | null | No | |
data.simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
data.simulation_options.monitored_competitors.limit | integer | No | |
data.simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "retrieval_regression" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Estimate credits for a saved simulationestimate_retrieval_win_rate
Available only in fixture tests.
Open this request with Python and TypeScript examples
- Body
workflowisretrieval_win_rate. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000000050",
"competitor_corpus_revision": "00000000-0000-4000-8000-000000000053",
"draft_revision": "00000000-0000-4000-8000-000000000051",
"estimate": true,
"prompt_ids": [
"win",
"loss",
"tie",
"alternate"
],
"prompt_set_revision": "00000000-0000-4000-8000-000000000052",
"simulation_options": {
"max_candidates": 21,
"max_prompts": 4,
"mode": "persistent"
},
"workflow": "retrieval_win_rate"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
competitor_corpus_revision | string (uuid) | Yes | |
draft_revision | string (uuid) | Yes | |
estimate | true | Yes | |
prompt_ids | array of string | Yes | |
prompt_set_revision | string (uuid) | Yes | |
simulation_options | object | No | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Conditional | |
simulation_options.monitored_competitors | null | No | |
simulation_options.revision_ids | array of string (uuid) | No | |
workflow | "retrieval_win_rate" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Estimate for a saved simulation.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | null | No | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "retrieval_win_rate" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
Estimate credits for a saved simulationestimate_verify_answer_claims
Open this request with Python and TypeScript examples
- Body
workflowisverify_answer_claims. - Body
estimateistrue. Default isfalse.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- editor, owner, service
- Plans
- Optimizer
- Credits
- The estimate uses zero credits.
Parameters
The contract lists no fields for this section.
Request body
{
"brand_id": "00000000-0000-4000-8000-000000008191",
"estimate": true,
"observation_id": "00000000-0000-4000-8000-000000014961",
"simulation_options": {
"mode": "persistent"
},
"workflow": "verify_answer_claims"
}| Name | Type | Required | Description |
|---|---|---|---|
brand_id | string (uuid) | Yes | |
estimate | true | Yes | |
observation_id | string (uuid) | Yes | |
simulation_options | object | Yes | |
simulation_options.delivery | "async" | No | |
simulation_options.input_kind | "saved" | No | |
simulation_options.max_candidates | integer | No | |
simulation_options.max_input_bytes | integer | No | |
simulation_options.max_input_tokens | integer | No | |
simulation_options.max_prompts | integer | No | |
simulation_options.mode | "persistent" | Yes | |
simulation_options.monitored_competitors | object | null | No | |
simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
simulation_options.monitored_competitors.limit | integer | No | |
simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
simulation_options.revision_ids | array of string (uuid) | No | |
workflow | "verify_answer_claims" | Yes |
cURL request
Save the JSON request body as request.json. Replace sample IDs, revisions and other values with your own.
curl --fail-with-body -X POST "$AEO_API_BASE_URL/v2/runs" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @request.jsonResponses
HTTP 200
Estimate for a saved simulation.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | object | null | No | |
data.simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
data.simulation_options.monitored_competitors.limit | integer | No | |
data.simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "verify_answer_claims" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
GET /v2/runs/{run_id}
Read a run or estimate
Reads one run and its available result. A completed collection includes its collected answers summary, and a ready report includes its ID and link. Use the estimate's poll_url to read its saved terms or expiry. Editorial and accuracy estimate links return HTTP 404 one hour after issuance. After you start a cited page run, its estimate link returns HTTP 404. Poll the run using its run ID. Earlier collection and audit UUIDs also work.
Read audit job and findingsaudit
Open this request with Python and TypeScript examples
- Path
run_idstarts withaudit:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | string (uuid) | Yes | |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Read audit job and findings result.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "audit:00000000-0000-4000-8000-000000000001",
"kind": "audit",
"poll_url": "https://api.aeoapi.dev/v2/runs/audit:00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z",
"v2_run_id": "audit:00000000-0000-4000-8000-000000000001"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "in_progress" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Read audit job and findingscitation_check
Open this request with Python and TypeScript examples
- Path
run_idstarts withcitation_check:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | string (uuid) | Yes | |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Read audit job and findings result.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "citation_check:00000000-0000-4000-8000-000000000001",
"kind": "audit",
"poll_url": "https://api.aeoapi.dev/v2/runs/citation_check:00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z",
"v2_run_id": "citation_check:00000000-0000-4000-8000-000000000001"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "in_progress" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Read collection or common asynchronous jobjob
Open this request with Python and TypeScript examples
- Path
run_idstarts withjob:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | string (uuid) | Yes | |
cursor | query | string | No | cursor |
limit | query | integer | No | limit |
include_answers | query | boolean | No | Include available answers. Requires analytics:read. |
simulation_only | query | boolean | No | Return only simulation runs when true. |
brand_id | query | string (uuid) | null | No | |
offset | query | integer | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Read collection or common asynchronous job result.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "job:00000000-0000-4000-8000-000000000001",
"kind": "collection",
"poll_url": "https://api.aeoapi.dev/v2/runs/job:00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z",
"v2_run_id": "job:00000000-0000-4000-8000-000000000001"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.citation_status | "in_progress" | "completed" | No | Citation preparation status for this run, when applicable. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string | string (uuid) | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | The run's collected result summary. Observation IDs are paginated. |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | No | The credits charged for this work. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.completed_pages | integer | No | |
data.due_pages | integer | No | |
data.next_offset | integer | null | No | |
data.pages | array of object | No | |
data.pages[].brand_mentioned_on_page | boolean | null | No | |
data.pages[].changed_since_previous_check | boolean | null | No | |
data.pages[].citing_answers | integer | No | |
data.pages[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.pages[].classification_confidence | number | No | |
data.pages[].competitors_mentioned_on_page | object | No | |
data.pages[].competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.pages[].domain | string | No | |
data.pages[].last_checked_at | string | No | |
data.pages[].page_id | string | Conditional | |
data.pages[].page_status | "in_progress" | "live" | "gone" | Conditional | |
data.pages[].page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.pages[].page_type_confidence | number | null | No | |
data.pages[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.pages[].url | string | Conditional | |
data.result | object | No | Finished output from this run. |
data.result.completed_pages | integer | No | |
data.result.due_pages | integer | No | |
data.result.next_offset | integer | null | No | |
data.result.pages | array of object | No | |
data.result.pages[].brand_mentioned_on_page | boolean | null | No | |
data.result.pages[].changed_since_previous_check | boolean | null | No | |
data.result.pages[].citing_answers | integer | No | |
data.result.pages[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.result.pages[].classification_confidence | number | No | |
data.result.pages[].competitors_mentioned_on_page | object | No | |
data.result.pages[].competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.result.pages[].domain | string | No | |
data.result.pages[].last_checked_at | string | No | |
data.result.pages[].page_id | string | Conditional | |
data.result.pages[].page_status | "in_progress" | "live" | "gone" | Conditional | |
data.result.pages[].page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.result.pages[].page_type_confidence | number | null | No | |
data.result.pages[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.result.pages[].url | string | Conditional | |
data.result.total_pages | integer | No | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "in_progress" | "completed" | "cancelled" | Yes | |
data.total_pages | integer | No | |
data.workflow | "cited_page_sweep" | "cited_page_labelling" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | null | Yes | The run's collected result summary. Observation IDs are paginated. |
data.result.kind | "simulation" | No | |
data.result.method_revision | 1 | No | |
data.result.prompt_id | string (uuid) | Conditional | |
data.result.prompt_set_revision | string | Conditional | |
data.result.prompt_version | integer | Conditional | |
data.result.rows | array of object | Conditional | |
data.result.rows[].best_match_passage_id | string (uuid) | null | Conditional | ID of the best matching passage when it can be shown. Otherwise null. |
data.result.rows[].eligible_passages | integer | Conditional | |
data.result.rows[].kind | "simulation" | No | |
data.result.rows[].match_score | number | null | Conditional | Score for the best matching passage. Null when no passage was scored. |
data.result.rows[].method_revision | 1 | No | |
data.result.rows[].placement | object | null | No | |
data.result.rows[].placement.action | "add_answer" | "add_internal_link" | Conditional | |
data.result.rows[].placement.heading_anchor | string | Conditional | |
data.result.rows[].placement.page_id | string (uuid) | Conditional | |
data.result.rows[].placement.target | object | null | No | |
data.result.rows[].placement.target.heading_anchor | string | Conditional | |
data.result.rows[].placement.target.page_id | string (uuid) | Conditional | |
data.result.rows[].placement.target.url | string | Conditional | |
data.result.rows[].placement.url | string | Conditional | |
data.result.rows[].placement_reason | "no_eligible_heading" | "already_covered" | null | No | |
data.result.rows[].question | object | Conditional | |
data.result.rows[].question.event_ordinal | integer | null | No | |
data.result.rows[].question.focus_terms | array of string | Conditional | |
data.result.rows[].question.observation_id | string (uuid) | null | No | |
data.result.rows[].question.origin | "inferred" | "observed" | No | |
data.result.rows[].question.text | string | Conditional | |
data.result.rows[].row_id | string (uuid) | Conditional | |
data.result.rows[].status | "covered" | "partial" | "gap" | "insufficient_corpus" | Conditional | |
data.result.rows[].term_coverage | object | Conditional | Terms from the question found or missing in the passages checked. |
data.result.rows[].term_coverage.matched_terms | array of string | Conditional | |
data.result.rows[].term_coverage.missing_terms | array of string | Conditional | |
data.result.rows[].term_coverage.passage_ids | array of string (uuid) | Conditional | |
data.result.rows[].term_coverage.status | "covered" | "partial" | "gap" | "insufficient_corpus" | Conditional | |
data.result.status | "complete" | "insufficient_corpus" | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.status | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "succeeded" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.workflow | "query_fanout_coverage" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | null | Yes | The run's collected result summary. Observation IDs are paginated. |
data.result.eligible_passages | integer | Conditional | |
data.result.excluded_passages | integer | Conditional | |
data.result.measurement | "simulation" | No | |
data.result.method_revision | "passage-overlap-simulation-r1" | No | |
data.result.rows | array of object | object | Conditional | |
data.result.rows[].action | "merge" | No | |
data.result.rows[].group_id | string (uuid) | Conditional | |
data.result.rows[].passages | array of object | Conditional | |
data.result.rows[].passages[].content_id | string (uuid) | Conditional | |
data.result.rows[].passages[].end_offset | integer | Conditional | |
data.result.rows[].passages[].excerpt | string | null | No | |
data.result.rows[].passages[].excerpt_id | string (uuid) | Conditional | |
data.result.rows[].passages[].passage_id | string (uuid) | Conditional | |
data.result.rows[].passages[].source_revision | string (uuid) | Conditional | |
data.result.rows[].passages[].start_offset | integer | Conditional | |
data.result.rows[].passages[].url | string | Conditional | |
data.result.rows[].question_id | string | Conditional | |
data.result.rows[].row_id | string (uuid) | Conditional | |
data.result.rows[].action | "trim" | No | |
data.result.rows[].passage | object | Conditional | |
data.result.rows[].passage.content_id | string (uuid) | Conditional | |
data.result.rows[].passage.end_offset | integer | Conditional | |
data.result.rows[].passage.excerpt | string | null | No | |
data.result.rows[].passage.excerpt_id | string (uuid) | Conditional | |
data.result.rows[].passage.passage_id | string (uuid) | Conditional | |
data.result.rows[].passage.source_revision | string (uuid) | Conditional | |
data.result.rows[].passage.start_offset | integer | Conditional | |
data.result.rows[].passage.url | string | Conditional | |
data.result.rows[].trim_spans | array of object | Conditional | |
data.result.rows[].trim_spans[].content_id | string (uuid) | Conditional | |
data.result.rows[].trim_spans[].end_offset | integer | Conditional | |
data.result.rows[].trim_spans[].excerpt | string | null | No | |
data.result.rows[].trim_spans[].excerpt_id | string (uuid) | Conditional | |
data.result.rows[].trim_spans[].passage_id | string (uuid) | Conditional | |
data.result.rows[].trim_spans[].source_revision | string (uuid) | Conditional | |
data.result.rows[].trim_spans[].start_offset | integer | Conditional | |
data.result.rows[].trim_spans[].url | string | Conditional | |
data.result.status | "complete" | "insufficient_evidence" | Conditional | |
data.result.trim_targets_checked | integer | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.status | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "succeeded" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.workflow | "passage_overlap" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | null | Yes | The run's collected result summary. Observation IDs are paginated. |
data.result.answer_status | "claims_extracted" | "claim_limit_reached" | "no_supported_claim_format" | "complete_answer_missing" | Conditional | |
data.result.eligible_count | integer | Conditional | |
data.result.kind | "simulation" | No | |
data.result.method_revision | "claim-review-r1" | No | |
data.result.observation_id | string (uuid) | Conditional | |
data.result.rows | array of object | Conditional | |
data.result.rows[].claim | object | null | No | |
data.result.rows[].claim.as_of | string (date) | Conditional | |
data.result.rows[].claim.kind | "money" | "date" | "quantity" | "qualitative" | Conditional | |
data.result.rows[].claim.predicate | string | Conditional | |
data.result.rows[].claim.qualifier | string | null | No | |
data.result.rows[].claim.subject | string | Conditional | |
data.result.rows[].claim.value | string | Conditional | |
data.result.rows[].deterministic | object | null | No | |
data.result.rows[].deterministic.evidence | array of object | Conditional | |
data.result.rows[].deterministic.evidence[].excerpt | string | null | No | |
data.result.rows[].deterministic.evidence[].fact_id | string (uuid) | Conditional | |
data.result.rows[].deterministic.evidence[].revision | string (uuid) | Conditional | |
data.result.rows[].deterministic.reason | "matching_price" | "different_price" | "previous_price" | "no_current_fact" | "conflicting_facts" | "too_many_facts" | "market_not_supported" | Conditional | |
data.result.rows[].deterministic.status | "supported" | "contradicted" | "outdated" | "insufficient_evidence" | Conditional | |
data.result.rows[].end_offset | integer | null | No | |
data.result.rows[].id | string (uuid) | Conditional | |
data.result.rows[].judgment | object | Conditional | |
data.result.rows[].judgment.evidence | array of object | No | |
data.result.rows[].judgment.evidence[].excerpt | string | null | No | |
data.result.rows[].judgment.evidence[].fact_id | string (uuid) | Conditional | |
data.result.rows[].judgment.evidence[].revision | string (uuid) | Conditional | |
data.result.rows[].judgment.method_revision | "claim-review-r1" | No | |
data.result.rows[].judgment.status | "supported" | "contradicted" | "insufficient_evidence" | Conditional | |
data.result.rows[].start_offset | integer | null | No | |
data.result.status | "complete" | "insufficient_evidence" | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.status | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "succeeded" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.workflow | "verify_answer_claims" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | null | Yes | The run's collected result summary. Observation IDs are paginated. |
data.result.candidate_count | integer | Conditional | |
data.result.eligible_comparisons | integer | Conditional | |
data.result.measurement | "simulation" | Conditional | |
data.result.method_revision | string | Conditional | |
data.result.rows | array of object | Conditional | |
data.result.rows[].candidates | array of object | Conditional | |
data.result.rows[].candidates[].excerpt | object | No | |
data.result.rows[].candidates[].excerpt.end_offset | integer | Conditional | |
data.result.rows[].candidates[].excerpt.heading_path | array of string | Conditional | |
data.result.rows[].candidates[].excerpt.source_revision | string (uuid) | Conditional | |
data.result.rows[].candidates[].excerpt.start_offset | integer | Conditional | |
data.result.rows[].candidates[].excerpt.text | string | Conditional | |
data.result.rows[].candidates[].excerpt.url | string | Conditional | |
data.result.rows[].candidates[].passage_id | string (uuid) | Conditional | |
data.result.rows[].candidates[].rank | integer | Conditional | |
data.result.rows[].candidates[].side | "draft" | "competitor" | Conditional | |
data.result.rows[].outcome | "win" | "loss" | "tie" | "insufficient_evidence" | Conditional | |
data.result.rows[].prompt_id | string | Conditional | |
data.result.rows[].subquery_id | string | Conditional | |
data.result.status | "complete" | "insufficient_evidence" | Conditional | |
data.result.workflow | "retrieval_benchmark" | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.status | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "succeeded" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.workflow | "retrieval_benchmark" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | null | Yes | The run's collected result summary. Observation IDs are paginated. |
data.result.candidate_count | integer | Conditional | |
data.result.eligible_comparisons | integer | Conditional | |
data.result.measurement | "simulation" | Conditional | |
data.result.method_revision | string | Conditional | |
data.result.rows | array of object | Conditional | |
data.result.rows[].candidates | array of object | Conditional | |
data.result.rows[].candidates[].excerpt | object | No | |
data.result.rows[].candidates[].excerpt.end_offset | integer | Conditional | |
data.result.rows[].candidates[].excerpt.heading_path | array of string | Conditional | |
data.result.rows[].candidates[].excerpt.source_revision | string (uuid) | Conditional | |
data.result.rows[].candidates[].excerpt.start_offset | integer | Conditional | |
data.result.rows[].candidates[].excerpt.text | string | Conditional | |
data.result.rows[].candidates[].excerpt.url | string | Conditional | |
data.result.rows[].candidates[].passage_id | string (uuid) | Conditional | |
data.result.rows[].candidates[].rank | integer | Conditional | |
data.result.rows[].candidates[].side | "draft" | "competitor" | Conditional | |
data.result.rows[].outcome | "win" | "loss" | "tie" | "insufficient_evidence" | Conditional | |
data.result.rows[].prompt_id | string | Conditional | |
data.result.rows[].subquery_id | string | Conditional | |
data.result.status | "complete" | "insufficient_evidence" | Conditional | |
data.result.workflow | "prepublish_review" | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.status | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "succeeded" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.workflow | "prepublish_review" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | null | Yes | The run's collected result summary. Observation IDs are paginated. |
data.result.evidence | object | Conditional | |
data.result.evidence.passages | object | Conditional | |
data.result.evidence.passages.[key] | object | No | Value for each key. |
data.result.manifest | object | Conditional | |
data.result.method_revision | string | Conditional | |
data.result.rows | array of object | Conditional | |
data.result.rows[].facts | array of object | Conditional | |
data.result.rows[].facts[].fact_id | string | Conditional | |
data.result.rows[].facts[].lost | boolean | null | Conditional | |
data.result.rows[].facts[].phrase | string | Conditional | |
data.result.rows[].facts[].production | array of object | Conditional | |
data.result.rows[].facts[].production[].passage_id | string (uuid) | Conditional | |
data.result.rows[].facts[].production[].rank | integer | Conditional | |
data.result.rows[].facts[].production[].subquery_id | string | Conditional | |
data.result.rows[].facts[].staging | array of object | Conditional | |
data.result.rows[].facts[].staging[].passage_id | string (uuid) | Conditional | |
data.result.rows[].facts[].staging[].rank | integer | Conditional | |
data.result.rows[].facts[].staging[].subquery_id | string | Conditional | |
data.result.rows[].prompt_id | string | Conditional | |
data.result.rows[].reasons | array of "sample_missing" | "coverage_drop" | "rank_drop" | "lost_facts" | Conditional | |
data.result.rows[].revision | string | Conditional | |
data.result.rows[].subqueries | array of object | Conditional | |
data.result.rows[].subqueries[].coverage | object | null | Conditional | |
data.result.rows[].subqueries[].coverage.drop | number | Conditional | |
data.result.rows[].subqueries[].coverage.focus_term_count | integer | Conditional | |
data.result.rows[].subqueries[].coverage.production | number | Conditional | |
data.result.rows[].subqueries[].coverage.staging | number | Conditional | |
data.result.rows[].subqueries[].measurement | "simulated" | "not_measured" | Conditional | |
data.result.rows[].subqueries[].missing_evidence | object | Conditional | |
data.result.rows[].subqueries[].missing_evidence.[key] | string | No | Value for each key. |
data.result.rows[].subqueries[].subquery_id | string | Conditional | |
data.result.rows[].subqueries[].terms | array of object | Conditional | |
data.result.rows[].subqueries[].terms[].phrase | string | Conditional | |
data.result.rows[].subqueries[].terms[].production | object | null | Conditional | |
data.result.rows[].subqueries[].terms[].production.passage_id | string (uuid) | Conditional | |
data.result.rows[].subqueries[].terms[].production.rank | integer | Conditional | |
data.result.rows[].subqueries[].terms[].rank_drop | integer | Conditional | |
data.result.rows[].subqueries[].terms[].staging | object | null | Conditional | |
data.result.rows[].subqueries[].terms[].staging.passage_id | string (uuid) | Conditional | |
data.result.rows[].subqueries[].terms[].staging.rank | integer | Conditional | |
data.result.rows[].subqueries[].top_passages | object | Conditional | |
data.result.rows[].subqueries[].top_passages.production | array of string (uuid) | Conditional | |
data.result.rows[].subqueries[].top_passages.staging | array of string (uuid) | Conditional | |
data.result.rows[].verdict | "pass" | "warn" | "fail" | "inconclusive" | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.status | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "succeeded" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.workflow | "retrieval_regression" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | null | Yes | The run's collected result summary. Observation IDs are paginated. |
data.result.measurement | "simulation" | Conditional | |
data.result.method_revision | 1 | Conditional | |
data.result.minimum_eligible_trials | 3 | Conditional | |
data.result.rows | array of object | Conditional | |
data.result.rows[].eligible_trials | integer | Conditional | |
data.result.rows[].excluded_trials | integer | Conditional | |
data.result.rows[].exclusions | object | Conditional | |
data.result.rows[].exclusions.[key] | integer | No | Value for each key. |
data.result.rows[].losses | integer | Conditional | |
data.result.rows[].paragraph_id | string (uuid) | Conditional | |
data.result.rows[].reason | "no_eligible_trials" | "below_minimum_trials" | null | Conditional | |
data.result.rows[].status | "scored" | "insufficient_evidence" | Conditional | |
data.result.rows[].ties | integer | Conditional | |
data.result.rows[].win_rate | number | null | Conditional | |
data.result.rows[].wins | integer | Conditional | |
data.result.status | "complete" | "insufficient_evidence" | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.status | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "succeeded" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.workflow | "retrieval_win_rate" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Reopenanalyst
Open this request with Python and TypeScript examples
- Path
run_idstarts withanalyst:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
brand_id | query | string (uuid) | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.after | object | Yes | |
data.after.gaps | object | Yes | |
data.after.gaps.[key] | integer | No | Value for each key. |
data.after.mentions | integer | Yes | |
data.after.month | string | Yes | |
data.after.scheduled_samples | integer | Yes | |
data.after.valid_answers | integer | Yes | |
data.before | object | Yes | |
data.before.gaps | object | Yes | |
data.before.gaps.[key] | integer | No | Value for each key. |
data.before.mentions | integer | Yes | |
data.before.month | string | Yes | |
data.before.scheduled_samples | integer | Yes | |
data.before.valid_answers | integer | Yes | |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.changed_groups | integer | Yes | |
data.comparison | object | Yes | |
data.comparison.current_only | integer | Yes | |
data.comparison.matched_cohorts | integer | Yes | |
data.comparison.mention_change_percentage_points | number | null | Yes | |
data.comparison.previous_only | integer | Yes | |
data.findings | array of object | Yes | |
data.findings[].after | object | Yes | |
data.findings[].after.mentions | integer | Yes | |
data.findings[].after.valid_answers | integer | Yes | |
data.findings[].ai_search | string | Yes | The AI search product the answer came from, such as google_ai_overviews. |
data.findings[].before | object | Yes | |
data.findings[].before.mentions | integer | Yes | |
data.findings[].before.valid_answers | integer | Yes | |
data.findings[].change_percentage_points | number | Yes | |
data.findings[].comparison_set_version | string | Yes | |
data.findings[].evidence | object | Yes | |
data.findings[].evidence.after | object | null | Yes | |
data.findings[].evidence.after.brand_mentioned | boolean | Conditional | |
data.findings[].evidence.after.cited_urls | array of string | Conditional | |
data.findings[].evidence.after.excerpt | string | Conditional | |
data.findings[].evidence.after.excerpt_truncated | boolean | Conditional | |
data.findings[].evidence.after.mention_in_excerpt | boolean | Conditional | |
data.findings[].evidence.after.observation_id | string | Conditional | |
data.findings[].evidence.after.origin | string | null | Conditional | |
data.findings[].evidence.before | object | null | Yes | |
data.findings[].evidence.before.brand_mentioned | boolean | Conditional | |
data.findings[].evidence.before.cited_urls | array of string | Conditional | |
data.findings[].evidence.before.excerpt | string | Conditional | |
data.findings[].evidence.before.excerpt_truncated | boolean | Conditional | |
data.findings[].evidence.before.mention_in_excerpt | boolean | Conditional | |
data.findings[].evidence.before.observation_id | string | Conditional | |
data.findings[].evidence.before.origin | string | null | Conditional | |
data.findings[].finding | string | Yes | |
data.findings[].finding_id | string | Yes | |
data.findings[].prompt_id | string | Yes | |
data.findings[].prompt_text | string | null | Yes | |
data.findings[].prompt_version | integer | Yes | |
data.findings[].source | object | Yes | |
data.report_id | string | Yes | |
data.result | object | No | Finished output from this run. |
data.result.after | object | No | |
data.result.after.gaps | object | Conditional | |
data.result.after.gaps.[key] | integer | No | Value for each key. |
data.result.after.mentions | integer | Conditional | |
data.result.after.month | string | Conditional | |
data.result.after.scheduled_samples | integer | Conditional | |
data.result.after.valid_answers | integer | Conditional | |
data.result.before | object | No | |
data.result.before.gaps | object | Conditional | |
data.result.before.gaps.[key] | integer | No | Value for each key. |
data.result.before.mentions | integer | Conditional | |
data.result.before.month | string | Conditional | |
data.result.before.scheduled_samples | integer | Conditional | |
data.result.before.valid_answers | integer | Conditional | |
data.result.changed_groups | integer | No | |
data.result.comparison | object | No | |
data.result.comparison.current_only | integer | Conditional | |
data.result.comparison.matched_cohorts | integer | Conditional | |
data.result.comparison.mention_change_percentage_points | number | null | Conditional | |
data.result.comparison.previous_only | integer | Conditional | |
data.result.findings | array of object | No | |
data.result.findings[].after | object | Conditional | |
data.result.findings[].after.mentions | integer | Conditional | |
data.result.findings[].after.valid_answers | integer | Conditional | |
data.result.findings[].ai_search | string | Conditional | The AI search product the answer came from, such as google_ai_overviews. |
data.result.findings[].before | object | Conditional | |
data.result.findings[].before.mentions | integer | Conditional | |
data.result.findings[].before.valid_answers | integer | Conditional | |
data.result.findings[].change_percentage_points | number | Conditional | |
data.result.findings[].comparison_set_version | string | Conditional | |
data.result.findings[].evidence | object | Conditional | |
data.result.findings[].evidence.after | object | null | Conditional | |
data.result.findings[].evidence.after.brand_mentioned | boolean | Conditional | |
data.result.findings[].evidence.after.cited_urls | array of string | Conditional | |
data.result.findings[].evidence.after.excerpt | string | Conditional | |
data.result.findings[].evidence.after.excerpt_truncated | boolean | Conditional | |
data.result.findings[].evidence.after.mention_in_excerpt | boolean | Conditional | |
data.result.findings[].evidence.after.observation_id | string | Conditional | |
data.result.findings[].evidence.after.origin | string | null | Conditional | |
data.result.findings[].evidence.before | object | null | Conditional | |
data.result.findings[].evidence.before.brand_mentioned | boolean | Conditional | |
data.result.findings[].evidence.before.cited_urls | array of string | Conditional | |
data.result.findings[].evidence.before.excerpt | string | Conditional | |
data.result.findings[].evidence.before.excerpt_truncated | boolean | Conditional | |
data.result.findings[].evidence.before.mention_in_excerpt | boolean | Conditional | |
data.result.findings[].evidence.before.observation_id | string | Conditional | |
data.result.findings[].evidence.before.origin | string | null | Conditional | |
data.result.findings[].finding | string | Conditional | |
data.result.findings[].finding_id | string | Conditional | |
data.result.findings[].prompt_id | string | Conditional | |
data.result.findings[].prompt_text | string | null | Conditional | |
data.result.findings[].prompt_version | integer | Conditional | |
data.result.findings[].source | object | Conditional | |
data.result.report_id | string | No | |
data.result.summary | string | No | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.summary | string | Yes | |
data.usage_units | integer | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
data.workflow | "explain_visibility_change" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Generationeditorial_generation
Open this request with Python and TypeScript examples
- Path
run_idstarts witheditorial_generation:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.candidate | object | null | No | |
data.candidate.body | string | Conditional | |
data.candidate.claim_support | array of object | Conditional | |
data.candidate.claim_support[].claim_text | string | Conditional | |
data.candidate.claim_support[].passage_id | string (uuid) | Conditional | |
data.candidate.claim_support[].source_excerpt | string | Conditional | |
data.candidate.title | string | Conditional | |
data.draft_id | string (uuid) | Yes | Identifies the draft associated with this result. |
data.generation_id | string (uuid) | Yes | |
data.generator | "model" | "model:live" | "model:synthetic" | null | No | |
data.quote | object | Yes | |
data.quote.call_count | 1 | No | |
data.quote.charge_units | integer | Yes | |
data.quote.purpose | string | Yes | |
data.quote.reserve_units | integer | Yes | |
data.reason | string | null | No | |
data.result | object | No | Finished output from this run. |
data.result.candidate | object | null | No | |
data.result.candidate.body | string | Conditional | |
data.result.candidate.claim_support | array of object | Conditional | |
data.result.candidate.claim_support[].claim_text | string | Conditional | |
data.result.candidate.claim_support[].passage_id | string (uuid) | Conditional | |
data.result.candidate.claim_support[].source_excerpt | string | Conditional | |
data.result.candidate.title | string | Conditional | |
data.source_revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Checksaved_check
Open this request with Python and TypeScript examples
- Path
run_idstarts withsaved_check:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
brand_id | query | string (uuid) | Yes | |
limit | query | integer | No | |
offset | query | integer | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body --get "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
--data-urlencode "brand_id=$BRAND_ID"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.check | object | Yes | |
data.check.id | string (uuid) | No | |
data.check.v2_run_id | string | No | |
data.next_offset | integer | null | Yes | |
data.offset | integer | Yes | |
data.prompts | array of object | Yes | |
data.result | object | No | Finished output from this run. |
data.result.next_offset | integer | null | No | |
data.result.offset | integer | No | |
data.result.prompts | array of object | No | |
data.result.total_prompts | integer | No | |
data.total_prompts | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Runmanaged
Open this request with Python and TypeScript examples
- Path
run_idstarts withmanaged:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | string (uuid) | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.charged_credits | integer | Yes | |
data.check_id | string | null | Yes | |
data.check_url | string | null | Yes | |
data.citation_status | "in_progress" | "completed" | No | Citation preparation status for this run, when applicable. |
data.created_at | string | Yes | |
data.estimated_credits | integer | Yes | The expected credit cost for this selection. |
data.failure_reasons | array of "access_restricted" | "limit_reached" | "input_missing" | "approval_expired" | "cancelled" | "check_failed" | "check_incomplete" | Yes | |
data.hold_reasons | array of "retry_pending" | "under_review" | Yes | |
data.id | string | No | |
data.phase | string | null | Yes | |
data.progress | object | Yes | |
data.progress.by_location | array of object | No | |
data.progress.by_location[].by_source | array of object | Conditional | |
data.progress.by_location[].completed_steps | integer | Conditional | |
data.progress.by_location[].expected_steps | integer | Conditional | |
data.progress.by_location[].location_id | string (uuid) | Conditional | |
data.progress.by_source | array of object | Yes | |
data.progress.completed_steps | integer | Yes | |
data.progress.expected_steps | integer | Yes | |
data.prompt_set_revision | string | Yes | |
data.released_credits | integer | Yes | |
data.report | object | No | |
data.report.report_id | string | Conditional | |
data.report.report_url | string | Conditional | |
data.report_id | string | null | Yes | |
data.report_status | "pending" | "ready" | "not_available" | Yes | |
data.report_url | string | null | Yes | |
data.reserved_credits | integer | Yes | |
data.result | object | No | |
data.result.by_location | array of object | No | |
data.result.by_location[].by_source | array of object | Conditional | |
data.result.by_location[].completed_steps | integer | Conditional | |
data.result.by_location[].expected_steps | integer | Conditional | |
data.result.by_location[].location_id | string (uuid) | Conditional | |
data.result.by_source | array of object | Conditional | |
data.result.completed_steps | integer | Conditional | |
data.result.expected_steps | integer | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | string | Yes | |
data.updated_at | string | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
data.website | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Pre-publish review evidenceprepublish_review
Open this request with Python and TypeScript examples
- Path
run_idstarts withprepublish_review:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- viewer, editor, approver, publisher, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.components | object | Yes | |
data.components.coverage | object | Yes | |
data.components.fact_comparison | object | Yes | |
data.components.fact_comparison.captures | object | No | Metadata for the compared captures. |
data.components.fact_comparison.detail_reason | string | No | Specific capture mismatch or failure. |
data.components.passage_comparison | object | Yes | |
data.evidence | object | Yes | |
data.evidence.passages | array of object | Yes | |
data.expires_at | string (date-time) | Yes | |
data.manifest | object | Yes | |
data.metering | object | Yes | |
data.metering.credits | 0 | Yes | |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | No | Finished output from this run. |
data.result.components | object | No | |
data.result.components.coverage | object | Conditional | |
data.result.components.fact_comparison | object | Conditional | |
data.result.components.fact_comparison.captures | object | No | Metadata for the compared captures. |
data.result.components.fact_comparison.detail_reason | string | No | Specific capture mismatch or failure. |
data.result.components.passage_comparison | object | Conditional | |
data.result.evidence | object | No | |
data.result.evidence.passages | array of object | Conditional | |
data.result.manifest | object | No | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "prepublish_review" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Retrieval benchmarkretrieval_benchmark
Open this request with Python and TypeScript examples
- Path
run_idstarts withretrieval_benchmark:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- viewer, editor, approver, publisher, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
brand_id | query | string (uuid) | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.benchmark | object | Yes | |
data.benchmark.candidate_count | integer | Yes | |
data.benchmark.comparison_scope | "brand_and_competitor" | "brand_only" | Yes | |
data.benchmark.measurement | "simulated" | Yes | |
data.benchmark.questions | array of object | Yes | |
data.benchmark.questions[].prompt_id | string | Yes | |
data.benchmark.questions[].revision | string | Yes | |
data.benchmark.questions[].subqueries | array of object | Yes | |
data.benchmark.questions[].subqueries[].best_competitor_passage_id | string | null | Yes | |
data.benchmark.questions[].subqueries[].best_draft_passage_id | string | null | Yes | |
data.benchmark.questions[].subqueries[].candidates | array of object | Yes | |
data.benchmark.questions[].subqueries[].candidates[].combined_rank | integer | null | Yes | |
data.benchmark.questions[].subqueries[].candidates[].combined_score | number | null | Yes | |
data.benchmark.questions[].subqueries[].candidates[].final_rank | integer | null | Yes | |
data.benchmark.questions[].subqueries[].candidates[].final_score | number | null | Yes | |
data.benchmark.questions[].subqueries[].candidates[].meaning_rank | integer | null | Yes | |
data.benchmark.questions[].subqueries[].candidates[].meaning_score | number | null | Yes | |
data.benchmark.questions[].subqueries[].candidates[].passage_id | string (uuid) | Yes | |
data.benchmark.questions[].subqueries[].candidates[].term_rank | integer | null | Yes | |
data.benchmark.questions[].subqueries[].candidates[].term_score | number | null | Yes | |
data.benchmark.questions[].subqueries[].combined_order | array of string (uuid) | Yes | |
data.benchmark.questions[].subqueries[].coverage | object | Yes | |
data.benchmark.questions[].subqueries[].final_order | array of string (uuid) | Yes | |
data.benchmark.questions[].subqueries[].meaning | object | Yes | |
data.benchmark.questions[].subqueries[].meaning_order | array of string (uuid) | Yes | |
data.benchmark.questions[].subqueries[].origin | "inferred" | "observed" | Yes | |
data.benchmark.questions[].subqueries[].outcome | "win" | "loss" | "tie" | "insufficient_evidence" | Yes | |
data.benchmark.questions[].subqueries[].source_reference | string | Yes | |
data.benchmark.questions[].subqueries[].subquery_id | string | Yes | |
data.benchmark.questions[].subqueries[].term_order | array of string (uuid) | Yes | |
data.benchmark.questions[].subqueries[].winning_passage_id | string | null | Yes | |
data.benchmark.reason | "competitor_corpus_missing" | null | Yes | |
data.benchmark.score_units | object | Yes | |
data.benchmark.score_units.combined | string | Yes | |
data.benchmark.score_units.final | string | Yes | |
data.benchmark.score_units.meaning | string | Yes | |
data.benchmark.score_units.term | string | Yes | |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.evidence | object | Yes | |
data.evidence.passages | object | Yes | |
data.evidence.passages.[key] | object | No | Value for each key. |
data.expires_at | string (date-time) | Yes | |
data.manifest | object | Yes | |
data.metering | object | Yes | |
data.metering.credits | 0 | Yes | |
data.observed_citations | object | Yes | |
data.observed_citations.items | array of object | Yes | |
data.observed_citations.items[].observed_at | string (date-time) | Yes | |
data.observed_citations.items[].prompt_id | string | Yes | |
data.observed_citations.items[].source_reference | string | Yes | |
data.observed_citations.items[].url | string | Yes | |
data.observed_citations.measurement | "measured" | "simulated" | "not_measured" | Yes | |
data.observed_citations.source | "customer_reported" | null | Yes | |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | No | Finished output from this run. |
data.result.benchmark | object | No | |
data.result.benchmark.candidate_count | integer | Conditional | |
data.result.benchmark.comparison_scope | "brand_and_competitor" | "brand_only" | Conditional | |
data.result.benchmark.measurement | "simulated" | Conditional | |
data.result.benchmark.questions | array of object | Conditional | |
data.result.benchmark.questions[].prompt_id | string | Conditional | |
data.result.benchmark.questions[].revision | string | Conditional | |
data.result.benchmark.questions[].subqueries | array of object | Conditional | |
data.result.benchmark.questions[].subqueries[].best_competitor_passage_id | string | null | Conditional | |
data.result.benchmark.questions[].subqueries[].best_draft_passage_id | string | null | Conditional | |
data.result.benchmark.questions[].subqueries[].candidates | array of object | Conditional | |
data.result.benchmark.questions[].subqueries[].candidates[].combined_rank | integer | null | Conditional | |
data.result.benchmark.questions[].subqueries[].candidates[].combined_score | number | null | Conditional | |
data.result.benchmark.questions[].subqueries[].candidates[].final_rank | integer | null | Conditional | |
data.result.benchmark.questions[].subqueries[].candidates[].final_score | number | null | Conditional | |
data.result.benchmark.questions[].subqueries[].candidates[].meaning_rank | integer | null | Conditional | |
data.result.benchmark.questions[].subqueries[].candidates[].meaning_score | number | null | Conditional | |
data.result.benchmark.questions[].subqueries[].candidates[].passage_id | string (uuid) | Conditional | |
data.result.benchmark.questions[].subqueries[].candidates[].term_rank | integer | null | Conditional | |
data.result.benchmark.questions[].subqueries[].candidates[].term_score | number | null | Conditional | |
data.result.benchmark.questions[].subqueries[].combined_order | array of string (uuid) | Conditional | |
data.result.benchmark.questions[].subqueries[].coverage | object | Conditional | |
data.result.benchmark.questions[].subqueries[].final_order | array of string (uuid) | Conditional | |
data.result.benchmark.questions[].subqueries[].meaning | object | Conditional | |
data.result.benchmark.questions[].subqueries[].meaning_order | array of string (uuid) | Conditional | |
data.result.benchmark.questions[].subqueries[].origin | "inferred" | "observed" | Conditional | |
data.result.benchmark.questions[].subqueries[].outcome | "win" | "loss" | "tie" | "insufficient_evidence" | Conditional | |
data.result.benchmark.questions[].subqueries[].source_reference | string | Conditional | |
data.result.benchmark.questions[].subqueries[].subquery_id | string | Conditional | |
data.result.benchmark.questions[].subqueries[].term_order | array of string (uuid) | Conditional | |
data.result.benchmark.questions[].subqueries[].winning_passage_id | string | null | Conditional | |
data.result.benchmark.reason | "competitor_corpus_missing" | null | Conditional | |
data.result.benchmark.score_units | object | Conditional | |
data.result.benchmark.score_units.combined | string | Conditional | |
data.result.benchmark.score_units.final | string | Conditional | |
data.result.benchmark.score_units.meaning | string | Conditional | |
data.result.benchmark.score_units.term | string | Conditional | |
data.result.evidence | object | No | |
data.result.evidence.passages | object | Conditional | |
data.result.evidence.passages.[key] | object | No | Value for each key. |
data.result.manifest | object | No | |
data.result.observed_citations | object | No | |
data.result.observed_citations.items | array of object | Conditional | |
data.result.observed_citations.items[].observed_at | string (date-time) | Conditional | |
data.result.observed_citations.items[].prompt_id | string | Conditional | |
data.result.observed_citations.items[].source_reference | string | Conditional | |
data.result.observed_citations.items[].url | string | Conditional | |
data.result.observed_citations.measurement | "measured" | "simulated" | "not_measured" | Conditional | |
data.result.observed_citations.source | "customer_reported" | null | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "retrieval_benchmark" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Retrieval regressionretrieval_regression
Open this request with Python and TypeScript examples
- Path
run_idstarts withretrieval_regression:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- viewer, editor, approver, publisher, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
brand_id | query | string (uuid) | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.evidence | object | Yes | |
data.evidence.passages | object | Yes | |
data.evidence.passages.[key] | object | No | Value for each key. |
data.expires_at | string (date-time) | Yes | |
data.manifest | object | Yes | |
data.metering | object | Yes | |
data.metering.credits | 0 | Yes | |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.regression | object | Yes | |
data.regression.measurement | "simulated" | "not_measured" | Yes | |
data.regression.questions | array of object | Yes | |
data.regression.questions[].facts | array of object | Yes | |
data.regression.questions[].facts[].fact_id | string | Yes | |
data.regression.questions[].facts[].lost | boolean | null | Yes | |
data.regression.questions[].facts[].phrase | string | Yes | |
data.regression.questions[].facts[].production | array of object | Yes | |
data.regression.questions[].facts[].production[].passage_id | string (uuid) | Yes | |
data.regression.questions[].facts[].production[].rank | integer | Yes | |
data.regression.questions[].facts[].production[].subquery_id | string | Yes | |
data.regression.questions[].facts[].staging | array of object | Yes | |
data.regression.questions[].facts[].staging[].passage_id | string (uuid) | Yes | |
data.regression.questions[].facts[].staging[].rank | integer | Yes | |
data.regression.questions[].facts[].staging[].subquery_id | string | Yes | |
data.regression.questions[].prompt_id | string | Yes | |
data.regression.questions[].reasons | array of "sample_missing" | "coverage_drop" | "rank_drop" | "lost_facts" | Yes | |
data.regression.questions[].revision | string | Yes | |
data.regression.questions[].subqueries | array of object | Yes | |
data.regression.questions[].subqueries[].coverage | object | null | Yes | |
data.regression.questions[].subqueries[].coverage.drop | number | Conditional | |
data.regression.questions[].subqueries[].coverage.focus_term_count | integer | Conditional | |
data.regression.questions[].subqueries[].coverage.production | number | Conditional | |
data.regression.questions[].subqueries[].coverage.staging | number | Conditional | |
data.regression.questions[].subqueries[].measurement | "simulated" | "not_measured" | Yes | |
data.regression.questions[].subqueries[].missing_evidence | object | Yes | |
data.regression.questions[].subqueries[].missing_evidence.[key] | string | No | Value for each key. |
data.regression.questions[].subqueries[].subquery_id | string | Yes | |
data.regression.questions[].subqueries[].terms | array of object | Yes | |
data.regression.questions[].subqueries[].terms[].phrase | string | Yes | |
data.regression.questions[].subqueries[].terms[].production | object | null | Yes | |
data.regression.questions[].subqueries[].terms[].production.passage_id | string (uuid) | Conditional | |
data.regression.questions[].subqueries[].terms[].production.rank | integer | Conditional | |
data.regression.questions[].subqueries[].terms[].rank_drop | integer | Yes | |
data.regression.questions[].subqueries[].terms[].staging | object | null | Yes | |
data.regression.questions[].subqueries[].terms[].staging.passage_id | string (uuid) | Conditional | |
data.regression.questions[].subqueries[].terms[].staging.rank | integer | Conditional | |
data.regression.questions[].subqueries[].top_passages | object | Yes | |
data.regression.questions[].subqueries[].top_passages.production | array of string (uuid) | Yes | |
data.regression.questions[].subqueries[].top_passages.staging | array of string (uuid) | Yes | |
data.regression.questions[].verdict | "pass" | "warn" | "fail" | "inconclusive" | Yes | |
data.regression.reasons | array of "sample_missing" | "coverage_drop" | "rank_drop" | "lost_facts" | Yes | |
data.regression.verdict | "pass" | "warn" | "fail" | "inconclusive" | Yes | |
data.result | object | No | Finished output from this run. |
data.result.evidence | object | No | |
data.result.evidence.passages | object | Conditional | |
data.result.evidence.passages.[key] | object | No | Value for each key. |
data.result.manifest | object | No | |
data.result.regression | object | No | |
data.result.regression.measurement | "simulated" | "not_measured" | Conditional | |
data.result.regression.questions | array of object | Conditional | |
data.result.regression.questions[].facts | array of object | Conditional | |
data.result.regression.questions[].facts[].fact_id | string | Conditional | |
data.result.regression.questions[].facts[].lost | boolean | null | Conditional | |
data.result.regression.questions[].facts[].phrase | string | Conditional | |
data.result.regression.questions[].facts[].production | array of object | Conditional | |
data.result.regression.questions[].facts[].production[].passage_id | string (uuid) | Conditional | |
data.result.regression.questions[].facts[].production[].rank | integer | Conditional | |
data.result.regression.questions[].facts[].production[].subquery_id | string | Conditional | |
data.result.regression.questions[].facts[].staging | array of object | Conditional | |
data.result.regression.questions[].facts[].staging[].passage_id | string (uuid) | Conditional | |
data.result.regression.questions[].facts[].staging[].rank | integer | Conditional | |
data.result.regression.questions[].facts[].staging[].subquery_id | string | Conditional | |
data.result.regression.questions[].prompt_id | string | Conditional | |
data.result.regression.questions[].reasons | array of "sample_missing" | "coverage_drop" | "rank_drop" | "lost_facts" | Conditional | |
data.result.regression.questions[].revision | string | Conditional | |
data.result.regression.questions[].subqueries | array of object | Conditional | |
data.result.regression.questions[].subqueries[].coverage | object | null | Conditional | |
data.result.regression.questions[].subqueries[].coverage.drop | number | Conditional | |
data.result.regression.questions[].subqueries[].coverage.focus_term_count | integer | Conditional | |
data.result.regression.questions[].subqueries[].coverage.production | number | Conditional | |
data.result.regression.questions[].subqueries[].coverage.staging | number | Conditional | |
data.result.regression.questions[].subqueries[].measurement | "simulated" | "not_measured" | Conditional | |
data.result.regression.questions[].subqueries[].missing_evidence | object | Conditional | |
data.result.regression.questions[].subqueries[].missing_evidence.[key] | string | No | Value for each key. |
data.result.regression.questions[].subqueries[].subquery_id | string | Conditional | |
data.result.regression.questions[].subqueries[].terms | array of object | Conditional | |
data.result.regression.questions[].subqueries[].terms[].phrase | string | Conditional | |
data.result.regression.questions[].subqueries[].terms[].production | object | null | Conditional | |
data.result.regression.questions[].subqueries[].terms[].production.passage_id | string (uuid) | Conditional | |
data.result.regression.questions[].subqueries[].terms[].production.rank | integer | Conditional | |
data.result.regression.questions[].subqueries[].terms[].rank_drop | integer | Conditional | |
data.result.regression.questions[].subqueries[].terms[].staging | object | null | Conditional | |
data.result.regression.questions[].subqueries[].terms[].staging.passage_id | string (uuid) | Conditional | |
data.result.regression.questions[].subqueries[].terms[].staging.rank | integer | Conditional | |
data.result.regression.questions[].subqueries[].top_passages | object | Conditional | |
data.result.regression.questions[].subqueries[].top_passages.production | array of string (uuid) | Conditional | |
data.result.regression.questions[].subqueries[].top_passages.staging | array of string (uuid) | Conditional | |
data.result.regression.questions[].verdict | "pass" | "warn" | "fail" | "inconclusive" | Conditional | |
data.result.regression.reasons | array of "sample_missing" | "coverage_drop" | "rank_drop" | "lost_facts" | Conditional | |
data.result.regression.verdict | "pass" | "warn" | "fail" | "inconclusive" | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "retrieval_regression" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read an asset diagnosticasset_readability
Open this request with Python and TypeScript examples
- Path
run_idstarts withasset_readability:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
brand_id | query | string (uuid) | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Read an asset diagnostic
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.assets | array of object | Yes | |
data.assets[].content_id | string (uuid) | Yes | |
data.assets[].fetched | false | Yes | The diagnostic uses text supplied by the caller. |
data.assets[].issues | array of "missing_alt_text" | "parse_failed" | Yes | |
data.assets[].metadata | object | Yes | |
data.assets[].metadata.allow_display | true | Yes | |
data.assets[].metadata.allow_index | true | Yes | |
data.assets[].metadata.asset_type | "pdf" | "chart" | "table" | "transcript" | "diagram" | Yes | |
data.assets[].metadata.gated | boolean | Yes | |
data.assets[].metadata.has_alt_text | boolean | Yes | Whether the caller supplied alt_text for this asset. |
data.assets[].metadata.mime_type | string | Yes | |
data.assets[].metadata.origin | "customer_supplied" | "synthetic_fixture" | Yes | |
data.assets[].metadata.parse_status | "parsed" | "failed" | Yes | Parse outcome declared by the caller. The service evaluates the supplied text. |
data.assets[].metadata.sha256 | string | Yes | Original asset checksum declared by the caller. Validation checks its format. |
data.assets[].parsed | boolean | Yes | |
data.assets[].questions | array of object | Yes | |
data.assets[].questions[].evidence | array of object | Yes | |
data.assets[].questions[].evidence[].end_offset | integer | Yes | |
data.assets[].questions[].evidence[].locator | object | object | object | object | object | Yes | |
data.assets[].questions[].evidence[].locator.page | integer | Conditional | |
data.assets[].questions[].evidence[].locator.type | "pdf" | "transcript" | "chart" | "table" | "diagram" | Yes | |
data.assets[].questions[].evidence[].locator.end_ms | integer | Conditional | |
data.assets[].questions[].evidence[].locator.start_ms | integer | Conditional | |
data.assets[].questions[].evidence[].locator.series | string | Conditional | |
data.assets[].questions[].evidence[].locator.x | object | Conditional | |
data.assets[].questions[].evidence[].locator.x.label | string | Conditional | |
data.assets[].questions[].evidence[].locator.x.unit | string | null | Conditional | |
data.assets[].questions[].evidence[].locator.x.value | string | Conditional | |
data.assets[].questions[].evidence[].locator.y | object | Conditional | |
data.assets[].questions[].evidence[].locator.y.label | string | Conditional | |
data.assets[].questions[].evidence[].locator.y.unit | string | Conditional | |
data.assets[].questions[].evidence[].locator.y.value | string | Conditional | |
data.assets[].questions[].evidence[].locator.row | integer | Conditional | |
data.assets[].questions[].evidence[].locator.label | string | Conditional | |
data.assets[].questions[].evidence[].passage_id | string (uuid) | Yes | |
data.assets[].questions[].evidence[].sha256 | string | Yes | |
data.assets[].questions[].evidence[].start_offset | integer | Yes | |
data.assets[].questions[].question | string | Yes | |
data.assets[].questions[].required_terms | string | Yes | Terms that must occur in the same passage to count as matching text. |
data.assets[].questions[].status | "matching_text" | "no_match" | "not_assessed" | Yes | A match shows that the required terms occur together in a supplied passage. |
data.assets[].revision | string (uuid) | Yes | |
data.assets[].rights_expire_at | string (date-time) | Yes | |
data.assets[].searchable | boolean | Yes | |
data.assets[].url | string | Yes | |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.evaluated_at | string (date-time) | Yes | |
data.expires_at | string (date-time) | Yes | |
data.manifest | object | Yes | |
data.manifest.evaluation_version | "asset-readability-r1" | Yes | |
data.manifest.evidence_limit | 3 | Yes | |
data.manifest.projection_version | "supplied-equivalent-r1" | Yes | |
data.manifest.ranker_version | "readability-70172dbdc795d6471cb328f7" | Yes | |
data.measurement | "measured" | Yes | The measurement covers retrieval from supplied text. |
data.metering | object | Yes | |
data.metering.credits | 0 | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | No | Finished output from this run. |
data.result.assets | array of object | No | |
data.result.assets[].content_id | string (uuid) | Conditional | |
data.result.assets[].fetched | false | Conditional | The diagnostic uses text supplied by the caller. |
data.result.assets[].issues | array of "missing_alt_text" | "parse_failed" | Conditional | |
data.result.assets[].metadata | object | Conditional | |
data.result.assets[].metadata.allow_display | true | Conditional | |
data.result.assets[].metadata.allow_index | true | Conditional | |
data.result.assets[].metadata.asset_type | "pdf" | "chart" | "table" | "transcript" | "diagram" | Conditional | |
data.result.assets[].metadata.gated | boolean | Conditional | |
data.result.assets[].metadata.has_alt_text | boolean | Conditional | Whether the caller supplied alt_text for this asset. |
data.result.assets[].metadata.mime_type | string | Conditional | |
data.result.assets[].metadata.origin | "customer_supplied" | "synthetic_fixture" | Conditional | |
data.result.assets[].metadata.parse_status | "parsed" | "failed" | Conditional | Parse outcome declared by the caller. The service evaluates the supplied text. |
data.result.assets[].metadata.sha256 | string | Conditional | Original asset checksum declared by the caller. Validation checks its format. |
data.result.assets[].parsed | boolean | Conditional | |
data.result.assets[].questions | array of object | Conditional | |
data.result.assets[].questions[].evidence | array of object | Conditional | |
data.result.assets[].questions[].evidence[].end_offset | integer | Conditional | |
data.result.assets[].questions[].evidence[].locator | object | object | object | object | object | Conditional | |
data.result.assets[].questions[].evidence[].locator.page | integer | Conditional | |
data.result.assets[].questions[].evidence[].locator.type | "pdf" | "transcript" | "chart" | "table" | "diagram" | Conditional | |
data.result.assets[].questions[].evidence[].locator.end_ms | integer | Conditional | |
data.result.assets[].questions[].evidence[].locator.start_ms | integer | Conditional | |
data.result.assets[].questions[].evidence[].locator.series | string | Conditional | |
data.result.assets[].questions[].evidence[].locator.x | object | Conditional | |
data.result.assets[].questions[].evidence[].locator.x.label | string | Conditional | |
data.result.assets[].questions[].evidence[].locator.x.unit | string | null | Conditional | |
data.result.assets[].questions[].evidence[].locator.x.value | string | Conditional | |
data.result.assets[].questions[].evidence[].locator.y | object | Conditional | |
data.result.assets[].questions[].evidence[].locator.y.label | string | Conditional | |
data.result.assets[].questions[].evidence[].locator.y.unit | string | Conditional | |
data.result.assets[].questions[].evidence[].locator.y.value | string | Conditional | |
data.result.assets[].questions[].evidence[].locator.row | integer | Conditional | |
data.result.assets[].questions[].evidence[].locator.label | string | Conditional | |
data.result.assets[].questions[].evidence[].passage_id | string (uuid) | Conditional | |
data.result.assets[].questions[].evidence[].sha256 | string | Conditional | |
data.result.assets[].questions[].evidence[].start_offset | integer | Conditional | |
data.result.assets[].questions[].question | string | Conditional | |
data.result.assets[].questions[].required_terms | string | Conditional | Terms that must occur in the same passage to count as matching text. |
data.result.assets[].questions[].status | "matching_text" | "no_match" | "not_assessed" | Conditional | A match shows that the required terms occur together in a supplied passage. |
data.result.assets[].revision | string (uuid) | Conditional | |
data.result.assets[].rights_expire_at | string (date-time) | Conditional | |
data.result.assets[].searchable | boolean | Conditional | |
data.result.assets[].url | string | Conditional | |
data.result.evaluated_at | string (date-time) | No | |
data.result.manifest | object | No | |
data.result.manifest.evaluation_version | "asset-readability-r1" | Conditional | |
data.result.manifest.evidence_limit | 3 | Conditional | |
data.result.manifest.projection_version | "supplied-equivalent-r1" | Conditional | |
data.result.manifest.ranker_version | "readability-70172dbdc795d6471cb328f7" | Conditional | |
data.result.measurement | "measured" | No | The measurement covers retrieval from supplied text. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "asset_readability" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Buyer question coveragequery_fanout_coverage
Open this request with Python and TypeScript examples
- Path
run_idstarts withquery_fanout_coverage:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- viewer, editor, approver, publisher, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
brand_id | query | string (uuid) | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.expires_at | string (date-time) | Yes | |
data.metering | object | Yes | |
data.metering.credits | 0 | Yes | |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.prompt_id | string (uuid) | Yes | |
data.prompt_set_revision | string | Yes | |
data.prompt_version | integer | Yes | |
data.result | object | No | Finished output from this run. |
data.result.prompt_id | string (uuid) | No | |
data.result.prompt_set_revision | string | No | |
data.result.prompt_version | integer | No | |
data.result.subquestions | array of object | No | |
data.result.subquestions[].matched_terms | array of string | Conditional | |
data.result.subquestions[].missing_terms | array of string | Conditional | |
data.result.subquestions[].passage_ids | array of string (uuid) | Conditional | |
data.result.subquestions[].question | object | Conditional | |
data.result.subquestions[].question.event_ordinal | integer | null | No | |
data.result.subquestions[].question.focus_terms | array of string | Conditional | |
data.result.subquestions[].question.observation_id | string (uuid) | null | No | |
data.result.subquestions[].question.origin | "inferred" | "observed" | No | |
data.result.subquestions[].question.text | string | Conditional | |
data.result.subquestions[].status | "covered" | "partial" | "gap" | "insufficient_corpus" | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.subquestions | array of object | Yes | |
data.subquestions[].matched_terms | array of string | Yes | |
data.subquestions[].missing_terms | array of string | Yes | |
data.subquestions[].passage_ids | array of string (uuid) | Yes | |
data.subquestions[].question | object | Yes | |
data.subquestions[].question.event_ordinal | integer | null | No | |
data.subquestions[].question.focus_terms | array of string | Yes | |
data.subquestions[].question.observation_id | string (uuid) | null | No | |
data.subquestions[].question.origin | "inferred" | "observed" | No | |
data.subquestions[].question.text | string | Yes | |
data.subquestions[].status | "covered" | "partial" | "gap" | "insufficient_corpus" | Yes | |
data.workflow | "query_fanout_coverage" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Verify saved answer claims against approved factsverify_answer_claims
Open this request with Python and TypeScript examples
- Path
run_idstarts withverify_answer_claims:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- viewer, editor, approver, publisher, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
brand_id | query | string (uuid) | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.answer_sha256 | string | null | Yes | |
data.answer_status | "complete_answer_missing" | "claim_limit_reached" | "claims_extracted" | "no_supported_claim_format" | Yes | |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.expires_at | string (date-time) | Yes | |
data.findings | array of object | Yes | |
data.findings[].claim | object | Yes | |
data.findings[].claim.amount | string | Yes | |
data.findings[].claim.as_of | string (date) | Yes | |
data.findings[].claim.currency | string | Yes | |
data.findings[].claim.end_offset | integer | Yes | |
data.findings[].claim.market | string | null | Yes | |
data.findings[].claim.period | "month" | "year" | "one_time" | Yes | |
data.findings[].claim.quote | string | Yes | |
data.findings[].claim.start_offset | integer | Yes | |
data.findings[].claim.subject | string | Yes | |
data.findings[].facts | array of object | Yes | |
data.findings[].facts[].approved_by | string (uuid) | Yes | |
data.findings[].facts[].content_id | string (uuid) | Yes | |
data.findings[].facts[].fact | object | Yes | |
data.findings[].facts[].fact.amount | string | Yes | |
data.findings[].facts[].fact.currency | string | Yes | |
data.findings[].facts[].fact.effective_from | string (date) | Yes | |
data.findings[].facts[].fact.effective_until | string (date) | null | No | |
data.findings[].facts[].fact.evidence_quote | string | Yes | |
data.findings[].facts[].fact.market | string | Yes | |
data.findings[].facts[].fact.period | "month" | "year" | "one_time" | Yes | |
data.findings[].facts[].fact.plan | string | Yes | |
data.findings[].facts[].fact.product | string | Yes | |
data.findings[].facts[].fact_id | string (uuid) | Yes | |
data.findings[].facts[].passage_id | string (uuid) | Yes | |
data.findings[].facts[].revision | string (uuid) | Yes | |
data.findings[].facts[].source_url | string | Yes | |
data.findings[].reason | "matching_price" | "different_price" | "previous_price" | "no_current_fact" | "conflicting_facts" | "too_many_facts" | "market_not_supported" | Yes | |
data.findings[].status | "supported" | "contradicted" | "outdated" | "insufficient_evidence" | Yes | |
data.metering | object | Yes | |
data.metering.credits | 0 | Yes | |
data.observation_id | string (uuid) | Yes | |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | No | Finished output from this run. |
data.result.answer_sha256 | string | null | No | |
data.result.answer_status | "complete_answer_missing" | "claim_limit_reached" | "claims_extracted" | "no_supported_claim_format" | No | |
data.result.findings | array of object | No | |
data.result.findings[].claim | object | Conditional | |
data.result.findings[].claim.amount | string | Conditional | |
data.result.findings[].claim.as_of | string (date) | Conditional | |
data.result.findings[].claim.currency | string | Conditional | |
data.result.findings[].claim.end_offset | integer | Conditional | |
data.result.findings[].claim.market | string | null | Conditional | |
data.result.findings[].claim.period | "month" | "year" | "one_time" | Conditional | |
data.result.findings[].claim.quote | string | Conditional | |
data.result.findings[].claim.start_offset | integer | Conditional | |
data.result.findings[].claim.subject | string | Conditional | |
data.result.findings[].facts | array of object | Conditional | |
data.result.findings[].facts[].approved_by | string (uuid) | Conditional | |
data.result.findings[].facts[].content_id | string (uuid) | Conditional | |
data.result.findings[].facts[].fact | object | Conditional | |
data.result.findings[].facts[].fact.amount | string | Conditional | |
data.result.findings[].facts[].fact.currency | string | Conditional | |
data.result.findings[].facts[].fact.effective_from | string (date) | Conditional | |
data.result.findings[].facts[].fact.effective_until | string (date) | null | No | |
data.result.findings[].facts[].fact.evidence_quote | string | Conditional | |
data.result.findings[].facts[].fact.market | string | Conditional | |
data.result.findings[].facts[].fact.period | "month" | "year" | "one_time" | Conditional | |
data.result.findings[].facts[].fact.plan | string | Conditional | |
data.result.findings[].facts[].fact.product | string | Conditional | |
data.result.findings[].facts[].fact_id | string (uuid) | Conditional | |
data.result.findings[].facts[].passage_id | string (uuid) | Conditional | |
data.result.findings[].facts[].revision | string (uuid) | Conditional | |
data.result.findings[].facts[].source_url | string | Conditional | |
data.result.findings[].reason | "matching_price" | "different_price" | "previous_price" | "no_current_fact" | "conflicting_facts" | "too_many_facts" | "market_not_supported" | Conditional | |
data.result.findings[].status | "supported" | "contradicted" | "outdated" | "insufficient_evidence" | Conditional | |
data.result.observation_id | string (uuid) | No | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "verify_answer_claims" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Compare synthetic personas and marketspersona_geo_divergence
Open this request with Python and TypeScript examples
- Path
run_idstarts withpersona_geo_divergence:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- viewer, editor, approver, publisher, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.components | object | Yes | |
data.components.persona_geo_divergence | object | Yes | |
data.components.persona_geo_divergence.comparisons | array of object | Yes | |
data.components.persona_geo_divergence.comparisons[].baseline_market_id | string | Yes | |
data.components.persona_geo_divergence.comparisons[].baseline_persona_id | string | Yes | |
data.components.persona_geo_divergence.comparisons[].changed_factor | "persona" | "market" | Yes | |
data.components.persona_geo_divergence.comparisons[].changed_passages | array of object | Yes | |
data.components.persona_geo_divergence.comparisons[].changed_passages[].baseline_rank | integer | null | Yes | |
data.components.persona_geo_divergence.comparisons[].changed_passages[].passage_id | string (uuid) | Yes | |
data.components.persona_geo_divergence.comparisons[].changed_passages[].variant_rank | integer | null | Yes | |
data.components.persona_geo_divergence.comparisons[].variant_market_id | string | Yes | |
data.components.persona_geo_divergence.comparisons[].variant_persona_id | string | Yes | |
data.components.persona_geo_divergence.measurement | "simulated" | No | |
data.components.persona_geo_divergence.observed_personalization | "unknown" | No | |
data.components.persona_geo_divergence.observed_user_memory | "unknown" | No | |
data.components.persona_geo_divergence.scenarios | array of object | Yes | |
data.components.persona_geo_divergence.scenarios[].market_id | string | Yes | |
data.components.persona_geo_divergence.scenarios[].observed_locale_control | "unknown" | No | |
data.components.persona_geo_divergence.scenarios[].persona_id | string | Yes | |
data.components.persona_geo_divergence.scenarios[].ranks | array of object | Yes | |
data.components.persona_geo_divergence.scenarios[].ranks[].passage_id | string (uuid) | Yes | |
data.components.persona_geo_divergence.scenarios[].ranks[].rank | integer | Yes | |
data.components.persona_geo_divergence.scenarios[].ranks[].retrieval_rank | integer | Yes | |
data.evidence | object | Yes | |
data.evidence.passages | array of object | Yes | |
data.expires_at | string (date-time) | Yes | |
data.manifest | object | Yes | |
data.metering | object | Yes | |
data.metering.credits | 0 | Yes | |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | No | Finished output from this run. |
data.result.components | object | No | |
data.result.components.persona_geo_divergence | object | Conditional | |
data.result.components.persona_geo_divergence.comparisons | array of object | Conditional | |
data.result.components.persona_geo_divergence.comparisons[].baseline_market_id | string | Conditional | |
data.result.components.persona_geo_divergence.comparisons[].baseline_persona_id | string | Conditional | |
data.result.components.persona_geo_divergence.comparisons[].changed_factor | "persona" | "market" | Conditional | |
data.result.components.persona_geo_divergence.comparisons[].changed_passages | array of object | Conditional | |
data.result.components.persona_geo_divergence.comparisons[].changed_passages[].baseline_rank | integer | null | Conditional | |
data.result.components.persona_geo_divergence.comparisons[].changed_passages[].passage_id | string (uuid) | Conditional | |
data.result.components.persona_geo_divergence.comparisons[].changed_passages[].variant_rank | integer | null | Conditional | |
data.result.components.persona_geo_divergence.comparisons[].variant_market_id | string | Conditional | |
data.result.components.persona_geo_divergence.comparisons[].variant_persona_id | string | Conditional | |
data.result.components.persona_geo_divergence.measurement | "simulated" | No | |
data.result.components.persona_geo_divergence.observed_personalization | "unknown" | No | |
data.result.components.persona_geo_divergence.observed_user_memory | "unknown" | No | |
data.result.components.persona_geo_divergence.scenarios | array of object | Conditional | |
data.result.components.persona_geo_divergence.scenarios[].market_id | string | Conditional | |
data.result.components.persona_geo_divergence.scenarios[].observed_locale_control | "unknown" | No | |
data.result.components.persona_geo_divergence.scenarios[].persona_id | string | Conditional | |
data.result.components.persona_geo_divergence.scenarios[].ranks | array of object | Conditional | |
data.result.components.persona_geo_divergence.scenarios[].ranks[].passage_id | string (uuid) | Conditional | |
data.result.components.persona_geo_divergence.scenarios[].ranks[].rank | integer | Conditional | |
data.result.components.persona_geo_divergence.scenarios[].ranks[].retrieval_rank | integer | Conditional | |
data.result.evidence | object | No | |
data.result.evidence.passages | array of object | Conditional | |
data.result.manifest | object | No | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "persona_geo_divergence" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Synthetic context position testcontext_position_test
Open this request with Python and TypeScript examples
- Path
run_idstarts withcontext_position_test:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- viewer, editor, approver, publisher, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
brand_id | query | string (uuid) | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.context_position | object | Yes | |
data.context_position.distractor_passage_ids | array of string (uuid) | Yes | |
data.context_position.evidence | array of object | Yes | |
data.context_position.evidence[].end_offset | integer | Yes | |
data.context_position.evidence[].passage_id | string (uuid) | Yes | |
data.context_position.evidence[].sha256 | string | Yes | |
data.context_position.evidence[].snapshot_id | string (uuid) | Yes | |
data.context_position.evidence[].start_offset | integer | Yes | |
data.context_position.evidence[].url | string | Yes | |
data.context_position.fixture_mode | "grounded" | "omit_fact" | "wrong_source" | Yes | |
data.context_position.measurement | "synthetic" | Yes | |
data.context_position.paired | object | object | null | Yes | |
data.context_position.paired.kind | "edited_opening" | Conditional | |
data.context_position.paired.replace_tokens | integer | Conditional | |
data.context_position.paired.text | string | Conditional | |
data.context_position.paired.kind | "relocated_fact" | Conditional | |
data.context_position.question_tokens | integer | Yes | |
data.context_position.ranked_passage_ids | array of string (uuid) | Yes | |
data.context_position.repetitions | integer | Yes | |
data.context_position.review_manifest_sha256 | string | Yes | |
data.context_position.review_run_id | string | Yes | |
data.context_position.rubric_version | string | Yes | |
data.context_position.scenarios | array of object | Yes | |
data.context_position.scenarios[].answer_use_range | number | Yes | |
data.context_position.scenarios[].correct_attribution_range | number | Yes | |
data.context_position.scenarios[].scores | array of object | Yes | |
data.context_position.scenarios[].scores[].answer_use_rate | number | Yes | |
data.context_position.scenarios[].scores[].correct_attribution_rate | number | Yes | |
data.context_position.scenarios[].scores[].position | "start" | "middle" | "end" | Yes | |
data.context_position.scenarios[].trials | array of object | Yes | |
data.context_position.scenarios[].trials[].answer_used_target_fact | boolean | Yes | |
data.context_position.scenarios[].trials[].cited_passage_id | string (uuid) | null | Yes | |
data.context_position.scenarios[].trials[].cited_target_passage | boolean | Yes | |
data.context_position.scenarios[].trials[].outcome | "success" | "truncation" | "synthesis_omission" | "wrong_attribution" | Yes | |
data.context_position.scenarios[].trials[].packed_tokens | integer | Yes | |
data.context_position.scenarios[].trials[].position | "start" | "middle" | "end" | Yes | |
data.context_position.scenarios[].trials[].repetition | integer | Yes | |
data.context_position.scenarios[].trials[].target_chunk_survived | boolean | Yes | |
data.context_position.scenarios[].trials[].target_fact_survived | boolean | Yes | |
data.context_position.scenarios[].trials[].target_tokens_packed | integer | Yes | |
data.context_position.scenarios[].variant | "original" | "edited_opening" | "relocated_fact" | Yes | |
data.context_position.status | "complete" | "retrieval_miss" | "insufficient_distractors" | Yes | |
data.context_position.subquery_id | string | Yes | |
data.context_position.synthesizer_version | string | Yes | |
data.context_position.target_passage_id | string (uuid) | Yes | |
data.context_position.target_retrieved | boolean | Yes | |
data.context_position.token_budget | integer | Yes | |
data.context_position.tokenizer_version | string | Yes | |
data.expires_at | string (date-time) | Yes | |
data.metering | object | Yes | |
data.metering.credits | 0 | Yes | |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | No | Finished output from this run. |
data.result.context_position | object | No | |
data.result.context_position.distractor_passage_ids | array of string (uuid) | Conditional | |
data.result.context_position.evidence | array of object | Conditional | |
data.result.context_position.evidence[].end_offset | integer | Conditional | |
data.result.context_position.evidence[].passage_id | string (uuid) | Conditional | |
data.result.context_position.evidence[].sha256 | string | Conditional | |
data.result.context_position.evidence[].snapshot_id | string (uuid) | Conditional | |
data.result.context_position.evidence[].start_offset | integer | Conditional | |
data.result.context_position.evidence[].url | string | Conditional | |
data.result.context_position.fixture_mode | "grounded" | "omit_fact" | "wrong_source" | Conditional | |
data.result.context_position.measurement | "synthetic" | Conditional | |
data.result.context_position.paired | object | object | null | Conditional | |
data.result.context_position.paired.kind | "edited_opening" | Conditional | |
data.result.context_position.paired.replace_tokens | integer | Conditional | |
data.result.context_position.paired.text | string | Conditional | |
data.result.context_position.paired.kind | "relocated_fact" | Conditional | |
data.result.context_position.question_tokens | integer | Conditional | |
data.result.context_position.ranked_passage_ids | array of string (uuid) | Conditional | |
data.result.context_position.repetitions | integer | Conditional | |
data.result.context_position.review_manifest_sha256 | string | Conditional | |
data.result.context_position.review_run_id | string | Conditional | |
data.result.context_position.rubric_version | string | Conditional | |
data.result.context_position.scenarios | array of object | Conditional | |
data.result.context_position.scenarios[].answer_use_range | number | Conditional | |
data.result.context_position.scenarios[].correct_attribution_range | number | Conditional | |
data.result.context_position.scenarios[].scores | array of object | Conditional | |
data.result.context_position.scenarios[].scores[].answer_use_rate | number | Conditional | |
data.result.context_position.scenarios[].scores[].correct_attribution_rate | number | Conditional | |
data.result.context_position.scenarios[].scores[].position | "start" | "middle" | "end" | Conditional | |
data.result.context_position.scenarios[].trials | array of object | Conditional | |
data.result.context_position.scenarios[].trials[].answer_used_target_fact | boolean | Conditional | |
data.result.context_position.scenarios[].trials[].cited_passage_id | string (uuid) | null | Conditional | |
data.result.context_position.scenarios[].trials[].cited_target_passage | boolean | Conditional | |
data.result.context_position.scenarios[].trials[].outcome | "success" | "truncation" | "synthesis_omission" | "wrong_attribution" | Conditional | |
data.result.context_position.scenarios[].trials[].packed_tokens | integer | Conditional | |
data.result.context_position.scenarios[].trials[].position | "start" | "middle" | "end" | Conditional | |
data.result.context_position.scenarios[].trials[].repetition | integer | Conditional | |
data.result.context_position.scenarios[].trials[].target_chunk_survived | boolean | Conditional | |
data.result.context_position.scenarios[].trials[].target_fact_survived | boolean | Conditional | |
data.result.context_position.scenarios[].trials[].target_tokens_packed | integer | Conditional | |
data.result.context_position.scenarios[].variant | "original" | "edited_opening" | "relocated_fact" | Conditional | |
data.result.context_position.status | "complete" | "retrieval_miss" | "insufficient_distractors" | Conditional | |
data.result.context_position.subquery_id | string | Conditional | |
data.result.context_position.synthesizer_version | string | Conditional | |
data.result.context_position.target_passage_id | string (uuid) | Conditional | |
data.result.context_position.target_retrieved | boolean | Conditional | |
data.result.context_position.token_budget | integer | Conditional | |
data.result.context_position.tokenizer_version | string | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "context_position_test" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read or save passage overlap and retrieval rank comparisonspassage_overlap
Open this request with Python and TypeScript examples
- Path
run_idstarts withpassage_overlap:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- viewer, editor, approver, publisher, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
brand_id | query | string (uuid) | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.components | object | Yes | |
data.components.dilution | object | Yes | |
data.components.dilution.measurement | "measured" | Yes | |
data.components.dilution.status | "complete" | Yes | |
data.components.dilution.tests | array of object | Yes | |
data.components.overlap | object | Yes | |
data.components.overlap.boilerplate_passage_ids | array of string (uuid) | Yes | |
data.components.overlap.groups | array of object | Yes | |
data.components.overlap.groups[].affected_urls | array of string (uri) | Yes | |
data.components.overlap.groups[].classification | "content_duplicate" | "canonical_duplicate" | "semantic_overlap" | Yes | |
data.components.overlap.groups[].competition | "shared_buyer_questions" | "no_shared_question_match" | Yes | |
data.components.overlap.groups[].editorial_options | array of "merge" | "no_change" | Yes | |
data.components.overlap.groups[].group_id | string | Yes | |
data.components.overlap.groups[].passages | array of object | Yes | |
data.components.overlap.groups[].questions | array of object | Yes | |
data.components.overlap.groups[].questions[].question_id | string | Yes | |
data.components.overlap.groups[].questions[].ranks | object | Yes | |
data.components.overlap.groups[].questions[].ranks.[key] | integer | No | Value for each key. |
data.components.overlap.measurement | "measured" | Yes | |
data.components.overlap.status | "complete" | Yes | |
data.evidence | object | Yes | |
data.evidence.passages | object | Yes | |
data.expires_at | string (date-time) | Yes | |
data.manifest | object | Yes | |
data.metering | object | Yes | |
data.metering.credits | 0 | Yes | |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | No | Finished output from this run. |
data.result.components | object | No | |
data.result.components.dilution | object | Conditional | |
data.result.components.dilution.measurement | "measured" | Conditional | |
data.result.components.dilution.status | "complete" | Conditional | |
data.result.components.dilution.tests | array of object | Conditional | |
data.result.components.overlap | object | Conditional | |
data.result.components.overlap.boilerplate_passage_ids | array of string (uuid) | Conditional | |
data.result.components.overlap.groups | array of object | Conditional | |
data.result.components.overlap.groups[].affected_urls | array of string (uri) | Conditional | |
data.result.components.overlap.groups[].classification | "content_duplicate" | "canonical_duplicate" | "semantic_overlap" | Conditional | |
data.result.components.overlap.groups[].competition | "shared_buyer_questions" | "no_shared_question_match" | Conditional | |
data.result.components.overlap.groups[].editorial_options | array of "merge" | "no_change" | Conditional | |
data.result.components.overlap.groups[].group_id | string | Conditional | |
data.result.components.overlap.groups[].passages | array of object | Conditional | |
data.result.components.overlap.groups[].questions | array of object | Conditional | |
data.result.components.overlap.groups[].questions[].question_id | string | Conditional | |
data.result.components.overlap.groups[].questions[].ranks | object | Conditional | |
data.result.components.overlap.groups[].questions[].ranks.[key] | integer | No | Value for each key. |
data.result.components.overlap.measurement | "measured" | Conditional | |
data.result.components.overlap.status | "complete" | Conditional | |
data.result.evidence | object | No | |
data.result.evidence.passages | object | Conditional | |
data.result.manifest | object | No | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "passage_overlap" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Compare buyer-question framings against saved evidencecomparison_evidence_gaps
Open this request with Python and TypeScript examples
- Path
run_idstarts withcomparison_evidence_gaps:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read, audits:read, optimizations:read
- Roles
- viewer, editor, approver, publisher, owner, service
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Saved result.
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.components | object | Yes | |
data.components.comparison_evidence_gaps | object | Yes | |
data.components.comparison_evidence_gaps.as_of | string (date) | Yes | |
data.components.comparison_evidence_gaps.documentation_proposals | array of object | Yes | |
data.components.comparison_evidence_gaps.documentation_proposals[].brief | string | Yes | |
data.components.comparison_evidence_gaps.documentation_proposals[].claim_id | string | Yes | |
data.components.comparison_evidence_gaps.documentation_proposals[].item_id | string (uuid) | Yes | |
data.components.comparison_evidence_gaps.documentation_proposals[].passage_ids | array of string (uuid) | Yes | |
data.components.comparison_evidence_gaps.documentation_proposals[].source_url | string | Yes | |
data.components.comparison_evidence_gaps.documentation_proposals[].title | string | Yes | |
data.components.comparison_evidence_gaps.evidence_gaps | array of object | Yes | |
data.components.comparison_evidence_gaps.evidence_gaps[].claim_id | string | Yes | |
data.components.comparison_evidence_gaps.evidence_gaps[].evidence_needed | string | Yes | |
data.components.comparison_evidence_gaps.evidence_gaps[].reason | "dated_source_missing" | "conflicting_assessments" | Yes | |
data.components.comparison_evidence_gaps.findings | array of object | Yes | |
data.components.comparison_evidence_gaps.findings[].assessment | "supported_strength" | "verified_limitation" | "contradicted_assertion" | "unsupported_assertion" | "unknown" | Yes | |
data.components.comparison_evidence_gaps.findings[].claim_id | string | Yes | |
data.components.comparison_evidence_gaps.findings[].passage_ids | array of string (uuid) | Yes | |
data.components.comparison_evidence_gaps.findings[].product | "brand" | "competitor" | Yes | |
data.components.comparison_evidence_gaps.findings[].statement | string | Yes | |
data.components.comparison_evidence_gaps.framings | array of object | Yes | |
data.components.comparison_evidence_gaps.framings[].direction | "brand" | "competitor" | Yes | |
data.components.comparison_evidence_gaps.framings[].finding_ids | array of string | Yes | |
data.components.comparison_evidence_gaps.framings[].kind | "neutral" | "leading" | Yes | |
data.components.comparison_evidence_gaps.framings[].question | string | Yes | |
data.components.comparison_evidence_gaps.measurement | "inferred" | No | |
data.evidence | object | Yes | |
data.evidence.passages | array of object | Yes | |
data.expires_at | string (date-time) | Yes | |
data.manifest | object | Yes | |
data.metering | object | Yes | |
data.metering.credits | 0 | Yes | |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | No | Finished output from this run. |
data.result.components | object | No | |
data.result.components.comparison_evidence_gaps | object | Conditional | |
data.result.components.comparison_evidence_gaps.as_of | string (date) | Conditional | |
data.result.components.comparison_evidence_gaps.documentation_proposals | array of object | Conditional | |
data.result.components.comparison_evidence_gaps.documentation_proposals[].brief | string | Conditional | |
data.result.components.comparison_evidence_gaps.documentation_proposals[].claim_id | string | Conditional | |
data.result.components.comparison_evidence_gaps.documentation_proposals[].item_id | string (uuid) | Conditional | |
data.result.components.comparison_evidence_gaps.documentation_proposals[].passage_ids | array of string (uuid) | Conditional | |
data.result.components.comparison_evidence_gaps.documentation_proposals[].source_url | string | Conditional | |
data.result.components.comparison_evidence_gaps.documentation_proposals[].title | string | Conditional | |
data.result.components.comparison_evidence_gaps.evidence_gaps | array of object | Conditional | |
data.result.components.comparison_evidence_gaps.evidence_gaps[].claim_id | string | Conditional | |
data.result.components.comparison_evidence_gaps.evidence_gaps[].evidence_needed | string | Conditional | |
data.result.components.comparison_evidence_gaps.evidence_gaps[].reason | "dated_source_missing" | "conflicting_assessments" | Conditional | |
data.result.components.comparison_evidence_gaps.findings | array of object | Conditional | |
data.result.components.comparison_evidence_gaps.findings[].assessment | "supported_strength" | "verified_limitation" | "contradicted_assertion" | "unsupported_assertion" | "unknown" | Conditional | |
data.result.components.comparison_evidence_gaps.findings[].claim_id | string | Conditional | |
data.result.components.comparison_evidence_gaps.findings[].passage_ids | array of string (uuid) | Conditional | |
data.result.components.comparison_evidence_gaps.findings[].product | "brand" | "competitor" | Conditional | |
data.result.components.comparison_evidence_gaps.findings[].statement | string | Conditional | |
data.result.components.comparison_evidence_gaps.framings | array of object | Conditional | |
data.result.components.comparison_evidence_gaps.framings[].direction | "brand" | "competitor" | Conditional | |
data.result.components.comparison_evidence_gaps.framings[].finding_ids | array of string | Conditional | |
data.result.components.comparison_evidence_gaps.framings[].kind | "neutral" | "leading" | Conditional | |
data.result.components.comparison_evidence_gaps.framings[].question | string | Conditional | |
data.result.components.comparison_evidence_gaps.measurement | "inferred" | No | |
data.result.evidence | object | No | |
data.result.evidence.passages | array of object | Conditional | |
data.result.manifest | object | No | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "succeeded" | Yes | |
data.workflow | "comparison_evidence_gaps" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read an AI search topics runai_search_topics
Open this request with Python and TypeScript examples
- Path
run_idstarts withai_search_topics:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- prompts:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Read an AI search topics run
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string (uuid) | Yes | |
data.kind | "ai_search_topics" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | Yes | |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | null | Yes | |
data.result.estimate | object | Conditional | |
data.result.estimate.confidence | "low" | "insufficient" | Conditional | |
data.result.estimate.confidence_reason | "uncalibrated" | "period_not_covered" | "insufficient_sample" | "score_not_interpretable" | Conditional | |
data.result.estimate.label_language | "en" | Conditional | |
data.result.estimate.language_scope | "exact" | "unfiltered" | Conditional | |
data.result.estimate.market | object | Conditional | |
data.result.estimate.market.country | "US" | "DZ" | Conditional | |
data.result.estimate.market.language | "en-US" | "fr-DZ" | Conditional | |
data.result.estimate.measured_population_language | "en" | "mixed" | "unknown" | Conditional | |
data.result.estimate.method | "interest_estimate" | "relative_interest_index" | Conditional | |
data.result.estimate.method_version | string | Conditional | |
data.result.estimate.period | object | Conditional | |
data.result.estimate.period.data_vintage | string (date) | null | Conditional | |
data.result.estimate.period.end | string (date) | Conditional | |
data.result.estimate.period.granularity | "month" | Conditional | |
data.result.estimate.period.start | string (date) | Conditional | |
data.result.estimate.platform_attribution | "none" | "unknown" | "partial" | Conditional | |
data.result.estimate.platforms_covered | array of "chatgpt" | "gemini" | "claude" | "perplexity" | "google" | "bing" | "brave" | "meta_ai" | "grok" | "universal" | Conditional | |
data.result.estimate.reference_set | object | object | Conditional | |
data.result.estimate.reference_set.kind | "reference_list" | "reference_set" | Conditional | |
data.result.estimate.reference_set.ranked_count | integer | Conditional | |
data.result.estimate.reference_set.size | integer | null | Conditional | |
data.result.estimate.reference_set.version | string | Conditional | |
data.result.estimate.reference_set.source_truncated | boolean | Conditional | |
data.result.estimate.sample | object | object | Conditional | |
data.result.estimate.sample.notes | array of string | Conditional | |
data.result.estimate.sample.unit | "topic_interest_monthly" | "topic_interest_score" | Conditional | |
data.result.estimate.sample.score_base | integer | null | Conditional | |
data.result.estimate.source_label | "estimate" | Conditional | |
data.result.period | object | Conditional | |
data.result.period.data_vintage | string (date) | null | Conditional | |
data.result.period.end | string (date) | Conditional | |
data.result.period.granularity | "month" | Conditional | |
data.result.period.start | string (date) | Conditional | |
data.result.reason | "period_not_covered" | "insufficient_sample" | "score_not_interpretable" | null | Conditional | |
data.result.synthetic | boolean | Conditional | |
data.result.topics | array of object | Conditional | |
data.result.topics[].example_prompts | array of object | Conditional | |
data.result.topics[].example_prompts[].provenance | "synthetic" | Conditional | |
data.result.topics[].example_prompts[].text | string | Conditional | |
data.result.topics[].metric | object | object | Conditional | |
data.result.topics[].metric.relative_index | integer | Conditional | |
data.result.topics[].metric.interest_index | number | Conditional | Relative interest index for the month shown. |
data.result.topics[].platforms | array of object | No | |
data.result.topics[].platforms[].confidence | "low" | Conditional | |
data.result.topics[].platforms[].platform | "chatgpt" | "google_ai_overviews" | Conditional | |
data.result.topics[].platforms[].relative_index | integer | Conditional | |
data.result.topics[].platforms[].trend | "up" | "flat" | "down" | null | Conditional | |
data.result.topics[].rank | integer | Conditional | |
data.result.topics[].topic | string | Conditional | |
data.result.topics[].topic_id | string (uuid) | Conditional | |
data.result.topics[].trend | object | Conditional | |
data.result.topics[].trend.comparison_period | object | null | Conditional | |
data.result.topics[].trend.comparison_period.end | string (date) | Conditional | |
data.result.topics[].trend.comparison_period.granularity | "month" | Conditional | |
data.result.topics[].trend.comparison_period.start | string (date) | Conditional | |
data.result.topics[].trend.direction | "up" | "down" | "flat" | "not_measured" | Conditional | |
data.result.topics[].trend.reason | "comparison_not_covered" | "comparison_value_zero" | "rebased_scores" | null | Conditional | |
data.revision | integer | Yes | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.status | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.workflow | "ai_search_topics" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read an answer accuracy checkcheck_answer_accuracy
Open this request with Python and TypeScript examples
- Path
run_idstarts withcheck_answer_accuracy:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
brand_id | query | string (uuid) | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Read an answer accuracy check
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.metering | object | Yes | |
data.metering.credits | integer | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | Yes | |
data.result.checks | array of object | object | Yes | |
data.result.checks[].observation_id | string (uuid) | Yes | |
data.result.checks[].status | "in_progress" | "completed" | Yes | |
data.result.checks[].accuracy_score | number | null | Conditional | |
data.result.checks[].checked_at | string (date-time) | Conditional | |
data.result.checks[].claims | array of object | Conditional | |
data.result.checks[].claims[].claim_id | string (uuid) | Conditional | |
data.result.checks[].claims[].matching_fact | object | null | Conditional | |
data.result.checks[].claims[].matching_fact.content_id | string (uuid) | Conditional | |
data.result.checks[].claims[].matching_fact.content_revision | string (uuid) | Conditional | |
data.result.checks[].claims[].matching_fact.country | string | null | Conditional | |
data.result.checks[].claims[].matching_fact.fact_id | string (uuid) | Conditional | |
data.result.checks[].claims[].matching_fact.source_quote | string | Conditional | |
data.result.checks[].claims[].matching_fact.source_url | string | Conditional | |
data.result.checks[].claims[].matching_fact.statement | string | Conditional | |
data.result.checks[].claims[].reason | string | Conditional | |
data.result.checks[].claims[].source_pages | array of object | Conditional | |
data.result.checks[].claims[].source_pages[].ownership | "brand" | "competitor" | "third_party" | Conditional | |
data.result.checks[].claims[].source_pages[].scope | "answer" | "claim" | Conditional | |
data.result.checks[].claims[].source_pages[].url | string | Conditional | |
data.result.checks[].claims[].statement | string | Conditional | |
data.result.checks[].claims[].status | "supported" | "contradicted" | "outdated" | "insufficient_evidence" | "not_covered" | Conditional | |
data.result.checks[].claims[].theme | "pricing" | "features" | "availability" | "policy" | "company" | "integrations" | "other" | Conditional | |
data.result.delivered_count | integer | Yes | |
data.rights_filtered | boolean | Yes | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "in_progress" | "completed" | Yes | |
data.workflow | "check_answer_accuracy" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read a draft accuracy checkcheck_draft_accuracy
Open this request with Python and TypeScript examples
- Path
run_idstarts withcheck_draft_accuracy:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- optimizations:read, analytics:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
brand_id | query | string (uuid) | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Read a draft accuracy check
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.metering | object | Yes | |
data.metering.credits | integer | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.result | object | Yes | |
data.result.checks | array of object | object | Yes | |
data.result.checks[].draft_id | string (uuid) | Yes | |
data.result.checks[].draft_revision | integer | Yes | |
data.result.checks[].status | "in_progress" | "completed" | Yes | |
data.result.checks[].checked_at | string (date-time) | Conditional | |
data.result.checks[].has_wrong_claims | boolean | Conditional | True if any claim is contradicted or outdated. |
data.result.delivered_count | integer | Yes | |
data.rights_filtered | boolean | Yes | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "in_progress" | "completed" | Yes | |
data.workflow | "check_draft_accuracy" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Read a Brave Search submissionbrave_submit
Open this request with Python and TypeScript examples
- Path
run_idstarts withbrave_submit:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- brands:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
brand_id | query | string (uuid) | No |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Read a Brave Search submission
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.requested_at | string (date-time) | Yes | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "in_progress" | "submitted" | "failed" | Yes | |
data.submitted_at | string (date-time) | null | Yes | |
data.url | string | Yes | |
data.workflow | "brave_submit" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited
Get Estimateestimate
Open this request with Python and TypeScript examples
- Path
run_idstarts withestimate:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:read
- Roles
- approver, editor, owner, publisher, service, viewer
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
- Workflow ai_search_topics. Scopes prompts:write. Roles editor, owner, service. Plans Optimizer.
- Workflow check_answer_accuracy. Scopes prompts:write. Roles editor, owner, service. Plans Optimizer, Analyzer.
- Workflow check_draft_accuracy. Scopes prompts:write, analytics:read, optimizations:read. Roles editor, owner, service. Plans Optimizer.
- Workflow cited_page_labelling. Scopes audits:write. Roles editor, owner, service. Plans Optimizer, Analyzer.
- Workflow cited_page_sweep. Scopes audits:write. Roles editor, owner, service. Plans Optimizer, Analyzer.
- Workflow collect. Scopes collections:write. Roles editor, owner, service. Plans Optimizer, Analyzer. Billing access required.
- Workflow editorial_generation. Scopes optimizations:read. Roles approver, editor, owner, publisher, service, viewer. Plans Optimizer.
- Workflow managed. Scopes collections:read. Roles approver, editor, owner, publisher, service, viewer. Plans Optimizer, Analyzer.
- Workflow passage_overlap. Scopes analytics:read, audits:read, optimizations:read. Roles editor, owner, service. Plans Optimizer.
- Workflow prepublish_review. Scopes analytics:read, audits:read, optimizations:read. Roles editor, owner, service. Plans Optimizer.
- Workflow query_fanout_coverage. Scopes analytics:read. Roles editor, owner, service. Plans Optimizer.
- Workflow retrieval_benchmark. Scopes analytics:read, audits:read, optimizations:read. Roles editor, owner, service. Plans Optimizer.
- Workflow retrieval_regression. Scopes analytics:read, audits:read, optimizations:read. Roles editor, owner, service. Plans Optimizer.
- Workflow retrieval_win_rate. Scopes analytics:read, audits:read, optimizations:read. Roles editor, owner, service. Plans Optimizer.
- Workflow verify_answer_claims. Scopes analytics:read. Roles editor, owner, service. Plans Optimizer.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X GET "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY"Responses
HTTP 200
Successful Response
application/json
Response fields are listed below.
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.eligible_engines | array of object | Yes | |
data.eligible_engines[].applied_location | object | null | No | |
data.eligible_engines[].applied_location.city | string | null | No | |
data.eligible_engines[].applied_location.country | string | null | No | |
data.eligible_engines[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.eligible_engines[].applied_location.latitude | number | null | No | |
data.eligible_engines[].applied_location.longitude | number | null | No | |
data.eligible_engines[].applied_location.postal_code | string | null | No | |
data.eligible_engines[].applied_location.region | string | null | No | |
data.eligible_engines[].charge_per_step | integer | Yes | |
data.eligible_engines[].reserve_per_step | integer | Yes | |
data.eligible_engines[].source | object | Yes | |
data.eligible_engines[].unenforced_controls | array of string | Yes | |
data.estimate_fingerprint | string | Yes | |
data.estimated_credits | integer | Yes | The expected credit cost for this selection. |
data.excluded_sources | array of object | Yes | Sources omitted from the estimate. Location estimates include the affected location_id with each exclusion. Location exclusions have reason location_not_supported. Sources outside your plan have reason feature_not_offered. |
data.excluded_sources[].location_id | string (uuid) | No | |
data.expires_at | string | Yes | |
data.location_totals | array of object | No | |
data.location_totals[].eligible_engines | array of object | No | |
data.location_totals[].eligible_engines[].source | object | Conditional | |
data.location_totals[].eligible_engines[].unenforced_controls | array of string | Conditional | |
data.location_totals[].estimated_credits | integer | Conditional | |
data.location_totals[].location_id | string (uuid) | Conditional | |
data.location_totals[].market | object | Conditional | |
data.location_totals[].market.city | string | null | null | No | |
data.location_totals[].market.country | string | Conditional | |
data.location_totals[].market.language | string | Conditional | |
data.location_totals[].market.latitude | number | null | No | |
data.location_totals[].market.location_id | string (uuid) | No | |
data.location_totals[].market.longitude | number | null | No | |
data.location_totals[].market.postal_code | string | null | No | |
data.location_totals[].market.region | string | null | null | No | |
data.location_totals[].maximum_credits | integer | Conditional | |
data.location_totals[].prompt_count | integer | Conditional | |
data.maximum_credits | integer | Yes | The upper credit estimate for this selection. |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.prompt_count | integer | Yes | |
data.prompt_set_revision | string | Yes | |
data.run_id | string | null | No | Identifies the run. Keep any prefix when using it in a request. |
data.status | "estimated" | "expired" | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
data.website | string | null | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.answer_count | integer | Yes | |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.eligible_engines | array of object | Yes | |
data.eligible_engines[].source | object | Yes | |
data.eligible_engines[].unenforced_controls | array of string | Yes | |
data.estimated_credits | integer | Yes | The expected credit cost for this selection. |
data.location_totals | array of object | No | |
data.location_totals[].eligible_engines | array of object | No | |
data.location_totals[].eligible_engines[].source | object | Conditional | |
data.location_totals[].eligible_engines[].unenforced_controls | array of string | Conditional | |
data.location_totals[].estimated_credits | integer | Conditional | |
data.location_totals[].location_id | string (uuid) | Conditional | |
data.location_totals[].market | object | Conditional | |
data.location_totals[].market.city | string | null | null | No | |
data.location_totals[].market.country | string | Conditional | |
data.location_totals[].market.language | string | Conditional | |
data.location_totals[].market.latitude | number | null | No | |
data.location_totals[].market.location_id | string (uuid) | No | |
data.location_totals[].market.longitude | number | null | No | |
data.location_totals[].market.postal_code | string | null | No | |
data.location_totals[].market.region | string | null | null | No | |
data.location_totals[].maximum_credits | integer | Conditional | |
data.location_totals[].prompt_count | integer | Conditional | |
data.maximum_credits | integer | Yes | The upper credit estimate for this selection. |
data.prompt_count | integer | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.call_count | 1 | No | |
data.charge_units | integer | Yes | |
data.draft_revision | integer | Yes | |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.purpose | string | Yes | |
data.quote_id | string | Yes | |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.due_pages | integer | Yes | |
data.estimate_id | string | Yes | Identifies the estimate for this selection. |
data.expires_at | string | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.selected_pages | integer | Yes | |
data.workflow | "cited_page_sweep" | "cited_page_labelling" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.category_id | string | Yes | |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.language_scope | "exact" | "unfiltered" | Yes | |
data.limit | integer | Yes | |
data.market | object | Yes | |
data.market.city | string | null | null | No | |
data.market.country | string | Yes | |
data.market.language | string | Yes | |
data.market.region | string | null | null | No | |
data.period | object | Yes | |
data.period.end | string (date) | Yes | |
data.period.granularity | "month" | No | |
data.period.start | string (date) | Yes | |
data.platform_attribution | "none" | "unknown" | "partial" | Yes | |
data.platform_costs | array of object | No | |
data.platform_costs[].charge_units | integer | Conditional | |
data.platform_costs[].platform | "chatgpt" | "google_ai_overviews" | Conditional | |
data.platform_costs[].reserve_units | integer | Conditional | |
data.platform_scope | "covered" | "chatgpt" | "google_ai_overviews" | Yes | |
data.platforms | array of string | No | |
data.platforms_covered | array of string | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.workflow | "ai_search_topics" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.check_count | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.estimated_units | integer | Yes | |
data.expires_at | string (date-time) | Yes | |
data.max_units | integer | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | object | null | No | |
data.simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
data.simulation_options.monitored_competitors.limit | integer | No | |
data.simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "passage_overlap" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | object | null | No | |
data.simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
data.simulation_options.monitored_competitors.limit | integer | No | |
data.simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "prepublish_review" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | object | null | No | |
data.simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
data.simulation_options.monitored_competitors.limit | integer | No | |
data.simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "query_fanout_coverage" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | object | null | No | |
data.simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
data.simulation_options.monitored_competitors.limit | integer | No | |
data.simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "retrieval_benchmark" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | object | null | No | |
data.simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
data.simulation_options.monitored_competitors.limit | integer | No | |
data.simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "retrieval_regression" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | null | No | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "retrieval_win_rate" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.brand_id | string (uuid) | Yes | Identifies the brand this result belongs to. |
data.charge_units | integer | Yes | |
data.estimate_id | string (uuid) | Yes | Identifies the estimate for this selection. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.reserve_units | integer | Yes | Credits the API needs to reserve when you start this work. |
data.simulation_options | object | Yes | |
data.simulation_options.delivery | "async" | No | |
data.simulation_options.input_kind | "saved" | No | |
data.simulation_options.max_candidates | integer | No | |
data.simulation_options.max_input_bytes | integer | No | |
data.simulation_options.max_input_tokens | integer | No | |
data.simulation_options.max_prompts | integer | No | |
data.simulation_options.mode | "persistent" | Yes | |
data.simulation_options.monitored_competitors | object | null | No | |
data.simulation_options.monitored_competitors.capture_revision_ids | array of string (uuid) | No | |
data.simulation_options.monitored_competitors.limit | integer | No | |
data.simulation_options.monitored_competitors.observation_ids | array of string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_id | string (uuid) | Conditional | |
data.simulation_options.monitored_competitors.prompt_version | integer | Conditional | |
data.simulation_options.revision_ids | array of string (uuid) | No | |
data.workflow | "verify_answer_claims" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.estimate_id | string (uuid) | Conditional | Requires at least one of estimate_id or quote_id. |
data.expires_at | string (date-time) | Yes | |
data.poll_url | string | Yes | Send an authenticated GET request to this URL to read the current result. |
data.quote_id | string | Conditional | Requires at least one of estimate_id or quote_id. |
data.status | "expired" | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 503
source_pending,feature_not_offered
DELETE /v2/runs/{run_id}
Cancel a run
Cancels the run. The run remains available to read.
Collect or cancel workjob
Open this request with Python and TypeScript examples
- Path
run_idstarts withjob:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
reason | query | string | No | Why you are cancelling the run. Supply 1 to 500 characters. |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X DELETE "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY"Responses
HTTP 202
Collect or cancel work result.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri-reference) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "00000000-0000-4000-8000-000000000001",
"kind": "collection",
"poll_url": "https://api.aeoapi.dev/v2/runs/job:00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string (uuid) | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | No | The credits charged for this work. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.completed_pages | integer | No | |
data.due_pages | integer | No | |
data.next_offset | integer | null | No | |
data.pages | array of object | No | |
data.pages[].brand_mentioned_on_page | boolean | null | No | |
data.pages[].changed_since_previous_check | boolean | null | No | |
data.pages[].citing_answers | integer | No | |
data.pages[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.pages[].classification_confidence | number | No | |
data.pages[].competitors_mentioned_on_page | object | No | |
data.pages[].competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.pages[].domain | string | No | |
data.pages[].last_checked_at | string | No | |
data.pages[].page_id | string | Conditional | |
data.pages[].page_status | "in_progress" | "live" | "gone" | Conditional | |
data.pages[].page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.pages[].page_type_confidence | number | null | No | |
data.pages[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.pages[].url | string | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "in_progress" | "completed" | "cancelled" | Yes | |
data.total_pages | integer | No | |
data.workflow | "cited_page_sweep" | "cited_page_labelling" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.poll_url | string (uri-reference) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "succeeded" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.workflow | "retrieval_win_rate" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Collect or cancel workmanaged
Open this request with Python and TypeScript examples
- Path
run_idstarts withmanaged:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- collections:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
- Billing access
- Required
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
reason | query | string | No | Why you are cancelling the run. Supply 1 to 500 characters. |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X DELETE "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY"Responses
HTTP 202
Collect or cancel work result.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "00000000-0000-4000-8000-000000000001",
"kind": "collection",
"poll_url": "https://api.aeoapi.dev/v2/runs/job:00000000-0000-4000-8000-000000000001",
"progress": 0,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "queued",
"updated_at": "2026-11-06T00:00:00Z"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string (uuid) | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | No | The credits charged for this work. |
data.brand_id | string | Yes | Identifies the brand this result belongs to. |
data.completed_pages | integer | No | |
data.due_pages | integer | No | |
data.next_offset | integer | null | No | |
data.pages | array of object | No | |
data.pages[].brand_mentioned_on_page | boolean | null | No | |
data.pages[].changed_since_previous_check | boolean | null | No | |
data.pages[].citing_answers | integer | No | |
data.pages[].classification_basis | "curated_domain" | "url_pattern" | "page_content" | "unknown" | No | |
data.pages[].classification_confidence | number | No | |
data.pages[].competitors_mentioned_on_page | object | No | |
data.pages[].competitors_mentioned_on_page.[key] | boolean | null | No | Value for each key. |
data.pages[].domain | string | No | |
data.pages[].last_checked_at | string | No | |
data.pages[].page_id | string | Conditional | |
data.pages[].page_status | "in_progress" | "live" | "gone" | Conditional | |
data.pages[].page_type | "blog" | "directory" | "review_site" | "news" | "forum" | "brand_site" | "competitor_site" | "marketplace" | "docs" | "social" | "press_release" | "comparison" | "roundup" | "guide" | "institution" | "reference" | "other" | "unknown" | "video" | No | |
data.pages[].page_type_confidence | number | null | No | |
data.pages[].source_category | "directory" | "review_site" | "local_directory" | "industry_directory" | "forum" | "social" | "video" | "news" | "local_news" | "comparison" | "marketplace" | "brand_site" | "competitor_site" | "docs" | "press" | "other" | No | |
data.pages[].url | string | Conditional | |
data.run_id | string | Yes | Identifies the run. Keep any prefix when using it in a request. |
data.status | "in_progress" | "completed" | "cancelled" | Yes | |
data.total_pages | integer | No | |
data.workflow | "cited_page_sweep" | "cited_page_labelling" | Yes | The workflow selected for this run or estimate. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered
Collect or cancel workaudit
Open this request with Python and TypeScript examples
- Path
run_idstarts withaudit:.
Authentication and access
- Authentication
- Bearer API key
- Scopes
- audits:write
- Roles
- editor, owner, service
- Plans
- Optimizer, Analyzer
- Credits
- No credit charge.
Parameters
| Name | Where | Type | Required | Description |
|---|---|---|---|---|
run_id | path | string | Yes | |
Idempotency-Key | header | string | Yes | For 7 days, sending the same key and body for the same account and operation returns the original response. Changing the body for that key returns HTTP 409. |
reason | query | string | No | Why you are cancelling the run. Supply 1 to 500 characters. |
Request body
Send this request without a body.
cURL request
curl --fail-with-body -X DELETE "$AEO_API_BASE_URL/v2/runs/$RUN_ID" \
-H "Authorization: Bearer $AEO_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY"Responses
HTTP 202
Collect or cancel work result.
| Name | Type | Required | Description |
|---|---|---|---|
Location | string (uri) | No | Authenticated polling URI returned in data.poll_url. |
X-RateLimit-Limit | integer | No | Requests in rate window. |
X-RateLimit-Remaining | integer | No | Remaining request tokens. |
X-RateLimit-Reset | integer | No | UTC Unix seconds when window resets. |
X-Request-Id | string (uuid) | No | Trace identifier. |
X-Usage-Units | integer | No | CU charged by this response; GET and account/usage always zero. |
application/json
{
"data": {
"billed_units": 0,
"created_at": "2026-11-06T00:00:00Z",
"error": null,
"estimated_units": 0,
"id": "00000000-0000-4000-8000-000000000001",
"kind": "audit",
"poll_url": "https://api.aeoapi.dev/v2/runs/audit:00000000-0000-4000-8000-000000000001",
"progress": 1,
"reserved_units": 0,
"result": null,
"revision": 1,
"state": "cancelled",
"updated_at": "2026-11-06T00:00:00Z",
"v2_run_id": "audit:00000000-0000-4000-8000-000000000001"
},
"meta": {
"as_of": "2026-11-06T00:00:00Z",
"collected_at": null,
"next_cursor": null,
"next_refresh_at": null,
"request_id": "00000000-0000-4000-8000-000000000001",
"rights_filtered": false,
"schema_version": "1.0",
"stale": false,
"warnings": []
}
}| Name | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The requested result. See the fields below for its contents. |
data.billed_units | integer | Yes | The credits charged for this work. |
data.created_at | string (date-time) | Yes | |
data.error | object | null | Yes | |
data.error.code | "invalid_request" | "unauthenticated" | "quota_exceeded" | "forbidden" | "not_found" | "conflict" | "precondition_failed" | "validation_error" | "rate_limited" | "source_pending" | "feature_not_offered" | "internal_error" | Conditional | |
data.error.duplicate_of | string (uuid) | No | ID of your existing prompt. |
data.error.field_errors | array of object | No | |
data.error.field_errors[].field | string | null | Conditional | |
data.error.field_errors[].message | string | Conditional | |
data.error.message | string | Conditional | |
data.error.request_id | string (uuid) | Conditional | |
data.error.retryable | boolean | Conditional | |
data.error.similar_prompts | array of object | No | Other matching prompts in your library. |
data.error.similar_prompts[].prompt_id | string (uuid) | Conditional | |
data.estimated_units | integer | Yes | |
data.id | string (uuid) | Yes | |
data.kind | "collection" | "prompt_generation" | "deletion" | "audit" | "optimization" | Yes | |
data.phase | "researching" | "drafting" | "validating" | "collecting" | "analyzing" | "exporting" | "purging" | null | No | |
data.poll_url | string (uri) | Yes | Send an authenticated GET request to this URL to read the current result. |
data.progress | number | Yes | |
data.reserved_units | integer | Yes | Credits held for the run. |
data.result | object | object | object | object | object | null | Yes | |
data.result.accepted | integer | Conditional | |
data.result.answers | array of object | No | |
data.result.answers[].answer_text | string | Conditional | |
data.result.answers[].answer_text_truncated | boolean | Conditional | |
data.result.answers[].brand_cited | boolean | Conditional | |
data.result.answers[].brand_mentioned | boolean | null | Conditional | |
data.result.answers[].citations | array of object | Conditional | |
data.result.answers[].citations[].order | integer | Conditional | |
data.result.answers[].citations[].url | string | Conditional | |
data.result.answers[].observation_id | string | Conditional | |
data.result.evidence_cursor | string | null | Conditional | |
data.result.failed | integer | Conditional | |
data.result.kind | "collection" | Conditional | |
data.result.observation_ids | array of string (uuid) | Conditional | |
data.result.observations | array of object | No | |
data.result.observations[].applied_location | object | null | Conditional | |
data.result.observations[].applied_location.city | string | null | No | |
data.result.observations[].applied_location.country | string | null | No | |
data.result.observations[].applied_location.granularity | "country" | "region" | "city" | "postal" | "coordinates" | Conditional | |
data.result.observations[].applied_location.latitude | number | null | No | |
data.result.observations[].applied_location.longitude | number | null | No | |
data.result.observations[].applied_location.postal_code | string | null | No | |
data.result.observations[].applied_location.region | string | null | No | |
data.result.observations[].observation_id | string (uuid) | Conditional | |
data.result.details | array of object | No | |
data.result.details[].rationale | string | Conditional | |
data.result.details[].suggestion_index | integer | Conditional | |
data.result.details[].template_version | string | Conditional | |
data.result.details[].warnings | array of string | Conditional | |
data.result.kind | "prompt_generation" | Conditional | |
data.result.outcome | object | No | Explains why the result contains no suggestions. |
data.result.outcome.reason | "no_eligible_candidates" | "web_evidence_missing" | Conditional | Whether no candidate qualified or usable web evidence was missing. |
data.result.outcome.web_evidence_used | boolean | Conditional | Whether the generation received a reply with confirmed web activity. |
data.result.suggestions | array of object | Conditional | |
data.result.suggestions[].action | "create" | Conditional | |
data.result.suggestions[].allow_similar | boolean | No | Save the prompt even if you already track the same question or a differently worded question with the same meaning. |
data.result.suggestions[].brand_id | string (uuid) | null | No | |
data.result.suggestions[].category_ids | array of string | null | Conditional | |
data.result.suggestions[].intent | "discovery" | "recommendation" | "evaluation" | "pricing" | "comparison" | "alternatives" | "use_case" | "transaction" | "local" | "troubleshooting" | "trust" | "informational" | Conditional | |
data.result.suggestions[].market | object | Conditional | |
data.result.suggestions[].market.city | string | null | null | No | |
data.result.suggestions[].market.country | string | Conditional | |
data.result.suggestions[].market.language | string | Conditional | |
data.result.suggestions[].market.region | string | null | null | No | |
data.result.suggestions[].tags | array of string | null | No | |
data.result.suggestions[].text | string | Conditional | |
data.result.backup_expiry_at | string (date-time) | null | Conditional | |
data.result.kind | "deletion" | Conditional | |
data.result.purged | boolean | Conditional | |
data.result.resource_id | string (uuid) | Conditional | |
data.result.retained_record_reasons | array of string | Conditional | |
data.result.agent_readiness | object | No | Our defined website access criteria for AI agents at checked_at (not a universal AI-readiness standard; no indexing, ranking, citation or answer outcome is measured). |
data.result.agent_readiness.checked_at | string (date-time) | Conditional | |
data.result.agent_readiness.checks | array of object | Conditional | |
data.result.agent_readiness.checks[].assessment | "verified" | "detected" | "not_detected" | "not_assessed" | No | |
data.result.agent_readiness.checks[].category | "core" | "robots" | "content" | "discovery" | "protocol" | Conditional | |
data.result.agent_readiness.checks[].evidence | array of object | Conditional | |
data.result.agent_readiness.checks[].evidence[].method | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].observed | string | Conditional | |
data.result.agent_readiness.checks[].evidence[].url | string | Conditional | |
data.result.agent_readiness.checks[].id | string | Conditional | |
data.result.agent_readiness.checks[].label | string | Conditional | |
data.result.agent_readiness.checks[].limitations | array of string | Conditional | |
data.result.agent_readiness.checks[].recommendation | string | null | Conditional | |
data.result.agent_readiness.checks[].reference | string | No | |
data.result.agent_readiness.checks[].scored | boolean | Conditional | |
data.result.agent_readiness.checks[].spec_version | string | No | |
data.result.agent_readiness.checks[].status | "pass" | "fail" | "unknown" | "not_applicable" | Conditional | |
data.result.agent_readiness.limitations | array of string | Conditional | |
data.result.agent_readiness.scope | "essential" | "full" | Conditional | |
data.result.agent_readiness.score | object | Conditional | eligible = passed + failed + unknown over applicable scored checks; value = 100 * passed / (passed + failed), or null when no scored check was conclusive. |
data.result.agent_readiness.score.eligible | integer | Conditional | |
data.result.agent_readiness.score.failed | integer | Conditional | |
data.result.agent_readiness.score.passed | integer | Conditional | |
data.result.agent_readiness.score.unknown | integer | Conditional | |
data.result.agent_readiness.score.value | number | null | Conditional | |
data.result.agent_readiness.status | "completed" | "partial" | "not_assessed" | Conditional | |
data.result.agent_readiness.version | string | Conditional | |
data.result.budget_exhausted | boolean | No | |
data.result.business_facts | object | No | |
data.result.business_facts.locations | array of object | Conditional | |
data.result.business_facts.locations[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.locations[].score | object | Conditional | |
data.result.business_facts.locations[].score.fields | object | Conditional | |
data.result.business_facts.locations[].score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.locations[].score.matched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.mismatched_fields | integer | Conditional | |
data.result.business_facts.locations[].score.overall | number | null | Conditional | |
data.result.business_facts.omitted_sources | integer | Conditional | |
data.result.business_facts.score | object | Conditional | |
data.result.business_facts.score.fields | object | Conditional | |
data.result.business_facts.score.fields.[key] | number | null | No | Value for each key. |
data.result.business_facts.score.matched_fields | integer | Conditional | |
data.result.business_facts.score.mismatched_fields | integer | Conditional | |
data.result.business_facts.score.overall | number | null | Conditional | |
data.result.business_facts.sources | array of object | Conditional | |
data.result.business_facts.sources[].fields | array of object | Conditional | |
data.result.business_facts.sources[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].field | string | Conditional | |
data.result.business_facts.sources[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.business_facts.sources[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.business_facts.sources[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.business_facts.sources[].final_url | string | null | Conditional | |
data.result.business_facts.sources[].http_status | integer | null | Conditional | |
data.result.business_facts.sources[].location_id | string (uuid) | null | Conditional | |
data.result.business_facts.sources[].source | "supplied" | "profile" | "citation" | Conditional | |
data.result.business_facts.sources[].status | "matched" | "mismatched" | "not_found" | "could_not_fetch" | Conditional | |
data.result.business_facts.sources[].url | string | Conditional | |
data.result.completeness | "preliminary" | "partial" | "complete" | "blocked" | No | |
data.result.content_coverage_note | string | No | |
data.result.crawler_access | object | No | |
data.result.crawler_access.assessed | integer | Conditional | |
data.result.crawler_access.eligible | integer | Conditional | |
data.result.crawler_access.note | string | Conditional | |
data.result.crawler_access.pages | array of object | Conditional | |
data.result.crawler_access.pages[].agents | array of object | Conditional | |
data.result.crawler_access.pages[].agents[].access | "allowed" | "blocked_by_robots" | "blocked_by_firewall" | "challenged" | "rate_limited" | "unknown" | Conditional | |
data.result.crawler_access.pages[].agents[].agent | string | Conditional | |
data.result.crawler_access.pages[].agents[].evidence | object | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.body_size_ratio | number | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.browser_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.crawler_status | integer | null | Conditional | |
data.result.crawler_access.pages[].agents[].evidence.marker | "challenge_page" | "block_page" | "block_redirect" | "empty_or_short_body" | null | Conditional | |
data.result.crawler_access.pages[].agents[].purpose | "search" | "user_fetch" | "training" | Conditional | |
data.result.crawler_access.pages[].agents[].robots_access | "allowed" | "blocked" | null | No | Whether robots.txt allows this crawler on this page. HTTP 4xx responses other than 429 mean allowed. The value is null if the rules could not be checked. |
data.result.crawler_access.pages[].agents[].visibility_risk | boolean | Conditional | |
data.result.crawler_access.pages[].url | string | Conditional | |
data.result.crawler_access.score | number | null | Conditional | |
data.result.findings | array of object | Conditional | |
data.result.findings[].code | string | null | Conditional | |
data.result.findings[].confidence | number | Conditional | |
data.result.findings[].evidence | string | Conditional | |
data.result.findings[].id | string (uuid) | Conditional | |
data.result.findings[].recommendation | string | Conditional | |
data.result.findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.findings[].url | string (uri) | Conditional | |
data.result.findings[].verification | string | Conditional | |
data.result.first_result_at | string (date-time) | null | No | |
data.result.kind | "audit" | Conditional | |
data.result.next_cursor | string | null | Conditional | |
data.result.pages_billed | integer | No | Pages counted toward the final charge. |
data.result.pages_checked | integer | Conditional | |
data.result.pages_discovered | integer | No | |
data.result.pages_skipped | integer | Conditional | |
data.result.profile | "instant" | "detailed" | No | |
data.result.schema_consistency | object | No | |
data.result.schema_consistency.pages | array of object | Conditional | |
data.result.schema_consistency.pages[].fields | array of object | Conditional | |
data.result.schema_consistency.pages[].fields[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].fields[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].field | string | Conditional | |
data.result.schema_consistency.pages[].fields[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].fields[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].fields[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues | array of object | Conditional | |
data.result.schema_consistency.pages[].issues[].code | "missing_local_business" | "missing_required_properties" | "differs_from_visible" | "differs_from_profile" | "conflicting_blocks" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared | array of object | object | object | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].expected.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].field | string | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed | string | array of string | object | null | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].observed.[key] | string | number | array of string | No | Value for each key. |
data.result.schema_consistency.pages[].issues[].compared[].basis | "visible" | "profile" | Conditional | |
data.result.schema_consistency.pages[].issues[].compared[].status | "matched" | "mismatched" | "not_found" | Conditional | |
data.result.schema_consistency.pages[].issues[].fields | array of string | Conditional | |
data.result.schema_consistency.pages[].location_id | string (uuid) | null | Conditional | |
data.result.schema_consistency.pages[].markup | "json_ld" | "microdata" | null | Conditional | |
data.result.schema_consistency.pages[].schema_type | string | null | Conditional | |
data.result.schema_consistency.pages[].url | string | Conditional | |
data.result.schema_consistency.pages_with_issues | integer | Conditional | |
data.result.schema_consistency.score | number | null | Conditional | |
data.result.skipped_reasons | array of string | No | |
data.result.approval_expires_at | string (date-time) | null | Conditional | |
data.result.approval_id | string (uuid) | null | Conditional | |
data.result.artifact_download_url | string (uri) | null | Conditional | |
data.result.artifact_sha256 | string | null | Conditional | |
data.result.diff | string | null | Conditional | |
data.result.external_revision | string | null | null | Conditional | |
data.result.kind | "optimization" | Conditional | |
data.result.synthetic | boolean | No | |
data.result.target_url | string (uri) | Conditional | |
data.result.verification_findings | array of object | Conditional | |
data.result.verification_findings[].code | string | null | Conditional | |
data.result.verification_findings[].confidence | number | Conditional | |
data.result.verification_findings[].evidence | string | Conditional | |
data.result.verification_findings[].id | string (uuid) | Conditional | |
data.result.verification_findings[].recommendation | string | Conditional | |
data.result.verification_findings[].severity | "critical" | "high" | "medium" | "low" | "info" | Conditional | |
data.result.verification_findings[].url | string (uri) | Conditional | |
data.result.verification_findings[].verification | string | Conditional | |
data.revision | integer | Yes | |
data.state | "queued" | "running" | "awaiting_approval" | "approved" | "executing" | "verifying" | "completed" | "partial" | "failed" | "cancelled" | "rejected" | "stale_approval" | Yes | |
data.updated_at | string (date-time) | Yes | |
data.v2_run_id | string | No | The prefixed run ID accepted by GET /v2/runs/{run_id}. |
meta | object | Yes | Information about this response, including any warnings or pagination details. |
meta.as_of | string (date-time) | Yes | The point in time that the response represents. |
meta.cohort_version | string | null | No | Identifies the version of the group used to calculate the results. |
meta.collected_at | string (date-time) | null | Yes | When the data was collected, if available. |
meta.metric_version | string | null | No | The version of the metric definition used for these results. |
meta.next_cursor | string | null | Yes | When present, pass this value as cursor to request the next page with the same filters. |
meta.next_refresh_at | string (date-time) | null | Yes | |
meta.request_id | string (uuid) | Yes | Keep this ID when reporting a problem with the request. |
meta.restricted_fields | array of string | No | Fields that your current access does not allow the API to return. |
meta.rights_filtered | boolean | Yes | Indicates whether access rights affected the returned data. |
meta.schema_version | "1.0" | Yes | The version of the response format. |
meta.stale | boolean | Yes | |
meta.warnings | array of string | Yes | Read these notes for limitations that affect the results. |
Errors
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 402
quota_exceeded - HTTP 403
forbidden - HTTP 404
not_found - HTTP 409
conflict - HTTP 412
precondition_failed - HTTP 422
validation_error - HTTP 429
rate_limited - HTTP 500
internal_error - HTTP 503
source_pending,feature_not_offered