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

Create Lead Sync Subscription

POST
/lead_sync_subscriptions

Provision lead delivery to a managed Webhooks endpoint.

Create Lead Sync Subscription

curl https://api.ads.openai.com/v1/lead_sync_subscriptions \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY" \
    -d '{
          "ad_account_id": "x",
          "destination_url": "https://"
        }'
200 — Example
{
  "object": "object",
  "signing_secret": "signing_secret",
  "status": "status",
  "subscription_id": "subscription_id"
}
Header Parameters
"Idempotency-Key": string
pattern.*\S.*
minLength1
maxLength255
Body Parameters
JSON
ad_account_id: string
minLength1
destination_url: string
pattern^https://
minLength1
maxLength2048
signing_secret: optional string
pattern^whsec_[A-Za-z0-9+/]{42}[AEIMQUYcgkosw048]=$
minLength50
maxLength50
Returns
object: string
signing_secret: string
status: string
subscription_id: string
Returns Examples
200 — Example
{
  "object": "object",
  "signing_secret": "signing_secret",
  "status": "status",
  "subscription_id": "subscription_id"
}