Create demo gift
Use this endpoint to create non-claimable demo gifst to preview and test the full recipient experience without incurring any costs.
Required fields:
campaignId- the Campaign ID to send underrecipients- array of demo recipients
Optional fields:
customization- Gift Customization overridesmetadata- optional key-value pairs (max 50 pairs)companyIdquery parameter - Company ID (when not inferable from the calling key)Request-Sourceheader - source of the request
Behavior Notes:
- Demo gifts are free and do not affect your Account’s budget or Billing Method.
- Demo gifts cannot be redeemed for an actual product - they’re for preview only.
- The recipient experience is fully interactive: unwrapping animation, collection browsing, etc. Just no Order is placed at the end.
- Same request body shape as Create gifts.
Permissions
- Requires:
gifts:create:demo
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
Headers
Source of the request
api_native, api_zapier, api_salesforce, api_ftp, api_make "api_native"
Query Parameters
Company ID
^[A-Za-z0-9]{8,}$"12345678"
Body
The gift object.
Campaign ID
^[A-Za-z0-9]{8,}$"12345678"
The recipients of the gift.
Deprecated. Use "customization.notificationPolicy.sendingChannels" instead.
mail, sms, mailAndSms, link "mail"
Customization configuration of the gift.
Optional metadata object with key-value pairs. Keys must be alphanumeric (including underscores) and up to 40 characters. Values must be alphanumeric and up to 500 characters. Maximum 50 key-value pairs allowed.
{ "key1": "value1", "key2": "value2" }Response
Ok
The response of the gift creation
The message of the response
Optional metadata object with key-value pairs. Keys must be alphanumeric (including underscores) and up to 40 characters. Values must be alphanumeric and up to 500 characters. Maximum 50 key-value pairs allowed.
{ "key1": "value1", "key2": "value2" }