Authentication
Every request carries your API key, in whichever of two headers you prefer.
curl https://api.autopic.io/v1/makes \
-H "Authorization: Bearer $AUTOPIC_KEY"curl https://api.autopic.io/v1/makes \
-H "X-API-Key: $AUTOPIC_KEY"API keys
- Keys start with
apk_. You create and revoke them in the dashboard. - AutoPIC stores only a hash of each key, so a secret can never be shown again. If you lose a key, replace it: create a new one, then revoke the old one.
- A revoked key is rejected immediately.
- Use one key per application or environment: usage is reported key by key.
Without a key
Two endpoints also work without a key: POST /v1/vin/decode and POST /v1/vin/validate. This is what the site's free decoder uses. The response is then reduced (make, model, years, most common engine) and calls are rate-limited per IP address. Every other endpoint returns 401 api_key_required.
Rejected keys
An unknown or revoked key gets 401 invalid_api_key. The request is not downgraded to an anonymous one, so a configuration mistake shows up right away instead of silently returning the reduced response.