{"openapi":"3.1.0","info":{"title":"NeXT Grade API","version":"2026-11-05","description":"Send photos of a vehicle, get back a Vehicle Asset Report with an itemized damage list. Human docs: /docs. Agent index: /llms.txt."},"servers":[{"url":"https://nextauto.ai"}],"security":[{"bearer":[]}],"externalDocs":{"url":"https://nextauto.ai/docs","description":"API docs"},"paths":{"/v1/analyses":{"post":{"operationId":"createReport","summary":"Create a Vehicle Asset Report from photos","parameters":[{"name":"wait","in":"query","schema":{"type":"boolean"},"description":"Wait for the report, up to about 4.5 minutes."},{"name":"Idempotency-Key","in":"header","schema":{"type":"string","maxLength":200},"description":"Repeating a request with the same key returns the same report."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"images":{"minItems":1,"maxItems":32,"type":"array","items":{"anyOf":[{"type":"object","properties":{"url":{"type":"string","format":"uri"}},"required":["url"]},{"type":"object","properties":{"data":{"type":"string","minLength":16,"description":"Base64 image bytes, or a data: URL"},"media_type":{"type":"string"}},"required":["data"]}]},"description":"1 to 32 photos of one vehicle: { url } (https) or { data, media_type } (base64)."},"vehicle":{"type":"object","properties":{"vin":{"type":"string"},"year":{"type":"integer","minimum":1950,"maximum":2100},"make":{"type":"string","minLength":1},"model":{"type":"string","minLength":1},"trim":{"type":"string","minLength":1},"market":{"type":"string","minLength":2,"maxLength":3},"options":{"type":"array","items":{"type":"string"}}},"description":"Optional vehicle details. Yours take priority over the VIN decode and the photos."},"notes":{"type":"string","maxLength":2000,"description":"Context for the report, up to 2,000 characters."},"reference":{"type":"string","maxLength":200,"description":"Your own id, echoed back in the result."},"pipeline":{"type":"string","description":"A pipeline id to pin. Without it, the account's default runs, else the platform's."},"interiors":{"type":"string","enum":["skip","detect"],"description":"skip or detect, for pipelines with photo_types: skip leaves interior, document and non-vehicle photos out of damage detection."},"features":{"maxItems":20,"type":"array","items":{"type":"string","enum":["damage_list","damage_points","damage_check","unlikely_marks","photo_types","airbags","second_looks","photo_conditions","interior_color","point_locations","tires","paintwork","likelihood"]},"description":"Result features the report must include. With no pipeline, a pipeline that has them runs."}},"required":["images"]}}}},"responses":{"200":{"description":"Completed (with wait=true), or an existing report for this key.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A Vehicle Asset Report. Before it completes, only the status fields are present. Fields a pipeline doesn't return are left out; check features.","required":["analysis_id","status"],"properties":{"analysis_id":{"type":"string","example":"an_0r0c2442681x630r"},"status":{"type":"string","enum":["queued","processing","completed","failed"]},"stage":{"type":"string","enum":["loading_photos","finding_damage","writing_report"],"description":"What it is doing now, while it runs."},"api_version":{"type":"string","example":"2026-11-05"},"created_at":{"type":"string","format":"date-time"},"reference":{"type":"string"},"error":{"type":"string","description":"Why the report failed."},"features":{"type":"array","items":{"type":"string","enum":["damage_list","damage_points","damage_check","unlikely_marks","photo_types","airbags","second_looks","photo_conditions","interior_color","point_locations","tires","paintwork","likelihood"]}},"versions":{"type":"object","description":"The pipeline id that ran and the part vocabulary version.","additionalProperties":true},"vehicle":{"type":"object","description":"What you sent, the VIN decode, the values used and their sources, conflicts.","additionalProperties":true},"images":{"type":"array","description":"Each photo's view, usability and quality issues.","items":{"type":"object","additionalProperties":true}},"damages":{"type":"array","description":"One line per damaged part and position: part code, side, zone, damage types, severity, suggested action, lookup strings, confidence, review status and photo evidence.","items":{"type":"object","additionalProperties":true}},"tires":{"type":"object","description":"Four tires graded good, fair, worn, replace or unknown (feature tires).","additionalProperties":true},"paintwork":{"type":"object","description":"Panels needing paint, share of the car, full repaint advice (feature paintwork).","additionalProperties":true},"coverage":{"type":"object","description":"Views captured and major parts never seen, so silence never means no damage.","additionalProperties":true},"rejected_findings":{"type":"array","description":"What the check ruled out as reflections, glare, dirt and the like.","items":{"type":"object","additionalProperties":true}},"summary":{"type":"object","description":"Damage count, main zones and lines needing review.","additionalProperties":true}}}}}},"202":{"description":"Started, or still running.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A Vehicle Asset Report. Before it completes, only the status fields are present. Fields a pipeline doesn't return are left out; check features.","required":["analysis_id","status"],"properties":{"analysis_id":{"type":"string","example":"an_0r0c2442681x630r"},"status":{"type":"string","enum":["queued","processing","completed","failed"]},"stage":{"type":"string","enum":["loading_photos","finding_damage","writing_report"],"description":"What it is doing now, while it runs."},"api_version":{"type":"string","example":"2026-11-05"},"created_at":{"type":"string","format":"date-time"},"reference":{"type":"string"},"error":{"type":"string","description":"Why the report failed."},"features":{"type":"array","items":{"type":"string","enum":["damage_list","damage_points","damage_check","unlikely_marks","photo_types","airbags","second_looks","photo_conditions","interior_color","point_locations","tires","paintwork","likelihood"]}},"versions":{"type":"object","description":"The pipeline id that ran and the part vocabulary version.","additionalProperties":true},"vehicle":{"type":"object","description":"What you sent, the VIN decode, the values used and their sources, conflicts.","additionalProperties":true},"images":{"type":"array","description":"Each photo's view, usability and quality issues.","items":{"type":"object","additionalProperties":true}},"damages":{"type":"array","description":"One line per damaged part and position: part code, side, zone, damage types, severity, suggested action, lookup strings, confidence, review status and photo evidence.","items":{"type":"object","additionalProperties":true}},"tires":{"type":"object","description":"Four tires graded good, fair, worn, replace or unknown (feature tires).","additionalProperties":true},"paintwork":{"type":"object","description":"Panels needing paint, share of the car, full repaint advice (feature paintwork).","additionalProperties":true},"coverage":{"type":"object","description":"Views captured and major parts never seen, so silence never means no damage.","additionalProperties":true},"rejected_findings":{"type":"array","description":"What the check ruled out as reflections, glare, dirt and the like.","items":{"type":"object","additionalProperties":true}},"summary":{"type":"object","description":"Damage count, main zones and lines needing review.","additionalProperties":true}}}}}},"400":{"description":"Invalid request.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object"},"description":"Invalid fields (400)."},"usage":{"type":"object","description":"Current usage (402, 429)."},"docs":{"type":"string","description":"Where to read more (401, 403)."}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"402":{"description":"Monthly limit reached.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object"},"description":"Invalid fields (400)."},"usage":{"type":"object","description":"Current usage (402, 429)."},"docs":{"type":"string","description":"Where to read more (401, 403)."}}}}}},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"description":"The report failed (with wait=true).","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A Vehicle Asset Report. Before it completes, only the status fields are present. Fields a pipeline doesn't return are left out; check features.","required":["analysis_id","status"],"properties":{"analysis_id":{"type":"string","example":"an_0r0c2442681x630r"},"status":{"type":"string","enum":["queued","processing","completed","failed"]},"stage":{"type":"string","enum":["loading_photos","finding_damage","writing_report"],"description":"What it is doing now, while it runs."},"api_version":{"type":"string","example":"2026-11-05"},"created_at":{"type":"string","format":"date-time"},"reference":{"type":"string"},"error":{"type":"string","description":"Why the report failed."},"features":{"type":"array","items":{"type":"string","enum":["damage_list","damage_points","damage_check","unlikely_marks","photo_types","airbags","second_looks","photo_conditions","interior_color","point_locations","tires","paintwork","likelihood"]}},"versions":{"type":"object","description":"The pipeline id that ran and the part vocabulary version.","additionalProperties":true},"vehicle":{"type":"object","description":"What you sent, the VIN decode, the values used and their sources, conflicts.","additionalProperties":true},"images":{"type":"array","description":"Each photo's view, usability and quality issues.","items":{"type":"object","additionalProperties":true}},"damages":{"type":"array","description":"One line per damaged part and position: part code, side, zone, damage types, severity, suggested action, lookup strings, confidence, review status and photo evidence.","items":{"type":"object","additionalProperties":true}},"tires":{"type":"object","description":"Four tires graded good, fair, worn, replace or unknown (feature tires).","additionalProperties":true},"paintwork":{"type":"object","description":"Panels needing paint, share of the car, full repaint advice (feature paintwork).","additionalProperties":true},"coverage":{"type":"object","description":"Views captured and major parts never seen, so silence never means no damage.","additionalProperties":true},"rejected_findings":{"type":"array","description":"What the check ruled out as reflections, glare, dirt and the like.","items":{"type":"object","additionalProperties":true}},"summary":{"type":"object","description":"Damage count, main zones and lines needing review.","additionalProperties":true}}}}}},"429":{"description":"Rate or daily limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object"},"description":"Invalid fields (400)."},"usage":{"type":"object","description":"Current usage (402, 429)."},"docs":{"type":"string","description":"Where to read more (401, 403)."}}}}}}}},"get":{"operationId":"listReports","summary":"List this account's reports, newest first","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"status","in":"query","schema":{"type":"string","enum":["queued","processing","completed","failed"]}},{"name":"before","in":"query","schema":{"type":"string","format":"date-time"},"description":"next_before from the previous page, for older reports."}],"responses":{"200":{"description":"A page of reports.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"analysis_id":{"type":"string"},"status":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"reference":{"type":"string"},"vehicle":{"type":"string"},"vin":{"type":"string"},"photo_count":{"type":"integer"},"damage_count":{"type":"integer"}}}},"next_before":{"type":["string","null"]}}}}}},"400":{"description":"Invalid status or before.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object"},"description":"Invalid fields (400)."},"usage":{"type":"object","description":"Current usage (402, 429)."},"docs":{"type":"string","description":"Where to read more (401, 403)."}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/v1/analyses/{id}":{"get":{"operationId":"getReport","summary":"Get a report's status, or the report once completed","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The report or its status.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"A Vehicle Asset Report. Before it completes, only the status fields are present. Fields a pipeline doesn't return are left out; check features.","required":["analysis_id","status"],"properties":{"analysis_id":{"type":"string","example":"an_0r0c2442681x630r"},"status":{"type":"string","enum":["queued","processing","completed","failed"]},"stage":{"type":"string","enum":["loading_photos","finding_damage","writing_report"],"description":"What it is doing now, while it runs."},"api_version":{"type":"string","example":"2026-11-05"},"created_at":{"type":"string","format":"date-time"},"reference":{"type":"string"},"error":{"type":"string","description":"Why the report failed."},"features":{"type":"array","items":{"type":"string","enum":["damage_list","damage_points","damage_check","unlikely_marks","photo_types","airbags","second_looks","photo_conditions","interior_color","point_locations","tires","paintwork","likelihood"]}},"versions":{"type":"object","description":"The pipeline id that ran and the part vocabulary version.","additionalProperties":true},"vehicle":{"type":"object","description":"What you sent, the VIN decode, the values used and their sources, conflicts.","additionalProperties":true},"images":{"type":"array","description":"Each photo's view, usability and quality issues.","items":{"type":"object","additionalProperties":true}},"damages":{"type":"array","description":"One line per damaged part and position: part code, side, zone, damage types, severity, suggested action, lookup strings, confidence, review status and photo evidence.","items":{"type":"object","additionalProperties":true}},"tires":{"type":"object","description":"Four tires graded good, fair, worn, replace or unknown (feature tires).","additionalProperties":true},"paintwork":{"type":"object","description":"Panels needing paint, share of the car, full repaint advice (feature paintwork).","additionalProperties":true},"coverage":{"type":"object","description":"Views captured and major parts never seen, so silence never means no damage.","additionalProperties":true},"rejected_findings":{"type":"array","description":"What the check ruled out as reflections, glare, dirt and the like.","items":{"type":"object","additionalProperties":true}},"summary":{"type":"object","description":"Damage count, main zones and lines needing review.","additionalProperties":true}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No such report on this account.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object"},"description":"Invalid fields (400)."},"usage":{"type":"object","description":"Current usage (402, 429)."},"docs":{"type":"string","description":"Where to read more (401, 403)."}}}}}}}}},"/v1/pipelines":{"get":{"operationId":"listPipelines","summary":"Pipelines, the default, and the features each returns","responses":{"200":{"description":"Pipelines.","content":{"application/json":{"schema":{"type":"object","description":"default, features and data[]","additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/v1/vocabulary":{"get":{"operationId":"getVocabulary","summary":"Part codes, damage types, severities, photo types and review reasons","responses":{"200":{"description":"Vocabulary.","content":{"application/json":{"schema":{"type":"object","description":"The codes a result can contain.","additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/v1/usage":{"get":{"operationId":"getUsage","summary":"Reports against this account's limits","responses":{"200":{"description":"Usage.","content":{"application/json":{"schema":{"type":"object","description":"Usage and limits.","additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/v1/webhooks":{"get":{"operationId":"listWebhooks","summary":"List webhook endpoints","responses":{"200":{"description":"Endpoints.","content":{"application/json":{"schema":{"type":"object","description":"data[]","additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}},"post":{"operationId":"createWebhook","summary":"Register a webhook endpoint; returns its signing secret once","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string","enum":["analysis.completed","analysis.failed"]}}}}}}},"responses":{"201":{"description":"Registered.","content":{"application/json":{"schema":{"type":"object","description":"id, url, events and secret","additionalProperties":true}}}},"400":{"description":"Invalid request.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object"},"description":"Invalid fields (400)."},"usage":{"type":"object","description":"Current usage (402, 429)."},"docs":{"type":"string","description":"Where to read more (401, 403)."}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/v1/webhooks/{id}":{"delete":{"operationId":"deleteWebhook","summary":"Turn off a webhook endpoint","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Turned off.","content":{"application/json":{"schema":{"type":"object","description":"id and active: false","additionalProperties":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"No such webhook on this account.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object"},"description":"Invalid fields (400)."},"usage":{"type":"object","description":"Current usage (402, 429)."},"docs":{"type":"string","description":"Where to read more (401, 403)."}}}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"An API key from the API keys page, on an approved account."}},"responses":{"Unauthorized":{"description":"Missing or invalid key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object"},"description":"Invalid fields (400)."},"usage":{"type":"object","description":"Current usage (402, 429)."},"docs":{"type":"string","description":"Where to read more (401, 403)."}}}}}},"Forbidden":{"description":"Account not approved yet, or paused.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string"},"issues":{"type":"array","items":{"type":"object"},"description":"Invalid fields (400)."},"usage":{"type":"object","description":"Current usage (402, 429)."},"docs":{"type":"string","description":"Where to read more (401, 403)."}}}}}}}}}