curl --request POST \
--url https://api.snappy.com/public-api/v2/webhooks/send-gifts \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"Business Email": "john.doe@example.com",
"First Name": "John",
"Last Name": "Doe",
"Company Name": "Example Inc."
}
'{
"message": "Gifts created successfully",
"results": [
{
"success": true,
"link": "https://snappy.com/12345678/abc123",
"id": "abcDEF12",
"experienceId": "1234wxyz"
},
{
"success": false,
"message": "Recipient with id def456 already exists",
"errorCode": 10001
}
]
}This endpoint provides a simplified, webhook-style method for creating and sending gifts. It’s designed for easy integration with third-party systems like CRMs and marketing automation platforms, allowing you to trigger gift sends based on external events.
Key Features & Benefits:
Common Use Cases: This endpoint is ideal for automating gift sends based on customer actions and milestones. Common use cases include:
gifts:createcurl --request POST \
--url https://api.snappy.com/public-api/v2/webhooks/send-gifts \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"Business Email": "john.doe@example.com",
"First Name": "John",
"Last Name": "Doe",
"Company Name": "Example Inc."
}
'{
"message": "Gifts created successfully",
"results": [
{
"success": true,
"link": "https://snappy.com/12345678/abc123",
"id": "abcDEF12",
"experienceId": "1234wxyz"
},
{
"success": false,
"message": "Recipient with id def456 already exists",
"errorCode": 10001
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.snappy.com/llms.txt
Use this file to discover all available pages before exploring further.
Company level authentication provides access to all resources under your company, including accounts, campaigns, gifts, and recipients.
POST /v2/authentication/apiKeys endpoint to generate a new API keyInclude your API key in the X-Api-Key header for every request:
X-Api-Key: YOUR_24_CHARACTER_API_KEYFor production environments, enable mutual TLS authentication:
enforceMtls: true when creating the API keyhttps://mtls-api.snappy.com/public-apiCompany ID
^[A-Za-z0-9]{8,}$"12345678"
Your API Key
"api_key"
Campaign ID
^[A-Za-z0-9]{8,}$"abcd1234"
Collection ID
"abcdef12"
Maximum budget for the gift
1 <= x <= 10000100
Minimum budget for the gift
1 <= x <= 1000076
Webhook request body for creating gifts.
The business email of the recipient
"john.doe@example.com"
The first name of the recipient
"John"
The last name of the recipient
"Doe"
The company name of the recipient
"Example Inc."
Was this page helpful?