snap_upload_customer_list
Creates a Snapchat customer-list audience from a local CSV of emails or phone numbers, hashing values locally and requiring preview-token confirmation before upload.
Instructions
Create a customer-list audience from a local CSV of emails or phone numbers. Values are normalised and SHA-256 hashed on this machine; only hashes are uploaded and no raw value is ever shown or logged. Previews (counts only) unless confirm=true. Local phone numbers get default_country_code (or SNAP_DEFAULT_PHONE_CODE); without either they are counted as invalid. 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": {
"file_path": "<file_path>",
"kind": "<kind>",
"name": "<name>"
},
"name": "snap_upload_customer_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | Yes | Audience name | |
| column | No | Header of the column to use; found automatically when omitted | |
| confirm | No | false = preview only (nothing sent). true = apply; needs approval_token from the preview. | |
| file_path | Yes | Absolute path to a .csv with a header row | |
| approval_token | No | The approval_token returned by the preview of this exact request. Required with confirm=true. | |
| default_country_code | No | Country code (digits, no +) for local numbers; defaults to SNAP_DEFAULT_PHONE_CODE. Without one, local numbers are counted as invalid. |