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 Ad Account Creation Session

POST
/ad_account_creation_sessions

Start OpenAI-hosted Ads account creation for an authorized partner user.

Create Ad Account Creation Session

curl https://api.ads.openai.com/v1/ad_account_creation_sessions \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $OPENAI_ADS_ACCESS_TOKEN" \
    -d '{
          "return_uri": "x",
          "state": "x"
        }'
200 — Example
{
  "expires_in": 0,
  "url": "url"
}
Header Parameters
"Idempotency-Key": string
pattern.*\S.*
minLength1
maxLength255
Body Parameters
JSON
return_uri: string
minLength1
maxLength2048
state: string
minLength1
maxLength512
Returns
expires_in: integer
url: string
Returns Examples
200 — Example
{
  "expires_in": 0,
  "url": "url"
}