autopicDocs

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.

Request
curl -X POST https://api.autopic.io/v1/vin/decode \
  -H "Authorization: Bearer $AUTOPIC_KEY" \
  -H "Content-Type: application/json" \
  -d '{"vin":"VF15RSN0A51234567"}'

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.

Response, excerpt
{
  "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