For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Overview Agent Access Ads ChatGPT + Codex user docs Use cases

API Reference

Get Agent Numeric Insights

GET
/ad_account/agent_insights

Read the latest numeric report for the ad account’s published Business Agent.

You can use a read-only Advertiser API key.

The report uses UTC dates and has no pagination. Custom dates and campaign filters are unavailable.

Publication can lag behind the current date. Even complete ingestion-hour coverage represents only captured conversations, not all traffic. Use campaign reporting for ad-attributed performance. The response excludes message text and transcripts.

Errors

StatusWhat to check
400Check that the only query parameter is window_days and that its value is one of the supported windows.
403Check that your credentials grant read access to the ad account.
404Check that the account has a current published agent.
503The report is temporarily unavailable. Retry later.

Get Agent Numeric Insights

curl https://api.ads.openai.com/v1/ad_account/agent_insights \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY"
200 — Example
{
  "average_turns_per_conversation": 0,
  "capture_coverage": "capture_coverage",
  "conversations": 0,
  "coverage_status": "coverage_status",
  "data_available_from": "data_available_from",
  "expected_hours": 0,
  "observed_hours": 0,
  "report_date": "report_date",
  "return_visits": {
    "evaluable_conversations": 0,
    "events": 0,
    "metric_version": "metric_version",
    "revisited_conversations": 0,
    "unknown_conversations": 0
  },
  "total_user_turns": 0,
  "turn_metric_version": "turn_metric_version",
  "window_days": 0,
  "window_end": "window_end",
  "window_start": "window_start"
}
Query Parameters
window_days: optional integer

Latest published report window: 1, 7, 14, or 30 days. Defaults to 7.

minimum1
maximum30
Returns
average_turns_per_conversation: number or null

total_user_turns / conversations for this window, not lifetime conversation depth. Null when depth is unavailable or conversations is zero.

capture_coverage: string

Always partial_observed_conversations; counts cover captured observations only.

conversations: integer

Distinct observed agent conversations with at least one coherent, timed user message in the reporting window. Partial captured traffic, not ad-attributed conversation starts. Do not sum distinct counts across dates or overlapping windows.

coverage_status: string

complete or incomplete ingestion-hour coverage. Complete does not imply full traffic capture.

data_available_from: string

Earliest retained global ingestion-hour marker, YYYY-MM-DDTHH UTC. Not a publication timestamp or a guarantee of complete conversation history.

expected_hours: integer

Expected ingestion hours: window_days * 24.

observed_hours: integer

Available global ingestion hours in this window.

report_date: string

UTC date of the latest published completed report, YYYY-MM-DD.

return_visits: object { evaluable_conversations, events, metric_version, 2 more } or null

Return events and distinct revisited conversations in this observed cohort. These are not unique returning people. Null if the source is unavailable/invalid or no conversations have evaluable timing. Events can exceed conversations; the later user message determines the event's reporting date.

evaluable_conversations: integer

Conversations whose retained timing evidence supports revisit counting.

events: integer

Observed return events: consecutive user messages more than 30 minutes apart.

metric_version: string

Definition version: user_message_gap_gt_1800s_v1.

revisited_conversations: integer

Distinct observed conversations with at least one return event.

unknown_conversations: integer

Conversations excluded from revisit counts due to uncertain timing.

total_user_turns: integer or null

Coherent, timed user-message observations in these same conversations and window. One user message is one turn; assistant/tool messages are excluded. Null when the published report lacks valid depth evidence.

turn_metric_version: string or null

observed_user_turns_in_window_v1 when depth is available; otherwise null.

window_days: integer

Published reporting window: 1, 7, 14 or 30 days.

window_end: string

Exclusive UTC reporting date, YYYY-MM-DD.

window_start: string

Inclusive UTC reporting date, YYYY-MM-DD.

Returns Examples
200 — Example
{
  "average_turns_per_conversation": 0,
  "capture_coverage": "capture_coverage",
  "conversations": 0,
  "coverage_status": "coverage_status",
  "data_available_from": "data_available_from",
  "expected_hours": 0,
  "observed_hours": 0,
  "report_date": "report_date",
  "return_visits": {
    "evaluable_conversations": 0,
    "events": 0,
    "metric_version": "metric_version",
    "revisited_conversations": 0,
    "unknown_conversations": 0
  },
  "total_user_turns": 0,
  "turn_metric_version": "turn_metric_version",
  "window_days": 0,
  "window_end": "window_end",
  "window_start": "window_start"
}