---
title: "Migrate from Auto.dev"
description: "Move Auto.dev v2 VIN decoding to CarsXE Specifications and adapt identity fields, authentication, and partial-response handling."
canonical_url: "https://docs.carsxe.com/docs/guides/migrate/auto-dev"
markdown_url: "https://docs.carsxe.com/docs/guides/migrate/auto-dev.md"
last_updated: "1980-01-01"
x_farming_labs_generated_preamble: true
agent:
  task: "Move an Auto.dev v2 VIN decode to CarsXE Specifications."
  outcome: "The CarsXE adapter normalizes the vehicle identity and distinguishes complete, partial, and missing results."
  appliesTo:
    version:
      - "Auto.dev v2 Global VIN Decode and CarsXE Specifications at /specs"
  prerequisites:
    - "An Auto.dev API key, a CarsXE API key, and VINs that exercise full and partial decoding."
  verification:
    - "Run the public BMW sample and confirm the adapter returns status found and the numeric year 2012."
    - "Confirm a CarsXE response missing make, model, or a valid year returns partial, and HTTP 404 returns not_found."
  failureModes:
    - symptom: "Auto.dev returns HTTP 401, or CarsXE rejects an unrecognized key."
      resolution: "Check the Auto.dev Bearer header and the CarsXE key query parameter before retrying."
    - symptom: "The CarsXE rollout exceeds the agreed error, partial-result, or latency thresholds."
      resolution: "Route the affected traffic back to Auto.dev and verify partial-result handling on the old route."
---

# Migrate from Auto.dev
URL: /docs/guides/migrate/auto-dev
LLM index: /llms.txt
Description: Move Auto.dev v2 VIN decoding to CarsXE Specifications and adapt identity fields, authentication, and partial-response handling.
Related: /docs/guides/migrate, /docs/products/specifications, /docs/guides/errors

<!-- farming-labs:agent-contract:start -->
## Agent Contract

Task: Move an Auto.dev v2 VIN decode to CarsXE Specifications.
Outcome: The CarsXE adapter normalizes the vehicle identity and distinguishes complete, partial, and missing results.

### Applies To

- Version: `Auto.dev v2 Global VIN Decode and CarsXE Specifications at /specs`

### Prerequisites

- An Auto.dev API key, a CarsXE API key, and VINs that exercise full and partial decoding.

### Verification

- Run the public BMW sample and confirm the adapter returns status found and the numeric year 2012.
- Confirm a CarsXE response missing make, model, or a valid year returns partial, and HTTP 404 returns not_found.

### Failure Modes

- Auto.dev returns HTTP 401, or CarsXE rejects an unrecognized key. — Recovery: Check the Auto.dev Bearer header and the CarsXE key query parameter before retrying.
- The CarsXE rollout exceeds the agreed error, partial-result, or latency thresholds. — Recovery: Route the affected traffic back to Auto.dev and verify partial-result handling on the old route.
<!-- farming-labs:agent-contract:end -->

Use this guide for Auto.dev's `GET /vin/{vin}` API. Start by switching the VIN lookup for a single vehicle and mapping the response into your existing vehicle record. See the [Auto.dev comparison](https://carsxe.com/alternatives/auto-dev-api) for other products.

## Prerequisites

