Create gifts by webhook (coming soon)
Use this endpoint to create and send gifts using a simplified webhook-style request. Designed for easy integration with third-party systems such as CRMs and marketing automation platforms.
Authenticate by including your API key as a query parameter. No additional headers required.
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_KEY
API 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."