List Conversion 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
404withNot 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"{
"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
Returns Examples
{
"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"
}