Skip to main content
GET
/
v2
/
accounts
Get accounts
curl --request GET \
  --url https://api.snappy.com/public-api/v2/accounts \
  --header 'X-Api-Key: <api-key>'
{
  "results": [
    {
      "id": "a12bcd34",
      "name": "Snappy",
      "createdAt": "2022-12-06T09:50:38.536Z",
      "updatedAt": "2022-12-06T09:50:38.536Z",
      "companyId": "A1b2C3d4"
    }
  ],
  "skip": 0,
  "limit": 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"

Query Parameters

companyId
string

Company ID

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

"12345678"

name
string

The name of the account

Example:

"Snappy"

fields
enum<string>[]

The fields that can be returned for the account. comma-separated format without whitespace in between. valid values are: id, name, createdAt, updatedAt, companyId, full.

Minimum array length: 1

The fields that can be returned for the account. Valid values are: id, name, createdAt, updatedAt, companyId, full.

Available options:
id,
name,
createdAt,
updatedAt,
companyId,
full
Example:
["full"]
skip
number | null
default:0

Number of records to skip for pagination (use with limit for paging through results)

Required range: x >= 0
Example:

0

limit
number
default:100

Maximum number of records to return per page

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

100

Response

Ok

Response containing accounts.

results
object[]
required

The accounts of the company.

skip
number | null
default:0

Number of records to skip for pagination (use with limit for paging through results)

Required range: x >= 0
Example:

0

limit
number | null
Last modified on April 30, 2026