Analytics API Authentication

Learn how to authenticate with the Vitally Analytics API

Vitally's Analytics API is an HTTPS API that uses the Authorization header to provide authentication. The API requires you send an Authorization header containing your API token with every request:

Authorization: Basic [Your token]

To get started, first get the API token for your account by going to the the navigate to your Settings (⚙️) by selecting your Account Logo on the top left and under Operations select Integrations. Then select Vitally Analytics API (or via Quick Jump Mac: ⌘ + j Windows: Alt + j) . Toggle the switch on the top right to enable the integration. .

An example curl request using this header would look like:

curl -X POST https://api.vitally.io/analytics/v1/batch \
  -H "Authorization: Basic [your token]" \
  -H "Content-Type: application/json" \
  -d '[ ...your data... ]'

Last updated