Skip to main content
GET
/
v2
/
campaigns
/
{campaignId}
/
estimatedCost
Get estimated cost for campaign
curl --request GET \
  --url https://api.snappy.com/public-api/v2/campaigns/{campaignId}/estimatedCost \
  --header 'X-Api-Key: <api-key>'
{
  "campaignId": "abc12345",
  "totalNumberOfGifts": 1,
  "estimatedCost": {
    "estimatedTotalCost": 100,
    "estimatedTax": 0,
    "estimatedFee": 0,
    "budget": 100
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.snappy.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Api-Key
string
header
required

Company Level Authentication

Company level authentication provides access to all resources under your company, including accounts, campaigns, gifts, and recipients.

Getting Your API Key

  1. Create an API Key: Use the POST /v2/authentication/apiKeys endpoint to generate a new API key
  2. Set Expiration: Choose from 30, 60, 90, or 180 days (default: 90 days)
  3. Optional mTLS: Enable mutual TLS for enhanced security
  4. 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:

  1. Set enforceMtls: true when creating the API key
  2. Contact support to obtain your client certificates
  3. Use the mTLS endpoint: https://mtls-api.snappy.com/public-api

Headers

Request-Source
enum<string>

Source of the request

Available options:
api_native,
api_zapier,
api_salesforce,
api_ftp,
api_make
Example:

"api_native"

Path Parameters

campaignId
string
required

Campaign ID

Pattern: ^[A-Za-z0-9]{8,}$
Example:

"abcd1234"

Query Parameters

companyId
string

Company ID

Pattern: ^[A-Za-z0-9]{8,}$
Example:

"12345678"

numberOfGifts
number
default:1

Number of gifts

Required range: 1 <= x <= 99999
Example:

1

Response

Ok

Campaign estimated cost response.

campaignId
string
required

The campaign ID.

Example:

"abcd1234"

totalNumberOfGifts
integer
required

The total number of gifts.

Example:

3

estimatedCost
object
required

The estimated cost of the gift including estimated tax and fee.

Example:
{
"budget": 100,
"estimatedFee": 2,
"estimatedTax": 7,
"estimatedTotalCost": 109
}
Last modified on April 16, 2026