Legacy v1

Authentication

Last updated:

Authenticate with the Cardog v1 API using API keys.

Docs for the previous API generation. v1 endpoints keep working, but new work should target v2. See v2 Authentication.

The Cardog API uses API keys to authenticate requests. You can create and manage API keys from your account dashboard.

API Keys

All API requests require an API key passed in the x-api-key header:

curl "https://api.cardog.app/v1/vin/1HGCM82633A123456" \
  -H "x-api-key: your-api-key"

Creating an API Key

  1. Sign in to your account at cardog.app
  2. Navigate to Account → API Keys
  3. Click "Create API Key"
  4. Give your key a name (e.g., "Production" or "Development")
  5. Copy the key immediately. It is not shown again

Rate Limits

API keys are subject to rate limits based on your plan:

PlanRequests/minuteRequests/month
Free101,000
Pro6010,000
Business300100,000
EnterpriseCustomCustom

Rate limit headers are included in every response:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
X-RateLimit-Reset: 1699900000

Security Best Practices

  • Never commit API keys to version control
  • Use environment variables to store keys
  • Rotate keys periodically
  • Use separate keys for development and production
  • Monitor your usage in the dashboard

Errors

If authentication fails, you'll receive a 401 Unauthorized response:

Example

1 keys
"response": {
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}

Was this helpful?