Skip to main content
Skip to Content

Authentication

Vantage uses API keys to authenticate requests. Include your key in the Authorization header with every request.

API Keys

Getting Your Key

  1. Go to SettingsAPI
  2. Click Create API Key
  3. Give it a name (e.g., “Zapier Integration”)
  4. Copy the key immediately

API keys are shown once. If you lose it, create a new one. You cannot retrieve existing keys.

Key Types

TypePrefixPurpose
Livevnt_sk_live_Production use
Testvnt_sk_test_Development/testing

Test keys work identically but operate in test mode. No real data is affected.

Using Your Key

Include the key in the Authorization header:

curl https://api.govantage.co/v1/clients \
  -H "Authorization: Bearer vnt_sk_live_xxxxx"

Examples

curl https://api.govantage.co/v1/clients \
  -H "Authorization: Bearer vnt_sk_live_xxxxx" \
  -H "Content-Type: application/json"

Key Permissions

API keys inherit the permissions of the user who created them:

User RoleAPI Access
OwnerFull access
AdminFull access
ManagerTheir team’s data
MemberTheir own data

Create a dedicated service account for API integrations. This makes it easy to audit API usage.

Key Management

Viewing Keys

See all keys in SettingsAPI:

Revoking Keys

To revoke a key:

  1. Go to SettingsAPI
  2. Find the key
  3. Click Revoke
  4. Confirm

Revoked keys stop working immediately.

Rotating Keys

To rotate without downtime:

  1. Create new key
  2. Update your integration
  3. Verify new key works
  4. Revoke old key

Security Best Practices

Do

Don’t

If you suspect a key is compromised, revoke it immediately and create a new one.

Environment Variables

Store keys safely:

# .env file
VANTAGE_API_KEY=vnt_sk_live_xxxxx
// Usage
const apiKey = process.env.VANTAGE_API_KEY;

Authentication Errors

StatusCodeMeaning
401unauthorizedMissing or invalid key
403forbiddenKey lacks permission

Missing Key

{
  "error": {
    "code": "unauthorized",
    "message": "No API key provided"
  }
}

Invalid Key

{
  "error": {
    "code": "unauthorized",
    "message": "Invalid API key"
  }
}

Insufficient Permissions

{
  "error": {
    "code": "forbidden",
    "message": "API key does not have access to this resource"
  }
}

OAuth

For apps that need to act on behalf of users, OAuth 2.0 support is on the roadmap:

Contact us at legal@govantage.co if you need OAuth access for your integration.

Next Steps