> For the complete documentation index, fetch https://nextauto.ai/llms.txt. Use it to find every page before exploring further.

# Quickstart

Three steps from no account to your first report.

## 1. Get a key

Sign up at [https://nextauto.ai/sign-up](https://nextauto.ai/sign-up). Once your account is approved, create a key on the [API keys](https://nextauto.ai/keys) page and keep it in an environment variable. Keys are shown once.

```bash
export NEXTGRADE_KEY="your key"
```

## 2. Send photos

```bash
curl -X POST "https://nextauto.ai/v1/analyses?wait=true" \
  -H "Authorization: Bearer $NEXTGRADE_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: my-first-report" \
  -d '{
    "images": [{ "url": "https://example.com/front.jpg" }, { "url": "https://example.com/left.jpg" }],
    "vehicle": { "vin": "5XYPG4A32JG427430" },
    "reference": "my-first-report"
  }'
```

Send several photos from different sides. The first 24 are analyzed. `?wait=true` holds the call open until the report is ready, up to about 4.5 minutes; a report usually takes 1 to 4 minutes.

## 3. Read the report

A finished report answers `200` with `status: "completed"`. The parts to read first:

- `damages[]`: one line per damaged part, with severity, suggested action and photo evidence.
- `coverage`: which views were captured and which major parts were never seen, so a missing line is never read as "no damage".
- `summary`: the damage count and the lines that need a person's review.

If it is still running you get `202`; fetch it later with `GET /v1/analyses/{id}`, or register a [webhook](https://nextauto.ai/docs/webhooks). Everything else is on [Results](https://nextauto.ai/docs/results).
