Skip to content
adscapi

ChatGPT CAPI Payload Preview

The server-side request adscapi builds when you track() a purchase and ChatGPT is configured. Secrets and hashed values show as placeholders.

Request

POST
Endpoint
https://bzr.openai.com/v1/events?pid={CHATGPT_PIXEL_ID}
Headers
Authorization: Bearer {CHATGPT_CAPI_TOKEN}
Content-Type: application/json
Body (purchase example)
{
  "events": [
    {
      "type": "order_created",
      "timestamp_ms": 1739452800000,
      "action_source": "web",
      "user": {
        "email_sha256": "<sha256(normalized-email)>",
        "ip_address": "203.0.113.10"
      },
      "id": "order_1001",
      "data": {
        "amount": 4999,
        "currency": "USD"
      }
    }
  ]
}

Verified against the library dispatcher (src/dispatchers/chatgpt.ts). See the ChatGPT setup guide for where to get each secret.

Required secrets

CHATGPT_PIXEL_IDCHATGPT_CAPI_TOKEN

ChatGPT activates when every secret is present. One missing key and the platform no-ops — the rest still receive the event.

Event-name mapping

Canonical eventChatGPT receives
page_viewpage_viewed
leadlead_created
signup_startsignup_start (custom event passthrough)
signupregistration_completed
checkout_createdcheckout_started
purchaseorder_created
reply_generatedreply_generated (custom event passthrough)
upgrade_clickedupgrade_clicked (custom event passthrough)

Good to know

  • The pixel id goes in the pid query parameter; the CAPI token is a Bearer header.
  • data.amount is in cents: the value is multiplied by 100 and rounded.
  • There is no phone field. email (and external_id, as external_id_sha256) are SHA-256 hashed; ip_address goes raw. All user fields send only with adUserData consent.
  • timestamp_ms is milliseconds, unlike most CAPIs' epoch seconds.

Frequently Asked Questions

Related Tools

Discover more free tools to fix your tracking

Event Payload Playground

Pick a canonical conversion event, fill the fields, and see the exact JSON payload adscapi builds — before you write a line of code.

Try it now

PII Hash Previewer

Type a raw email or phone number and see the normalized value plus its SHA-256 hash — the exact rules adscapi applies per platform. Nothing leaves the browser.

Try it now

Platform Coverage Explorer

Search all 26 ad platforms adscapi dispatches to — support level, required secrets, and setup docs, always in sync with the library registry.

Try it now

Ready to track ChatGPT conversions server-side?

adscapi is free and open source. Set your platform tokens, call track() once, and every configured Conversions API receives the event — hashed the way each platform expects.