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

List Conversion Events

GET
/conversions/events

List recent sampled conversion events for the acting ad account.

Use the conversion event stream while testing a JavaScript Pixel integration. Query the data source identified by pid for up to limit sampled events from the previous 15 minutes, measured by diagnostic sampling time. The default and maximum limit are 50.

Note: The conversion event stream is available only to enabled accounts. If this endpoint returns 404 with Not found, contact your OpenAI partner representative.

Use this endpoint to inspect sampled events, not as a complete delivery log or for attribution or reporting. Use conversion insights for attributed conversion totals. Test events are excluded by default; use test_events to change this filter. An exact test_session_id requires test_events=only. Results are ordered newest sampled first and limited after filtering; an absent event does not prove delivery failure.

event_data_json contains event details encoded as a JSON string.

List Conversion Events

curl "https://api.ads.openai.com/v1/conversions/events?pid=x" \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY"
200 — Example
{
  "data": [
    {
      "action_source": "action_source",
      "api_channel": "api_channel",
      "custom_event_name": "custom_event_name",
      "data_source_id": "data_source_id",
      "event_data_json": "event_data_json",
      "event_timestamp_ms": 0,
      "event_type": "event_type",
      "received_at_ms": 0,
      "test_session_id": "test_session_id"
    }
  ],
  "object": "object"
}
Query Parameters
pid: string

Pixel ID to query within the acting ad account.

minLength1
limit: optional integer

Maximum conversion events to return.

minimum1
maximum50
test_events: optional "exclude" or "only" or "include"

Exclude test events by default, return only test events, or include both. Reporting is unchanged.

One of the following:
"exclude"
"only"
"include"
test_session_id: optional string

Exact test-session ID. Requires test_events=only.

pattern^[A-Za-z0-9_-]{1,128}$
minLength1
maxLength128
Returns
data: array of object { action_source, api_channel, custom_event_name, 6 more }
action_source: string or null
api_channel: string
custom_event_name: string or null
data_source_id: string
event_data_json: string
event_timestamp_ms: integer

Advertiser event time as Unix epoch milliseconds.

event_type: string
received_at_ms: integer

Wadi receive time as Unix epoch milliseconds.

test_session_id: optional string or null

Untrusted diagnostic label; does not affect reporting or authorization.

object: string
Returns Examples
200 — Example
{
  "data": [
    {
      "action_source": "action_source",
      "api_channel": "api_channel",
      "custom_event_name": "custom_event_name",
      "data_source_id": "data_source_id",
      "event_data_json": "event_data_json",
      "event_timestamp_ms": 0,
      "event_type": "event_type",
      "received_at_ms": 0,
      "test_session_id": "test_session_id"
    }
  ],
  "object": "object"
}