Skip to content
Conversions APIReference

Send a test event

POST
/test/event

Validate a payload against the testing environment before production. Returns more detail on invalid payloads. Limited to about 1 request per second per token. Events cannot be deleted once ingested, so use this endpoint first.

Authorization

BearerAuth
AuthorizationBearer <token>

CAPI token generated in TAM Events Manager (pixel → Pixel code & settings → Generate API Token).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/problem+json

curl -X POST "https://example.com/test/event" \  -H "Content-Type: application/json" \  -d '{    "action": "conversion",    "click_id": "52d7d822-c723-47f9-82ff-c19a152562ef",    "user_session_id": "0fb681dd-c20e-4c5f-bfac-1f175fb973d0",    "buyer_pixel_id": 3,    "conversion_type": "Purchase",    "conversion_name": "Completed Purchase",    "conversion_params": {      "price": 14.54,      "currency": "USD",      "name": "Blue T-Shirt SFRED1451"    },    "event_source_url": "http://www.my-advertiser.com/an/amazing/product/to/buy/",    "event_time": 1519914000,    "privacy": {      "gdpr_applies": true,      "tcf_consent_string": "CPokAsAPokAsABEACBENC7CgAP_AAH_AAAwI",      "consent_granted": true    }  }'
Empty