Skip to main content
The Snitcher REST API allows you to programmatically access and manage your Snitcher data. Use it to build custom integrations, automate workflows, or sync data with your other business tools.

Authentication

All API requests require authentication using a Personal Access Token (PAT) passed as a Bearer token.

Generate an API Token

  1. Go to your Snitcher Dashboard
  2. Navigate to Settings > Account > API
  3. Click Generate New Token
  4. Copy and securely store your token
Treat your API token like a password. Never expose it in client-side code or public repositories.

Making Authenticated Requests

Include your token in the Authorization header:

Base URL

All API endpoints use this base URL:

Rate Limits

To ensure fair usage and platform stability, the REST API enforces the following rate limits:
  • 60 requests per minute (per API token)
When you exceed the rate limit, the API returns:
Status Code: 429 Too Many Requests
Implement exponential backoff in your application to handle rate limiting gracefully. Start with a 1-second delay, then double it on each retry.
Need higher rate limits? Contact support to discuss your requirements.

Response Format

All responses are JSON. Successful responses include the requested data:
Error responses include a message:

Common HTTP Status Codes

Available Endpoints

The REST API provides access to:

Workspaces

List, create, and manage your workspaces

Organisations

Access identified companies and their data

Sessions

Retrieve visitor session data

Contacts

Access contacts and reveal emails or phone numbers

Segments

List and manage segments

Tags

Create and manage company tags

Example: List Workspaces

Response:

Example: Get Sessions with Events

Sessions now include an events array containing all tracking events (pageviews, form submissions, custom events, clicks, and downloads). The views array is deprecated and only contains pageviews.
Response (abbreviated):
Each event has a common event_type, url, and triggered_at field. Additional fields depend on the event type:

Example: Get Organisations

Pagination

List endpoints support pagination using query parameters:

Filtering & Searching

Many endpoints support filtering. Use the POST method with a JSON body for advanced searches:

SDK & Libraries

While we don’t provide official SDK libraries, the REST API is straightforward to use with any HTTP client:
  • JavaScript/Node.js: fetch, axios
  • Python: requests, httpx
  • PHP: Guzzle, cURL
  • Ruby: HTTParty, Faraday

Best Practices

  1. Store tokens securely: Use environment variables, not hardcoded values
  2. Handle rate limits: Implement retry logic with exponential backoff
  3. Cache responses: Reduce API calls by caching data locally when appropriate
  4. Use pagination: Don’t try to fetch all data in one request
  5. Monitor usage: Track your API usage to stay within limits

Need Help?

API Reference

Browse the full API documentation

Support

Contact our support team