Quickstart
Three steps: create a key, send it with your request, read the response.
1. Create an API key
Sign in to the dashboard and create a key. Its secret starts with apk_ and is shown only once, so store it in your server's configuration right away, for example in anAUTOPIC_KEY environment variable.
Never call the API with your key from a browser or a mobile app, where anyone could read the secret. Make the call from your server.
2. Decode a VIN
Send the VIN as JSON to POST /v1/vin/decode, with your key in the Authorization header.
curl -X POST https://api.autopic.io/v1/vin/decode \
-H "Authorization: Bearer $AUTOPIC_KEY" \
-H "Content-Type: application/json" \
-d '{"vin":"VF15RSN0A51234567"}'const res = await fetch('https://api.autopic.io/v1/vin/decode', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.AUTOPIC_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
"vin": "VF15RSN0A51234567"
}),
});
const data = await res.json();import os, requests
res = requests.post(
"https://api.autopic.io/v1/vin/decode",
headers={"Authorization": f"Bearer {os.environ['AUTOPIC_KEY']}"},
json={"vin":"VF15RSN0A51234567"},
)
data = res.json()<?php
$ch = curl_init('https://api.autopic.io/v1/vin/decode');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('AUTOPIC_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"vin":"VF15RSN0A51234567"}',
]);
$data = json_decode(curl_exec($ch), true);3. Read the response
The response gives the make and model, then, under registry, what the vehicle registers say about the vehicles that share the start of this VIN: how many there are, their years, their engines, and the technical data of their type-approved version.
{
"vin": "VF15RSN0A51234567",
"valid": true,
"make": {
"id": "f92cf3e2-9d1c-4b90-a9d8-0840a6626652",
"code": "renault",
"name": "Renault"
},
"model": {
"id": "0bd5e8d0-96ce-4456-9ddd-136f61f76802",
"code": "clio",
"name": "Clio"
},
"registry": {
"vehicles": 17835,
"yearMin": 2014,
"yearMax": 2024,
"…": "…"
}
}The Reading a response guide walks through each part, and the API reference lists every field.
Next steps
- Decode in bulk:
POST /v1/vin/decode-batchtakes up to 100 VINs per call. - Offer a list of makes and models: see the catalog.
- Plan for limits: Rate limits and quotas, Errors.