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 Lead Sync Subscriptions

GET
/lead_sync_subscriptions

List the lead-sync subscription for an authorized Ad Account.

List Lead Sync Subscriptions

curl "https://api.ads.openai.com/v1/lead_sync_subscriptions?ad_account_id=x" \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY"
200 — Example
{
  "data": [
    {
      "object": "object",
      "status": "status",
      "subscription_id": "subscription_id"
    }
  ],
  "first_id": "first_id",
  "has_more": true,
  "last_id": "last_id",
  "object": "object"
}
Query Parameters
ad_account_id: string
minLength1
maxLength256
Returns
data: array of object { object, status, subscription_id }
object: string
status: string
subscription_id: string
first_id: string or null
has_more: boolean
last_id: string or null
object: string
Returns Examples
200 — Example
{
  "data": [
    {
      "object": "object",
      "status": "status",
      "subscription_id": "subscription_id"
    }
  ],
  "first_id": "first_id",
  "has_more": true,
  "last_id": "last_id",
  "object": "object"
}