Skip to main content

API Keys

All API requests (except /health) require authentication using an API key. API keys are tied to your VibePeak account and grant access based on your subscription plan.

Getting an API Key

  1. Log in to your VibePeak Dashboard
  2. Navigate to SettingsAPI
  3. Click Create API Key
  4. Give your key a descriptive name (e.g., “Production”, “Development”)
  5. Copy and securely store your key
Your API key is only shown once. Store it immediately in a secure location like a password manager or environment variable. If you lose it, you’ll need to create a new one.

API Key Format

VibePeak API keys follow this format:
  • vpk_live_ - Prefix identifying it as a VibePeak live API key
  • aBcDeFgHiJkLmNoPqRsTuVwXyZ123456 - Random unique identifier

Live vs. Test Keys

Every key carries a prefix that fixes its mode for the life of the key: A test-mode key (vpk_test_) lets you build and verify your integration end to end without spending credits. It exercises the identical request, validation, async lifecycle, and signed-webhook surface as a live key.
See Test Mode for the full sandbox model, the test_scenario parameter, and the livemode response field.

Using Your API Key

Include your API key in the Authorization header of every request:

Example Request

Authentication Errors

Example Error Response

Security Best Practices

API keys should only be used in server-side code. Never include them in:
  • JavaScript running in the browser
  • Mobile app code
  • Public repositories
  • Frontend environment variables
Store your API key in environment variables rather than hardcoding:
Rotate your API keys periodically and immediately if you suspect compromise. You can create a new key and revoke the old one from your dashboard.
Create separate API keys for development and production. This limits the impact if a key is compromised.

Managing API Keys

Viewing Keys

From your API settings, you can see:
  • Key name and creation date
  • Key prefix (first 8 characters)
  • Last used timestamp
  • Revocation status
For security, the full API key is never shown after creation.

Revoking Keys

To revoke an API key:
  1. Go to SettingsAPI
  2. Find the key you want to revoke
  3. Click the Revoke button
  4. Confirm the action
Revoked keys immediately stop working. Any requests using them will receive a 401 error.

Plan Requirements

API access requires a Plus, Pro, Max, or Enterprise plan. If your account doesn’t have a qualifying plan, you’ll receive this error:

Upgrade your plan

Get API access by upgrading to Plus or higher