Get gifts
Use this endpoint to search for and retrieve a list of gifts based on your specified criteria - campaign, status, sending channels, recipient, and more.
Filtering options:
companyIdquery parameter - Company ID (when not inferable from the calling key)campaignIds- comma-separated list of Campaign IDs (min 1 item)keys- comma-separated list of idempotency keysstatuses- comma-separated list of gift statuses (unopened,opened,unwrapped,claimed,expired)sendingChannels- comma-separated list of sending channels (mail,sms,link,code,slack,teams)externalRecipientId- filter by the recipient’s external (your-system) IDexperienceId- filter by experience IDinvoiceId- filter by invoice IDcreatedBefore/createdAfter- YYYY-MM-DD date bounds (exclusive)fields- comma-separated field projection. Valid values:id,status,budgetPlan,sendingChannels,tyn,expirationDate,createdAt,link,campaignId,metadata,fullexpand- comma-separated objects to include in the response. Valid values:finalCost,deliveryDetails,estimatedCost,recipient,orders,customizationRequest-Sourceheader - source of the request
Pagination:
skipquery parameter - number of records to skip (default0)limitquery parameter - max records per page (1-100, default100)
Please note:
- The default
fieldsset returnsid,link, andstatusonly. Usefields=fullfor the complete Gift shape, or specify the fields you need. - Use
expandto inline related objects likerecipient,orders, andfinalCost- by default these are not included. - The
senderIdandsenderEmailparameters are deprecated - do not use them in new integrations.
Permissions
- Requires:
gifts:read:maskedorgifts:read:unmasked
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"
Number of records to skip for pagination (use with limit for paging through results)
x >= 00
Maximum number of records to return per page
1 <= x <= 10010
The fields that can be returned for the gift. format: comma-separated without whitespace in between. valid values are: id, status, budgetPlan, sendingChannels, tyn, expirationDate, createdAt, link, campaignId, metadata, full.
1The fields that can be returned for the gift. valid values are: id, status, budgetPlan, sendingChannels, tyn, expirationDate, createdAt, link, campaignId, metadata, full.
id, status, budgetPlan, sendingChannels, tyn, expirationDate, createdAt, link, full, experienceId, campaignId, metadata comma-separated list of campaign ids
18^[A-Za-z0-9]{8,}$["abcd1234", "abcd6789"]comma-separated list of gift keys
1["key1", "key2"]The statuses of gifts that can be returned. comma-separated format without whitespace in between. valid values are: unopened, opened, unwrapped, claimed, expired.
1The statuses of gifts that can be returned. valid values are: unopened, opened, unwrapped, claimed, expired.
unopened, opened, unwrapped, claimed, expired The sending channels of the gift. default value is 'link'. valid values are: mail, sms, link, code, slack, teams.
1The sending channels of the gift.
mail, sms, link, code, slack, teams External recipient id
"1234efgh"
Experience id
"1234wxyz"
Created before date, format: YYYY-MM-DD. results will NOT include the date that was passed.
^[0-9]{4}-[0-9]{2}-[0-9]{2}$"2022-12-06T00:00:00.000Z"
Created after date, format: YYYY-MM-DD results will NOT include the date that was passed.
^[0-9]{4}-[0-9]{2}-[0-9]{2}$"2022-12-06T00:00:00.000Z"
DEPRECATED, DO NOT USE
^[A-Za-z0-9]+$"ab123456"
DEPRECATED, DO NOT USE
"sender_email"
Invoice id
"12abcd89"
The fields that can be returned for the gift. comma-separated format without whitespace in between. valid values are: finalCost, deliveryDetails, estimatedCost, recipient, customization, orders.
1Fields that can be returned for the gift
finalCost, deliveryDetails, estimatedCost, recipient, orders, customization