- Use an Auto.dev key that can call the v2 Global VIN Decode API. Auto.dev lists VIN Decode on its Free, Growth, and Scale plans.
- [Get a CarsXE account and API key](/docs/get-started#api-keys). Confirm Specifications access and enough credits or quota for your tests and rollout.
- Keep both keys server-side. Auto.dev uses the `Authorization: Bearer` header, while CarsXE uses the `key` query parameter. Redact query strings and echoed `input.key` from logs.

## Choose the CarsXE endpoint

| Workflow | Auto.dev v2 | CarsXE | Fit |
| --- | --- | --- | --- |
| Decode vehicle identity by VIN | `GET https://api.auto.dev/vin/{vin}` with a 17-character VIN and a Bearer token | `GET https://api.carsxe.com/specs` with `key` and `vin` in the query | **Partial match.** Core identity fields overlap. Response types, the evidence behind a trim, and coverage may differ. |
| Read candidate trims or model years | `ambiguity` and the decode's ambiguity fields | `/specs` has no equivalent candidate-list or confidence contract | **Unsupported.** Keep a review path for unresolved identity or trim. |
| Retrieve a VIN's OEM build, live listings, or financed payments | `/build/{vin}`, listing and finance APIs | No direct substitute in `/specs` | **Unsupported in this workflow.** Preserve any required as-built records and app-specific pricing inputs. |

Specifications has its deepest coverage for US-market vehicles. It can return a smaller international result if a standard decode misses. Starting December 19, 2026, that fallback runs only when the request passes `intl=true`. A US specs-only workflow should handle `404` when the standard decode does not identify the vehicle. If your traffic is mostly non-US, evaluate [International VIN Decoding](/docs/products/international-vin-decoder) by market. [Auto.dev Global VIN Decode reference](https://docs.auto.dev/v2/products/vin-decode)

## Before and after

**Auto.dev.** Use a real `AUTO_DEV_API_KEY`. This response is an excerpt of the provider's published sample.

```bash
curl 'https://api.auto.dev/vin/3GCUDHEL3NG668790' \
  --header "Authorization: Bearer ${AUTO_DEV_API_KEY}"
```

```json
{
  "vin": "3GCUDHEL3NG668790",
  "make": "Chevrolet",
  "model": "Silverado 1500",
  "trim": "ZR2",
  "drive": "4WD",
  "doors": 4,
  "vehicle": { "year": 2022 }
}
```

**CarsXE.** The sample VIN works with the literal `YOUR_CARSXE_API_KEY` assigned to `CARSXE_API_KEY`. For comparisons, use the same VIN and active credentials on both sides.

```bash
curl --get 'https://api.carsxe.com/specs' \
  --data-urlencode "key=${CARSXE_API_KEY}" \
  --data-urlencode 'vin=WBAFR7C57CC811956'
```

```json
{
  "success": true,
  "attributes": {
    "year": "2012",
    "make": "BMW",
    "model": "5-Series",
    "trim": "535i",
    "drivetrain": "RWD",
    "doors": ""
  }
}
```

## Map the response fields

| Application field | Auto.dev | CarsXE Specifications | Migration change |
| --- | --- | --- | --- |
| VIN | `vin` (string) | `input.vin` (string) | Carry the VIN from your request and avoid storing the response's full `input` object. |
| Model year | `vehicle.year` (number when present) | `attributes.year` (string when present) | Parse a four-digit year after checking for blanks. |
| Make, model, trim | Top-level `make`, `model`, `trim` (strings, with nullable trim) | `attributes.make`, `model`, `trim` (strings when present) | Preserve unknown trim and compare labels before catalog joins. |
| Drive and doors | `drive` (string) and `doors` (number when present) | `attributes.drivetrain`, `attributes.doors` (strings when present) | Parse only known numeric door counts and keep blanks as unknown. |
| VIN validation and ambiguity | `vinValid`, `checksum`, `ambiguous`, `yearAmbiguous` (booleans when returned) | `success` is a lookup outcome | **Unsupported as equivalent fields.** Preserve any validation or ambiguity decisions in your application. |

## Adapt your client and test failures

Auto.dev can return HTTP `207` with partial identity fields and a reason. For CarsXE, check for `404` and validate the fields your product needs on a successful response. The adapter below maps both a missing record and a partial identity to explicit application states.

```js
async function decodeVin(vin, key) {
  const url = new URL("https://api.carsxe.com/specs");
  url.search = new URLSearchParams({ key, vin }).toString();
  const response = await fetch(url, { signal: AbortSignal.timeout(10_000) });
  if (response.status === 404) return { status: "not_found" };
  if (!response.ok) throw new Error(`CarsXE Specifications returned HTTP ${response.status}`);

  const result = await response.json();
  if (result.success !== true) throw new Error("CarsXE Specifications was unsuccessful");
  const { year, make, model, trim } = result.attributes ?? {};
  const identity = {
    vin,
    year: typeof year === "string" && /^\d{4}$/.test(year) ? Number(year) : null,
    make: make?.trim() || null,
    model: model?.trim() || null,
    trim: trim?.trim() || null,
  };
  const status = identity.year && identity.make && identity.model ? "found" : "partial";
  return { status, identity };
}
```

Omitting the Bearer header on the Auto.dev request returned HTTP `401` with `error.code: "API_KEY_REQUIRED"`. On CarsXE, an unrecognized key on a non-demo VIN returned HTTP `401` with `success: false`. Keep access failures separate from no data. Auto.dev documents `Retry-After` for rate-limited `429` responses. CarsXE can return `429` on exhausted quota and `402` on insufficient credits, so check the response before scheduling a retry. [Auto.dev errors](https://docs.auto.dev/v2/reference/errors) · [CarsXE errors](/docs/guides/errors) · [CarsXE rate limits and quotas](/docs/guides/rate-limits)

## Cut over production traffic

- [ ] Compare both providers on the same representative VINs. Include vehicles previously returned as `207`, invalid inputs, and no-data cases.
- [ ] Review model-year and trim differences. Keep unresolved cases out of flows that require confirmed vehicle identity.
- [ ] Ramp traffic gradually. Monitor partial and no-data rates, latency, access and usage errors, and remaining quota or credits.
- [ ] Keep the Auto.dev client available until CarsXE meets your rollout thresholds. Test switching back before increasing traffic.

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
