Create gifts by webhook
Use this endpoint to create and send gifts using a simplified webhook-style request - designed for direct integration with third-party systems such as CRMs and marketing automation platforms. Authentication is via API key in the query string rather than the standard X-Api-Key header.
Required parameters: (query string)
companyId- Company IDapiKey- your API keycampaignId- the Campaign ID to send under
Optional parameters: (query string)
collectionId- Collection ID to scope the gift to a specific CollectionbudgetMin/budgetMax- budget range for the gift (default35/50)
Required fields: (request body)
First Name- recipient’s first name (note: title-case key with space)Last Name- recipient’s last nameBusiness Email- recipient’s business emailCompany Name- recipient’s company name
Behavior Notes:
- Authentication is API-key-in-query rather than the standard
X-Api-Keyheader. This is intentional - most CRM and marketing automation webhook senders don’t support custom headers. - The field names in the request body use title case with spaces (e.g.
First Name, notfirstName). This matches how third-party tools typically format webhook payloads. - Returns the standard create-gifts response with
link,id, andexperienceIdper gift.
Permissions
- Requires:
gifts:create
Authorizations
Company Level Authentication
Company level authentication provides access to all resources under your company, including accounts, campaigns, gifts, and recipients.
Getting Your API Key
- Create an API Key: Use the
POST /v2/authentication/apiKeysendpoint to generate a new API key - Set Expiration: Choose from 30, 60, 90, or 180 days (default: 90 days)
- Optional mTLS: Enable mutual TLS for enhanced security
- Name Your Key: Provide a descriptive name for easy identification
Using Your API Key
Include your API key in the X-Api-Key header for every request:
X-Api-Key: YOUR_24_CHARACTER_API_KEYAPI Key Management
- Maximum Keys: Up to 3 active API keys per company
- Rotation: Delete old keys before creating new ones when at the limit
- Security: Keys are hashed and cannot be retrieved after creation
Enhanced Security (mTLS)
For production environments, enable mutual TLS authentication:
- Set
enforceMtls: truewhen creating the API key - Contact support to obtain your client certificates
- Use the mTLS endpoint:
https://mtls-api.snappy.com/public-api
Query Parameters
Company 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
Body
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."