Get campaign by ID
Use this endpoint to retrieve the full details of a specific Campaign by its identifier, including its Gift Customization settings and assigned Collection or Product.
Required fields:
campaignId- the Campaign identifier, passed as a path parameter
Optional parameters:
companyIdquery parameter - Company ID (when not inferable from the calling key)Request-Sourceheader - source of the request
Please note:
- Returns
404if no Campaign exists for the suppliedcampaignId, or if it’s not accessible to the calling API key. - Returns
422when the Campaign references a Collection that can no longer be found - the Campaign still exists but its catalog can’t be resolved.
Permissions
- Requires:
campaigns:read
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"
Path Parameters
Campaign ID
^[A-Za-z0-9]{8,}$"abcd1234"
Query Parameters
Company ID
^[A-Za-z0-9]{8,}$"12345678"
Response
Ok
Campaign details including configuration and customization.
The id of the campaign.
"abcd1234"
The date when the campaign was created.
"2021-01-01T00:00:00.000Z"
The date when the campaign was last updated.
"2021-01-01T00:00:00.000Z"
The name of the campaign.
"Campaign Name"
The id of the account.
"a12bcd34"
The id of the company.
"A1b2C3d4"
The status of the campaign.
live, sent, draft, paused, pending, scheduled, archived, active "draft"
The source of the campaign.
dashboard, dashboard_ai, api_native, api_zapier, api_make, api_salesforce, api_ftp "api_native"
The account of the campaign.
The type of the campaign. valid values are: anniversary, birthday, schedule, marketing, oneOffs, newHire.
anniversary, birthday, schedule, marketing, oneOffs, newHire "oneOffs"
The number of days until the gifts will expire. The default value is 30 days.
30
The date when the gift will expire. Date Format: YYYY-MM-DDThh:mm:ss.sZ.
The properties of the campaign.
Campaign customization defines the entire gift recipient experience. It includes budget parameters, collection or product selection, expiration settings, notification methods, and visual presentation elements that create a cohesive branded experience.