AI answer collection and runs
List managed runs
Lists a brand's managed runs with progress by source, credits and failure reasons.
- 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.
Request examples
Set AEO_API_BASE_URL to https://api.aeoapi.dev and AEO_API_KEY to your server-side API key. Set the other environment variables to the values for your 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'from os import environ
from aeo_sdk import AeoClient
with AeoClient(environ["AEO_API_KEY"], base_url=environ["AEO_API_BASE_URL"]) as client:
response = client.v2_get_runs(
brand_id=environ["BRAND_ID"],
view="managed",
)
print(response.body)import { AeoClient } from "@aeoapi/aeo-sdk";
const client = new AeoClient(process.env.AEO_API_KEY!, {
baseUrl: process.env.AEO_API_BASE_URL!,
});
const response = await client.v2GetRuns(
{
brand_id: process.env.BRAND_ID!,
view: "managed",
},
);
console.log(response.body);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
Read code and message in the error response. Keep request_id when you contact support.
- HTTP 400
invalid_request - HTTP 401
unauthenticated - HTTP 403
forbidden - HTTP 404
not_found - HTTP 422
validation_error - HTTP 429
rate_limited