Authentication

Overview

The Tracking APIs authenticate requests with an API key. The API key is a static credential issued during provisioning, and it identifies your organization. This method suits server-to-server integrations and event-driven workflows.

Authentication Method

API key authentication is the only method supported for the Tracking APIs, and for the Person Enrich and Company Enrich APIs when used to start tracking. Requests without a valid API key are rejected.

How API Keys Work

  • An API key is issued when your organization is set up in SMARTe.
  • The API key is scoped to your organization.
  • The same API key works across all SMARTe APIs, including Enrich and Tracking.
  • Tracking is scoped to the API key. A webhook is registered for one API key, and records tracked with an API key are listed, returned and untracked only with that same key.
  • Events for a tracked record go to the webhook registered with the API key that tracked it.

Using an API Key

Send the API key in the apikey request header, and set Content-Type to application/json. Include the API key in every request.

API Key Security

  • Store API keys in environment variables or a secure vault.
  • Do not expose API keys in client-side code.
  • Do not commit API keys to public repositories.
  • API keys can be rotated or revoked at the organization level. To rotate or regenerate an API key, contact your SMARTe administrator or SMARTe Support.

What's Next

See Credit Usage to learn how credits are used when you start tracking records.


Did this page help you?