snap_create_pixel_audience
Create a Snapchat pixel audience from users who fired chosen events (e.g., ADD_CART or VIEW_CONTENT) within a retention window; preview it first, then apply with an approval token.
Instructions
Create an audience of people who fired pixel events (e.g. ADD_CART or VIEW_CONTENT) within N days. Audience only, nothing is delivered. Pixel defaults to SNAP_PIXEL_ID. 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": {
"name": "<name>",
"events": "<events>"
},
"name": "snap_create_pixel_audience"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| events | Yes | ||
| confirm | No | false = preview only (nothing sent). true = apply; needs approval_token from the preview. | |
| pixel_id | No | ||
| approval_token | No | The approval_token returned by the preview of this exact request. Required with confirm=true. | |
| retention_days | No |