send_chatgpt_conversion_event

ChatGPT Ads Write

Send a REAL server-side conversion (Conversions API) with advanced matching: an event_type (order_created, lead_created, …), value + currency, an order/event id for dedup, and customer-matching fields

Endpoint

POST https://api.adspirer.ai/api/v1/tools/send_chatgpt_conversion_event/execute

Headers

Description

Send a REAL server-side conversion (Conversions API) with advanced matching: an event_type (order_created, lead_created, …), value + currency, an order/event id for dedup, and customer-matching fields — pass raw emails/phones/names and they are SHA-256 hashed server-side (never logged), or pass already-hashed lists, plus country/city/region/postal, IP, user-agent, GAID. Set validate_only=true for a dry run. Needs a Pixel ID + Conversions API key configured.

Request body

All tool arguments are wrapped in an arguments object.

FieldTypeDescription
event_typestring requiredA standard event: order_created, lead_created, checkout_started, items_added, contents_viewed, page_viewed, registration_completed, appointment_scheduled, subscription_created, trial_started, or 'custom'.
custom_event_namestring optionalRequired when event_type='custom'.
valuenumber optionalPurchase/conversion value amount, in the currency's MINOR unit (e.g. cents) as an integer, or a decimal in the major unit — sent as data.amount with currency.
amountinteger optionalAlias for value (integer minor units).
currencystring optionalISO-4217 currency code (required with a value/amount), e.g. 'USD'.
order_idstring optionalA stable event id (dedup key) — e.g. your order id. Also accepted as event_id.
event_idstring optionalExplicit dedup event id (matches the pixel event id for dedup).
source_urlstring optionalThe page URL where the conversion happened (required for web events).
action_sourcestring optional'web' (default), 'mobile_app', 'offline', 'physical_store', 'phone_call', 'email', or 'other'.
emailsarray optionalCustomer emails (raw — hashed server-side, first 3 used). Improves match rate.
phonesarray optionalCustomer phone numbers, E.164 (raw — hashed server-side, first 3 used).
first_namesarray optionalFirst names (raw — hashed server-side).
last_namesarray optionalLast names (raw — hashed server-side).
external_idsarray optionalYour stable customer ids (raw — hashed server-side).
emails_sha256array optionalAlready SHA-256-hashed emails (if you hashed them yourself).
phone_numbers_sha256array optionalAlready SHA-256-hashed phone numbers.
countriesarray optionalTwo-letter country codes (raw).
citiesarray optionalCity names (raw).
regionsarray optionalState/province/region (raw).
postal_codesarray optionalPostal/ZIP codes (raw).
ip_addressstring optionalCustomer IP (IPv4/IPv6).
user_agentstring optionalCustomer browser user-agent string.
android_advertising_idstring optionalRaw Android GAID (UUID).
contentsarray optionalLine items: [{id, name, quantity, amount, currency, ...}].
plan_idstring optionalSubscription/trial plan id (for subscription_created/trial_started).
validate_onlyboolean optionalIf true, validate the event without recording it (a dry run). default: false

Example request

{
  "arguments": {
    "event_type": "string",
    "custom_event_name": "string",
    "value": 1.0,
    "amount": 1,
    "currency": "string",
    "order_id": "string",
    "event_id": "string"
  }
}

Example responses

200 — Success

{
  "success": true,
  "data": {
    "text": "(tool-specific textual output for send_chatgpt_conversion_event)",
    "quota": {
      "used": 42,
      "limit": 150,
      "tier": "plus",
      "period_end": "2026-05-01"
    }
  },
  "tool": "send_chatgpt_conversion_event"
}

400 — Tool-level error (bad arguments / multi-account selection)

{
  "success": false,
  "error": "You have 25 meta_ads accounts connected. Please specify which account to use by passing the ad_account_id parameter:\n  - Acme Holdings (ad_account_id=\"act_123456789\")\n  - Acme EU (ad_account_id=\"act_987654321\")",
  "is_error": true,
  "tool": "send_chatgpt_conversion_event"
}

402 — Quota exhausted

{
  "success": false,
  "error": "\ud83d\udea8 Monthly limit reached (150/150 tool calls on Plus tier).\nUpgrade to Pro at https://adspirer.ai to keep building.",
  "is_error": true,
  "tool": "send_chatgpt_conversion_event",
  "quota": {
    "used": 150,
    "limit": 150,
    "tier": "plus",
    "period_end": "2026-05-01",
    "upgrade_url": "https://adspirer.ai"
  }
}

Try it live


Adspirer REST API — get an API key at adspirer.ai/keys · adspirer.ai