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
- Sign in to your account at cardog.app
- Navigate to Account → API Keys
- Click "Create API Key"
- Give your key a name (e.g., "Production" or "Development")
- Copy the key immediately. It is not shown again
Rate Limits
API keys are subject to rate limits based on your plan:
| Plan | Requests/minute | Requests/month |
|---|---|---|
| Free | 10 | 1,000 |
| Pro | 60 | 10,000 |
| Business | 300 | 100,000 |
| Enterprise | Custom | Custom |
Rate limit headers are included in every response:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
X-RateLimit-Reset: 1699900000Security 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?