Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vemetric/vemetric/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Vemetric API uses API keys for authentication. All API requests must include a valid API key in theAuthorization header using the Bearer authentication scheme.
Creating an API Key
Navigate to Project Settings
Log in to your Vemetric dashboard and select the project you want to create an API key for.
Create New Key
Click the Create API Key button and provide a descriptive name for the key (e.g., “Production Dashboard”, “Analytics Export”).
API Key Format
Vemetric API keys have the following characteristics:- Prefix: All keys start with
vem_ - Length: 36 characters total (including prefix)
- Characters: Lowercase letters (a-z) and numbers (0-9)
Making Authenticated Requests
Include your API key in theAuthorization header of every request using the Bearer scheme:
Example Requests
Security Best Practices
Do’s
Store keys securely - Use environment variables or secret management services
Use different keys - Create separate keys for different environments (development, staging, production)
Rotate keys regularly - Periodically revoke old keys and create new ones
Name keys descriptively - Use clear names to track where each key is being used
Don’ts
Authentication Errors
The API returns specific error codes for authentication issues:Missing API Key (401)
Request:Malformed Authorization Header (401)
Request:Invalid API Key Format (401)
Request:Invalid or Revoked API Key (401)
Request:Managing API Keys
Listing API Keys
You can view all API keys for a project in the dashboard:- Navigate to Settings > API Keys
- You’ll see a list of all keys with:
- Key name
- Key prefix (e.g.,
vem_a1b2c3d4e5...) - Creation date
- Creator
Revoking API Keys
If an API key is compromised or no longer needed:- Navigate to Settings > API Keys
- Click the Revoke button next to the key
- Confirm the revocation
Project Scope
Each API key is scoped to a single project. The key only has access to data for that specific project. To access data from multiple projects, you’ll need to create an API key for each project. The authenticated project is automatically determined from the API key - you don’t need to specify a project ID in your requests.Next Steps
Now that you have an API key, you can start making requests:Get Project Info
Retrieve your project’s configuration and settings
Query Analytics
Query analytics data with flexible filters and grouping