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 Conversion Api Key

POST
/conversions/api_keys

Create a Conversions API key for the currently authenticated ad account.

Caution: Store the returned key in a server-side secret manager. Never place it in browser code, client-visible environment variables, logs, or source control.

Create Conversion Api Key

curl https://api.ads.openai.com/v1/conversions/api_keys \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY" \
    -d '{
          "name": "xxx"
        }'
200 — Example
{
  "api_key": "api_key",
  "name": "name"
}
Body Parameters
JSON
name: string
pattern^.*\S.*$
minLength3
maxLength1000
Returns
api_key: string
name: string
Returns Examples
200 — Example
{
  "api_key": "api_key",
  "name": "name"
}