Skip to main content

API Keys

To make API requests to Vetrol, you need your Account SID and Auth Token. These credentials identify your account and authenticate your requests.

Find your credentials

  1. Log in to the Vetrol Console
  2. Navigate to Settings → API Keys
  3. Copy your Account SID and Auth Token
Protect your Auth Token

Your Auth Token is like a password. Never share it, commit it to version control, or expose it in client-side code.

Set up environment variables

Store your credentials as environment variables to keep them out of your code:

.env
VETROL_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
VETROL_AUTH_TOKEN=your_auth_token_here

Load them in your project:

require('dotenv').config();

const accountSid = process.env.VETROL_ACCOUNT_SID;
const authToken = process.env.VETROL_AUTH_TOKEN;

Rotating your Auth Token

If your Auth Token is compromised, rotate it immediately from the Console under Settings → API Keys → Rotate Token. Your old token will be invalidated immediately.

Next steps