snap_capi_test_event
Send one test event to Snap's Conversions API validate endpoint to verify server-side tracking is built correctly. Preview first, then confirm with an approval token; Snap does not count it as a real conversion.
Instructions
Send ONE test event to Snap's Conversions API validate endpoint, to check your server-side tracking is built correctly. It is a test: Snap does not count it as a real conversion, and this server has no tool that sends real conversion events. Events: PAGE_VIEW, VIEW_CONTENT, ADD_CART, START_CHECKOUT, SIGN_UP, PURCHASE. A PURCHASE needs value and currency. The email, if given, is hashed here and only the hash is sent. Read the answer with snap_capi_status. Previews unless confirm=true. Two steps: confirm=false returns a preview and an approval_token; to apply, repeat the same arguments with confirm=true and that approval_token.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"event_name": "<event_name>",
"event_source_url": "<event_source_url>"
},
"name": "snap_capi_test_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| value | No | ||
| confirm | No | false = preview only (nothing sent). true = apply; needs approval_token from the preview. | |
| currency | No | 3 capital letters, e.g. USD | |
| order_id | No | ||
| pixel_id | No | ||
| event_name | Yes | ||
| approval_token | No | The approval_token returned by the preview of this exact request. Required with confirm=true. | |
| event_source_url | Yes | An https page of your store |