Skip to main content

API Keys

All requests to the Veri API require authentication via an API key. You can create and manage API keys in your dashboard.

Using Your API Key

Include your API key in the X-API-Key header:
curl -X POST https://api.tryveri.com/v1/detect \
  -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"image": "base64-encoded-image"}'

Environment Variables

We recommend storing your API key in an environment variable:
export VERI_API_KEY="your-api-key"
Then load it in your code:
import os
from veri import VeriClient

client = VeriClient(api_key=os.environ["VERI_API_KEY"])

Security Best Practices

Never commit API keys to version control or expose them in client-side code.
  • Use environment variables - Store keys in .env files (excluded from git)
  • Rotate regularly - Create new keys periodically and revoke old ones
  • Separate environments - Use different keys for development and production
  • Monitor usage - Check your dashboard for unexpected API activity

Rate Limits

API requests are rate-limited based on your plan:
PlanRate LimitMonthly Quota
Free10 req/sec1,000 requests
Pro100 req/sec50,000 requests
EnterpriseCustomCustom
When you exceed the rate limit, you’ll receive a 429 Too Many Requests response with a Retry-After header.

Error Responses

Authentication errors return a 401 Unauthorized response:
{
  "error": "Invalid API key",
  "code": "INVALID_API_KEY"
}
Common authentication errors:
CodeDescription
INVALID_API_KEYThe API key is invalid or doesn’t exist
EXPIRED_API_KEYThe API key has been revoked
MISSING_API_KEYNo API key was provided