{
  "openapi": "3.1.0",
  "info": {
    "title": "CarsXE API",
    "version": "1.0.0",
    "description": "CarsXE is a B2B vehicle data API by PiWaves, LLC. It provides vehicle\nspecifications (VIN decoding), market values, vehicle history, recalls,\nlicense plate decoding, vehicle images, plate/VIN image recognition,\nYear Make Model data, OBD code decoding, and Ownership (enterprise)\nidentity lookups.\n\n## Authentication\n\nMost requests use a CarsXE API key in the `key` query parameter, e.g.\n`https://api.carsxe.com/specs?key=YOUR_API_KEY&vin=...`. Supported endpoints\nalso accept x402 payment without a CarsXE key. Recalls Batch x402 follow-up\nrequests use the scoped `X-CarsXE-Batch-Token` returned at submission.\n\n## Caching\n\nMany endpoints cache upstream results. A cached response may include the\nmessage \"The response is from the cache\".\n",
    "contact": {
      "name": "CarsXE",
      "url": "https://api.carsxe.com"
    }
  },
  "servers": [
    {
      "url": "https://api.carsxe.com"
    }
  ],
  "security": [
    {
      "ApiKeyQuery": []
    }
  ],
  "tags": [
    {
      "name": "Specifications",
      "description": "VIN decoding and vehicle specifications"
    },
    {
      "name": "Market Value",
      "description": "Vehicle market value by VIN"
    },
    {
      "name": "History",
      "description": "Vehicle history reports"
    },
    {
      "name": "Recalls",
      "description": "Safety recalls by VIN or year, make and model, bulk batches, and manufacturer campaign codes"
    },
    {
      "name": "Plate Decoder",
      "description": "Decode license plates into vehicle data"
    },
    {
      "name": "Images",
      "description": "Vehicle images by make/model"
    },
    {
      "name": "Recognition",
      "description": "Plate and VIN recognition from images"
    },
    {
      "name": "Year Make Model",
      "description": "Year/make/model and OBD code endpoints"
    },
    {
      "name": "Lien and Theft",
      "description": "Lien and theft records by VIN"
    },
    {
      "name": "Ownership",
      "description": "Enterprise-only identity lookups by VIN, person, address, phone, or ZIP. Charged only when a match is found."
    },
    {
      "name": "Collateral Score",
      "description": "Lender collateral risk assessment by VIN, single and batch"
    }
  ],
  "paths": {
    "/specs": {
      "get": {
        "operationId": "getVehicleSpecs",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Specifications"
        ],
        "summary": "Vehicle Specifications (VIN decoder)",
        "description": "Decode a 17-character VIN and return detailed vehicle specifications,\nincluding attributes, colors, equipment and warranties. If the VIN\ncannot be decoded, an International VIN decoding check is run as a\nfallback unless `disableIntVINDecoding=1` is set.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/vin"
          },
          {
            "$ref": "#/components/parameters/format"
          },
          {
            "name": "deepdata",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            },
            "description": "Request extra data. Set to `1` to use. Significantly slower than the regular request but retrieves additional data."
          },
          {
            "name": "disableIntVINDecoding",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            },
            "description": "Set to `1` to disable the International VIN decoding fallback and return an error instead of a potential partial response."
          }
        ],
        "responses": {
          "200": {
            "description": "Vehicle specifications retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpecsResponse"
                },
                "example": {
                  "success": true,
                  "input": {
                    "key": "API_KEY",
                    "vin": "WBAFR7C57CC811956"
                  },
                  "attributes": {
                    "year": "2012",
                    "make": "BMW",
                    "model": "5-Series",
                    "trim": "535i",
                    "style": "SEDAN 4-DR",
                    "type": "Sedan/Saloon",
                    "made_in": "GERMANY",
                    "doors": "4",
                    "fuel_type": "Gasoline",
                    "engine": "3.0L L6 DOHC 24V",
                    "engine_cylinders": "6",
                    "transmission": "6-Speed Manual | 8-Speed Automatic",
                    "drivetrain": "RWD"
                  },
                  "colors": [
                    {
                      "category": "Interior",
                      "name": "Black Dakota Leather Interior"
                    },
                    {
                      "category": "Exterior",
                      "name": "Alpine White"
                    }
                  ],
                  "equipment": {
                    "abs_brakes": "Std.",
                    "air_conditioning": "Std."
                  },
                  "warranties": [
                    {
                      "type": "Basic",
                      "miles": "50,000 mile",
                      "months": "48 month"
                    }
                  ],
                  "timestamp": "2025-10-01T22:40:36.374Z"
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Missing vin (vehicle identification number)"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No data found for this VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "No data found for this VIN. Try a deep search by setting deepdata=1 in your request"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/v1/international-vin-decoder": {
      "get": {
        "operationId": "getInternationalVinDecoder",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Specifications"
        ],
        "summary": "International VIN Decoder",
        "description": "Decode a non-US (international) VIN into vehicle attributes.",
        "parameters": [
          {
            "$ref": "#/components/parameters/vin"
          }
        ],
        "responses": {
          "200": {
            "description": "International VIN decoded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "attributes": {
                      "type": "object",
                      "description": "Decoded vehicle attributes.",
                      "additionalProperties": true
                    },
                    "timestamp": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "input": {
                    "vin": "WF0MXXGBWM8R43240"
                  },
                  "attributes": {
                    "vin": "WF0MXXGBWM8R43240",
                    "vid": "1623",
                    "make": "Ford",
                    "model": "Galaxy"
                  },
                  "timestamp": "2025-04-11T00:05:36.457Z"
                }
              }
            }
          },
          "400": {
            "description": "Missing VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Missing vin (vehicle identification number)"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No data found for this VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "No data found for this VIN"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/v1/recalls": {
      "get": {
        "operationId": "getVehicleRecalls",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Recalls"
        ],
        "summary": "Vehicle Recalls",
        "description": "Retrieve open safety recalls for a vehicle by VIN.",
        "parameters": [
          {
            "$ref": "#/components/parameters/vin"
          }
        ],
        "responses": {
          "200": {
            "description": "Recall data retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "data": {
                      "type": "object",
                      "description": "Recall report for the VIN.",
                      "additionalProperties": true
                    },
                    "timestamp": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "input": {
                    "key": "API_KEY",
                    "vin": "1C4JJXR64PW696340"
                  },
                  "data": {
                    "uuid": "d1269d6b-54a2-4bf3-8119-1c8fdb4f0563",
                    "vin": "1C4JJXR64PW696340",
                    "manufacturer": "FCA US LLC",
                    "model_year": "2023"
                  },
                  "timestamp": "2025-10-03T08:46:03.701Z"
                }
              }
            }
          },
          "400": {
            "description": "Missing VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Missing vin (vehicle identification number)"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No recall data found for this VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "No data found for this VIN"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/v1/recalls-ymm": {
      "get": {
        "operationId": "getRecallsByYmm",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Recalls"
        ],
        "summary": "Recalls by Year, Make & Model",
        "description": "Retrieve open safety recalls for a vehicle by year, make, and model — no VIN required.",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The 4-digit model year (e.g. `2019`)."
          },
          {
            "name": "make",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The vehicle manufacturer name (e.g. `Toyota`). Case-insensitive."
          },
          {
            "name": "model",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The vehicle model name (e.g. `Camry`). Case-insensitive."
          }
        ],
        "responses": {
          "200": {
            "description": "Recall data retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "object",
                      "properties": {
                        "year": {
                          "type": "string"
                        },
                        "make": {
                          "type": "string"
                        },
                        "model": {
                          "type": "string"
                        }
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "make": {
                          "type": "string"
                        },
                        "model": {
                          "type": "string"
                        },
                        "model_year": {
                          "type": "string"
                        },
                        "recall_count": {
                          "type": "integer"
                        },
                        "has_recalls": {
                          "type": "boolean"
                        },
                        "recalls": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "timestamp": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "success": true,
                  "input": {
                    "year": "2026",
                    "make": "TOYOTA",
                    "model": "COROLLA"
                  },
                  "data": {
                    "make": "TOYOTA",
                    "model": "COROLLA",
                    "model_year": "2026",
                    "recall_count": 1,
                    "has_recalls": true,
                    "recalls": [
                      {
                        "nhtsa_campaign_number": "26V110000",
                        "manufacturer": "Toyota Motor Engineering & Manufacturing",
                        "park_it": false,
                        "park_outside": false,
                        "over_the_air_update": false,
                        "report_received_date": "25/02/2026",
                        "component": "EXTERIOR LIGHTING:HEADLIGHTS",
                        "summary": "Toyota is recalling certain 2026 Corolla vehicles.",
                        "consequence": "Incorrectly aimed headlights can reduce driver visibility.",
                        "remedy": "Dealers will replace both front headlight assemblies, free of charge.",
                        "notes": null
                      }
                    ]
                  },
                  "timestamp": "2026-06-29T12:00:45.786Z"
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid year, make, or model.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Missing required parameters"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Feature not available on this plan.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "This feature is not enabled for your account"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/v1/recalls-campaigns": {
      "get": {
        "operationId": "getRecallCampaign",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Recalls"
        ],
        "summary": "Recall Campaign",
        "description": "Look up a manufacturer recall campaign code (for example Volkswagen `37M2`) and get the recall campaign behind it. Exact match on make and code; a code that is not in the dictionary returns 404 and is not billed. Billed as a Vehicle Recalls call.",
        "parameters": [
          {
            "name": "make",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 120
            },
            "description": "The vehicle manufacturer name (e.g. `volkswagen`). Case and extra whitespace are ignored."
          },
          {
            "name": "code",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 64
            },
            "description": "The manufacturer's campaign code (e.g. `37M2`). Case-insensitive, the letter O is read as zero, and Volkswagen warranty codes match in any spelling (`VWP1403`, `VWP 14 03`, `VWP-14-03`)."
          }
        ],
        "responses": {
          "200": {
            "description": "Campaign found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "object",
                      "properties": {
                        "make": {
                          "type": "string",
                          "description": "The normalized make."
                        },
                        "code": {
                          "type": "string",
                          "description": "The code as sent, trimmed."
                        }
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "campaign_code": {
                          "type": "string"
                        },
                        "recall_class": {
                          "type": "string",
                          "description": "`Safety / Compliance Recall` for a safety recall, otherwise the service bulletin type."
                        },
                        "description": {
                          "type": "string"
                        },
                        "nhtsa_campaign_number": {
                          "type": "string",
                          "description": "One or more NHTSA campaign numbers separated by `;`. Empty for a bulletin-only code."
                        },
                        "component": {
                          "type": "string",
                          "description": "Empty for a bulletin-only code."
                        },
                        "models": {
                          "type": "string",
                          "description": "Affected models separated by `;`."
                        },
                        "model_years": {
                          "type": "string",
                          "description": "Affected model years separated by `;`."
                        },
                        "confidence": {
                          "type": "string",
                          "enum": [
                            "high",
                            "medium (prose reference)"
                          ]
                        },
                        "matched": {
                          "type": "boolean"
                        },
                        "dictionary_version": {
                          "type": "integer"
                        }
                      }
                    },
                    "timestamp": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "success": true,
                  "input": {
                    "make": "volkswagen",
                    "code": "37M2"
                  },
                  "data": {
                    "campaign_code": "37M2",
                    "recall_class": "Safety / Compliance Recall",
                    "description": "Volkswagen is recalling certain 2011-2019 Beetle, Golf, GTI and Jetta vehicles. A build-up of silicate on the shift lever micro switch contacts may enable the key to be removed from the ignition when the shift lever is not in Park.",
                    "nhtsa_campaign_number": "19V615000",
                    "component": "ELECTRICAL SYSTEM:IGNITION:ANTI-THEFT:CONTROL MODULE",
                    "models": "BEETLE;BEETLE CONVERTIBLE;GOLF;GOLF SPORTWAGEN;GTI;JETTA",
                    "model_years": "2011;2012;2013;2014;2015;2016;2017;2018;2019",
                    "confidence": "high",
                    "matched": true,
                    "dictionary_version": 1
                  },
                  "timestamp": "2026-09-25T12:29:09.352Z"
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid make or code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Missing or invalid make or campaign code"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No campaign for this make and code. Not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "No campaign found for this make and campaign code"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/v1/recalls-batch/submit": {
      "post": {
        "operationId": "submitRecallsBatch",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Recalls"
        ],
        "summary": "Submit a bulk recalls batch",
        "description": "Submit up to 10,000 VINs for asynchronous recall processing. Provide\nVINs as a JSON array (`vins`), inline CSV text (`csv`), or an HTTPS\nlink to a CSV file (`csvUrl`). Optionally provide a `webhookUrl` that\nCarsXE will POST to when the batch finishes. Poll the status endpoint\nor wait for the webhook, then fetch results.\n\nx402 submissions must use the JSON `vins` array. The `csv` and `csvUrl`\nforms require CarsXE API-key authentication.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "vins": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Array of 17-character VINs (max 10,000 per batch)."
                  },
                  "csv": {
                    "type": "string",
                    "description": "Inline CSV text containing VINs. Available with CarsXE API-key authentication only; x402 does not accept this form."
                  },
                  "csvUrl": {
                    "type": "string",
                    "description": "HTTPS link to a CSV file of VINs (max 5 MB) hosted on a supported storage provider (e.g. S3, GCS, Firebase, Dropbox). Available with CarsXE API-key authentication only; x402 does not accept this form."
                  },
                  "webhookUrl": {
                    "type": "string",
                    "description": "HTTPS URL for a customer webhook. CarsXE POSTs a JSON payload when the batch finishes. Must be a valid HTTPS URL allowed by CarsXE validation rules."
                  }
                }
              },
              "example": {
                "vins": [
                  "1HGBH41JXMN109186",
                  "5YJSA1E26HF000001"
                ],
                "webhookUrl": "https://example.com/webhooks/carsxe-recalls"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Batch accepted and queued for processing.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "batchId": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "totalVins": {
                          "type": "integer"
                        },
                        "processedVins": {
                          "type": "integer"
                        },
                        "batchToken": {
                          "type": "string",
                          "description": "Opaque batch-scoped credential returned only for x402 submissions. Send it in X-CarsXE-Batch-Token on follow-up requests."
                        }
                      },
                      "additionalProperties": true
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "data": {
                    "batchId": "brb_mnablbn7_wvbaqv",
                    "status": "uploading",
                    "totalVins": 3,
                    "processedVins": 0
                  },
                  "message": "Batch submitted and queued for processing. Poll the status endpoint or wait for the webhook."
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body — missing VINs, invalid VINs, more than 10,000 VINs, invalid `webhookUrl`, or a `csvUrl` that is invalid / not allowed / too large.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missingVins": {
                    "value": {
                      "success": false,
                      "message": "Request body must include at least one of: \"vins\" (non-empty array), \"csv\" (text), or \"csvUrl\" (https link to a CSV) with valid 17-character VINs."
                    }
                  },
                  "invalidVin": {
                    "value": {
                      "success": false,
                      "message": "One or more VINs are invalid. Each VIN must be exactly 17 characters."
                    }
                  },
                  "tooManyVins": {
                    "value": {
                      "success": false,
                      "message": "Maximum 10,000 VINs per batch. Split your request into multiple batches."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "405": {
            "description": "Method not allowed (only POST is accepted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Only POST allowed. Send JSON body with \"vehicles\" array."
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "502": {
            "description": "Could not download the CSV from `csvUrl`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Could not download the CSV from csvUrl. Check the link and try again."
                }
              }
            }
          }
        }
      }
    },
    "/v1/recalls-batch/status": {
      "get": {
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "RecallsBatchToken": []
          }
        ],
        "operationId": "getRecallsBatchStatus",
        "tags": [
          "Recalls"
        ],
        "summary": "Get bulk recalls batch status",
        "description": "Check the processing status of a previously submitted batch.",
        "parameters": [
          {
            "$ref": "#/components/parameters/batchId"
          },
          {
            "$ref": "#/components/parameters/recallsBatchToken"
          }
        ],
        "responses": {
          "200": {
            "description": "Batch status retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "batchId": {
                          "type": "string"
                        },
                        "numericBatchId": {
                          "type": "integer"
                        },
                        "status": {
                          "type": "string"
                        },
                        "totalVins": {
                          "type": "integer"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "data": {
                    "batchId": "brb_mnablbn7_wvbaqv",
                    "numericBatchId": 200426,
                    "status": "completed",
                    "totalVins": 3
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing batchId parameter.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Missing batchId parameter"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Batch not found or not accessible with this API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Batch not found or you do not have access to this batch."
                }
              }
            }
          }
        }
      }
    },
    "/v1/recalls-batch/results": {
      "get": {
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "RecallsBatchToken": []
          }
        ],
        "operationId": "getRecallsBatchResults",
        "tags": [
          "Recalls"
        ],
        "summary": "Get bulk recalls batch results",
        "description": "Fetch the per-VIN recall results of a completed batch as JSON.",
        "parameters": [
          {
            "$ref": "#/components/parameters/batchId"
          },
          {
            "$ref": "#/components/parameters/recallsBatchToken"
          }
        ],
        "responses": {
          "200": {
            "description": "Batch results retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "job": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "results": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "vin": {
                                "type": "string"
                              },
                              "hasRecalls": {
                                "type": "boolean"
                              },
                              "recallCount": {
                                "type": "integer"
                              },
                              "recalls": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              }
                            },
                            "additionalProperties": true
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "data": {
                    "job": {
                      "batchId": "brb_mnablbn7_wvbaqv",
                      "numericBatchId": 200426,
                      "status": "completed"
                    },
                    "results": [
                      {
                        "vin": "1HGBH41JXMN109186",
                        "hasRecalls": true,
                        "recallCount": 1
                      },
                      {
                        "vin": "5YJSA1E26HF000001",
                        "hasRecalls": false,
                        "recallCount": 0
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing batchId parameter.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Missing batchId parameter"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Batch not found or not accessible with this API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Batch not found or you do not have access to this batch."
                }
              }
            }
          },
          "409": {
            "description": "Batch processing is not yet complete.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Batch processing is not yet complete. Check status and try again later."
                }
              }
            }
          }
        }
      }
    },
    "/v1/recalls-batch/download": {
      "get": {
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "RecallsBatchToken": []
          }
        ],
        "operationId": "downloadRecallsBatchResults",
        "tags": [
          "Recalls"
        ],
        "summary": "Download bulk recalls batch results",
        "description": "Download the results of a completed batch as CSV.",
        "parameters": [
          {
            "$ref": "#/components/parameters/batchId"
          },
          {
            "$ref": "#/components/parameters/recallsBatchToken"
          }
        ],
        "responses": {
          "200": {
            "description": "CSV results file.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Missing batchId parameter."
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Batch not found or not accessible with these credentials."
          },
          "409": {
            "description": "Batch processing is not yet complete."
          }
        }
      }
    },
    "/platedecoder": {
      "get": {
        "operationId": "decodePlate",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Plate Decoder"
        ],
        "summary": "License Plate Decoder (v1)",
        "description": "Decode a license plate into vehicle data. Internally proxies to the v2\nplate decoder. The `state` parameter accepts a two-letter US state\ncode, Australian state, or one of the legacy country codes `BR`, `UK`,\n`IR`, `IT`, `ES`, `IND`, `MX`, `NZ`.\n",
        "parameters": [
          {
            "name": "plate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The vehicle registration number or license plate number."
          },
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The two letter state code (US) such as `CA` or `NY`, Australian state, or Brazil `BR`, United Kingdom `UK`, Ireland `IR`, Italy `IT`, Spain `ES`, India `IND`, Mexico `MX`, New Zealand `NZ`."
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Country code, e.g. Australia `AU`. Optional for `US`."
          },
          {
            "$ref": "#/components/parameters/format"
          }
        ],
        "responses": {
          "200": {
            "description": "Plate decoded. Response fields vary by country and provider.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "vin": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "input": {
                    "plate": "7XER187",
                    "state": "CA",
                    "country": "US"
                  },
                  "vin": "3KPFK4A78HE103497",
                  "assembly": "Mexico",
                  "Description": "Kia Forte LX",
                  "BodyStyle": "Sedan",
                  "RegistrationYear": "2017",
                  "EngineSize": "2.0L I4 MPI",
                  "CarMake": "Kia",
                  "CarModel": "Forte"
                }
              }
            }
          },
          "400": {
            "description": "Missing plate or state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missingPlate": {
                    "value": {
                      "success": false,
                      "message": "Missing vehicle registration number or license plate number"
                    }
                  },
                  "missingState": {
                    "value": {
                      "success": false,
                      "message": "Missing 2 letter state code"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No data found for this plate (passed through from the v2 decoder).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Could not fetch data"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "502": {
            "description": "Upstream plate decoder request failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Could not fetch data"
                }
              }
            }
          },
          "504": {
            "description": "Upstream plate decoder request timed out.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Request timed out. Please try again."
                }
              }
            }
          }
        }
      }
    },
    "/v1/us-platedecoder": {
      "get": {
        "operationId": "decodeUsPlate",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Plate Decoder"
        ],
        "summary": "US Vehicle Plate Decoder",
        "description": "Look up a US vehicle by license plate number and state. Returns the\nVIN, year, make, model, trim, engine, body style, transmission, drive\ntype, fuel type and exterior color. Optionally decodes the VIN to\ninclude the full vehicle specifications object. Accepts plates from all\n50 US states, the District of Columbia (DC) and Puerto Rico (PR).\n\nEach successful lookup costs 5 credits; `decodeVIN=true` adds one\nSpecifications charge when specifications are returned.\n",
        "parameters": [
          {
            "name": "plate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The vehicle registration number or license plate number."
          },
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Two-letter abbreviation for one of the 50 US states, the District of Columbia (`DC`), or Puerto Rico (`PR`)."
          },
          {
            "name": "decodeVIN",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "1"
              ]
            },
            "description": "Set to `true` or `1` to decode the resolved VIN and include a `vehicle_specs` object in the response (identical in shape to the Specifications endpoint response)."
          }
        ],
        "responses": {
          "200": {
            "description": "Plate decoded successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "object",
                      "properties": {
                        "plate": {
                          "type": "string"
                        },
                        "state": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    },
                    "vin": {
                      "type": "string"
                    },
                    "year": {
                      "type": "string"
                    },
                    "make": {
                      "type": "string"
                    },
                    "model": {
                      "type": "string"
                    },
                    "trim": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "engine_size": {
                      "type": "string"
                    },
                    "body_style": {
                      "type": "string"
                    },
                    "transmission": {
                      "type": "string"
                    },
                    "drive_type": {
                      "type": "string"
                    },
                    "fuel_type": {
                      "type": "string"
                    },
                    "color": {
                      "type": "string"
                    },
                    "vehicle_specs": {
                      "$ref": "#/components/schemas/SpecsResponse",
                      "description": "Full vehicle specifications (only present when `decodeVIN=true`)."
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "input": {
                    "plate": "H37SFS",
                    "state": "NJ"
                  },
                  "vin": "1GNSCGKC0JR318026",
                  "year": "2018",
                  "make": "Chevrolet",
                  "model": "Suburban",
                  "trim": "LS",
                  "description": "2018 Chevrolet Suburban",
                  "engine_size": "5.3L V8 OHV 16V",
                  "body_style": "SUV",
                  "transmission": "Automatic",
                  "drive_type": "RWD",
                  "fuel_type": "Flexible-Fuel",
                  "color": "Black"
                }
              }
            }
          },
          "400": {
            "description": "Missing plate, state, or API key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missingPlate": {
                    "value": {
                      "success": false,
                      "message": "Missing vehicle registration number or license plate number"
                    }
                  },
                  "missingState": {
                    "value": {
                      "success": false,
                      "message": "Missing 2 letter state code"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No data found for this plate/state combination.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Could not fetch data"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "502": {
            "description": "Upstream provider error. Safe to retry — the plate is not recorded as not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Could not fetch data",
                  "retryable": true
                }
              }
            }
          },
          "504": {
            "description": "Upstream provider timeout. Safe to retry — the plate is not recorded as not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Request timed out. Please try again.",
                  "retryable": true
                }
              }
            }
          }
        }
      }
    },
    "/v1/lien-theft": {
      "get": {
        "operationId": "getLienTheft",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Lien and Theft"
        ],
        "summary": "Lien & Theft records",
        "description": "Check a VIN for active lien and theft records (US).",
        "parameters": [
          {
            "$ref": "#/components/parameters/vin"
          }
        ],
        "responses": {
          "200": {
            "description": "Lien/theft data retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "timestamp": {
                      "type": "string"
                    },
                    "year": {
                      "type": "integer"
                    },
                    "make": {
                      "type": "string"
                    },
                    "model": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "events": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "trim_data": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "input": {
                    "vin": "2C3CDXFG1FH762860"
                  },
                  "timestamp": "2025-12-07T20:32:11.027Z",
                  "year": 2015,
                  "make": "DODGE",
                  "model": "Charger",
                  "type": "CAR",
                  "events": [
                    {
                      "event": "Recovered Theft",
                      "location": "OH",
                      "details_list": [
                        "The vehicle is reported to be an Recovered Theft."
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missingVin": {
                    "value": {
                      "success": false,
                      "message": "Missing vin (vehicle identification number)"
                    }
                  },
                  "wrongLength": {
                    "value": {
                      "success": false,
                      "message": "Wrong VIN length, must be 17 characters"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No lien or theft data found for this VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "No lien or theft data found for this VIN"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          }
        }
      }
    },
    "/v1/ownership/vin": {
      "get": {
        "operationId": "getOwnershipByVin",
        "tags": [
          "Ownership"
        ],
        "summary": "Ownership by VIN",
        "description": "Look up the registered owner(s) of a vehicle by VIN, along with vehicle attributes, vehicle history, and contact details. Enterprise only. Charged only when a match is found — billed per owner returned, not a flat rate per request.",
        "parameters": [
          {
            "$ref": "#/components/parameters/vin"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated subset of `demographics,emails,phones,vehicle_history`. Omit to get everything back by default — this only narrows the response, it doesn't change what's fetched or billed."
          }
        ],
        "responses": {
          "200": {
            "description": "Ownership data retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "vin": {
                      "type": "string"
                    },
                    "include": {
                      "type": "string"
                    },
                    "vehicle": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "owners": {
                      "type": "array",
                      "description": "One entry per person linked to this VIN, in order of recency — the most recent owner is first. Each entry is billed as a separate unit.",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "vin": "1FT8X3BT0BEA61538",
                  "vehicle": {
                    "make": "Ford",
                    "model": "F-350",
                    "year": 2011,
                    "manufacturer": "Ford Motor Company",
                    "fuel_type": "Diesel",
                    "drive_type": "4WD",
                    "transmission_type": "A",
                    "body_type": "PICKUP",
                    "body_subtype": "Crew Cab",
                    "doors": 4,
                    "engine_cylinders": 8,
                    "vehicle_class": "Mainstream",
                    "size": "Full-Size",
                    "vehicle_type": "TRUCK"
                  },
                  "owners": [
                    {
                      "record_id": "2074367570",
                      "first_name": "Mark",
                      "last_name": "Spence",
                      "age": "57",
                      "gender": "Male",
                      "address": {
                        "street": "910 Lucabaugh Mill Rd",
                        "city": "Westminster",
                        "state": "MD",
                        "zip": "21157"
                      },
                      "demographics": {
                        "marital_status": "Married",
                        "home_owner": "Home Owner",
                        "children_in_household": "",
                        "veteran_in_household": "",
                        "occupation": "President",
                        "income_range": "$100,000 - $149,999",
                        "net_worth_range": "$250,000 - $499,999",
                        "credit_range": "700 - 749"
                      },
                      "emails": [
                        {
                          "address": "mspence32@gmail.com",
                          "last_seen": "2026-03-08"
                        }
                      ],
                      "phones": [
                        {
                          "number": "4437890815",
                          "type": "mobile",
                          "dnc": true
                        }
                      ],
                      "vehicle_history": [
                        {
                          "make": "Ford",
                          "model": "Explorer",
                          "year": 2015,
                          "vin": "1FM5K8D84FGA12345"
                        }
                      ]
                    }
                  ],
                  "error": ""
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid VIN / inputs.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "examples": {
                  "invalidVin": {
                    "value": {
                      "success": false,
                      "vin": "1FT8X3BT0BEA6153",
                      "owners": [],
                      "error": "invalid_vin",
                      "message": "Wrong VIN length, must be 17 characters"
                    }
                  },
                  "invalidInputs": {
                    "value": {
                      "success": false,
                      "vin": "",
                      "owners": [],
                      "error": "invalid_inputs",
                      "message": "Missing vin (vehicle identification number)"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "API key does not have the ownership entitlement.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "vin": "1FT8X3BT0BEA61538",
                  "owners": [],
                  "error": "api_not_enabled",
                  "message": "The Ownership API is not enabled for this API key. To enable, please contact support."
                }
              }
            }
          },
          "404": {
            "description": "No match found — not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "vin": "1FT8X3BT0BEA61538",
                  "owners": [],
                  "error": "no_data",
                  "message": "No ownership record available for this VIN"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "503": {
            "description": "Ownership API temporarily disabled (kill-switch).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "The Ownership API is temporarily unavailable."
                }
              }
            }
          }
        }
      }
    },
    "/v1/ownership/person": {
      "get": {
        "operationId": "getOwnershipByPerson",
        "tags": [
          "Ownership"
        ],
        "summary": "Ownership by person",
        "description": "Resolve contact details for a specific person you already have a name and address for. Enterprise only. Charged only when a match is found — billed per match returned, not a flat rate per request.",
        "parameters": [
          {
            "name": "first_name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 50
            },
            "description": "First name (max 50 characters)."
          },
          {
            "name": "last_name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 50
            },
            "description": "Last name (max 50 characters)."
          },
          {
            "name": "address",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Street address only (no city/state), max 100 characters."
          },
          {
            "name": "zip",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "5-digit US ZIP, optionally ZIP+4."
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated subset of `demographics,emails,phones,vehicle_history`. Omit to get everything back by default — this only narrows the response, it doesn't change what's fetched or billed."
          }
        ],
        "responses": {
          "200": {
            "description": "Person match(es) retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "count": {
                      "type": "integer",
                      "description": "Number of matches found — this is exactly what's billed."
                    },
                    "matches": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "input": {
                    "first_name": "John",
                    "last_name": "Sample",
                    "address": "123 Example St",
                    "zip": "90210"
                  },
                  "count": 1,
                  "matches": [
                    {
                      "record_id": "2074367570",
                      "first_name": "John",
                      "last_name": "Sample",
                      "age": "45",
                      "gender": "Male",
                      "address": {
                        "street": "123 Example St",
                        "city": "Beverly Hills",
                        "state": "CA",
                        "zip": "90210"
                      },
                      "vin": "1FT8X3BT0BEA61538",
                      "emails": [
                        {
                          "address": "john.sample@gmail.com",
                          "last_seen": "2026-03-08"
                        },
                        {
                          "address": "jsample@msn.com",
                          "last_seen": ""
                        }
                      ],
                      "phones": [
                        {
                          "number": "3105551901",
                          "type": "",
                          "dnc": false
                        },
                        {
                          "number": "3105558018",
                          "type": "",
                          "dnc": false
                        }
                      ],
                      "demographics": {
                        "marital_status": "Married",
                        "home_owner": "Home Owner",
                        "children_in_household": "",
                        "veteran_in_household": "",
                        "occupation": "President",
                        "income_range": "$100,000 - $149,999",
                        "net_worth_range": "$250,000 - $499,999",
                        "credit_range": "700 - 749"
                      },
                      "vehicle_history": [
                        {
                          "make": "Ford",
                          "model": "F-350",
                          "year": 2011,
                          "vin": "1FT8X3BT0BEA61538"
                        }
                      ]
                    }
                  ],
                  "error": ""
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid inputs.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "count": 0,
                  "matches": [],
                  "error": "invalid_inputs",
                  "message": "Invalid inputs. first_name, last_name, address, and zip are required (address max 100 characters)"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "API key does not have the ownership entitlement.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "count": 0,
                  "matches": [],
                  "error": "api_not_enabled",
                  "message": "The Ownership API is not enabled for this API key. To enable, please contact support."
                }
              }
            }
          },
          "404": {
            "description": "No match found — not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "count": 0,
                  "matches": [],
                  "error": "no_data",
                  "message": "No ownership records found for this person"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "503": {
            "description": "Ownership API temporarily disabled (kill-switch).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "The Ownership API is temporarily unavailable."
                }
              }
            }
          }
        }
      }
    },
    "/v1/ownership/address": {
      "get": {
        "operationId": "getOwnershipByAddress",
        "tags": [
          "Ownership"
        ],
        "summary": "Ownership by address",
        "description": "Find everyone on file at a street address. Enterprise only. Charged only when a match is found — billed per resident returned, not a flat rate per request.",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 100
            },
            "description": "Street address only, max 100 characters."
          },
          {
            "name": "zip",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "5-digit US ZIP, optionally ZIP+4."
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated subset of `demographics,emails,phones,vehicle_history`. Omit to get everything back by default — this only narrows the response, it doesn't change what's fetched or billed."
          },
          {
            "name": "variant",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "vehicle_history",
                "compliance"
              ]
            },
            "description": "Legacy alias from before `include` existed — still accepted and echoed back, but no longer changes what's fetched or shown. Use `include` instead."
          }
        ],
        "responses": {
          "200": {
            "description": "Address residents retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "count": {
                      "type": "integer",
                      "description": "Number of matches found — this is exactly what's billed."
                    },
                    "matches": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "input": {
                    "address": "123 Example St",
                    "zip": "90210"
                  },
                  "count": 2,
                  "matches": [
                    {
                      "record_id": "2074367570",
                      "first_name": "John",
                      "last_name": "Sample",
                      "age": "45",
                      "gender": "Male",
                      "address": {
                        "street": "123 Example St",
                        "city": "Beverly Hills",
                        "state": "CA",
                        "zip": "90210"
                      },
                      "vin": "1FT8X3BT0BEA61538",
                      "emails": [
                        {
                          "address": "john.sample@gmail.com",
                          "last_seen": "2026-03-08"
                        }
                      ],
                      "phones": [
                        {
                          "number": "3105551901",
                          "type": "",
                          "dnc": false
                        }
                      ],
                      "demographics": {
                        "marital_status": "Married",
                        "home_owner": "Home Owner",
                        "children_in_household": "",
                        "veteran_in_household": "",
                        "occupation": "President",
                        "income_range": "$100,000 - $149,999",
                        "net_worth_range": "$250,000 - $499,999",
                        "credit_range": "700 - 749"
                      },
                      "vehicle_history": [
                        {
                          "make": "Ford",
                          "model": "F-350",
                          "year": 2011,
                          "vin": "1FT8X3BT0BEA61538"
                        }
                      ]
                    },
                    {
                      "record_id": "7304690614",
                      "first_name": "Jane",
                      "last_name": "Sample",
                      "age": "43",
                      "gender": "Female",
                      "address": {
                        "street": "123 Example St",
                        "city": "Beverly Hills",
                        "state": "CA",
                        "zip": "90210"
                      },
                      "vin": "",
                      "emails": [
                        {
                          "address": "jane.sample@yahoo.com",
                          "last_seen": ""
                        }
                      ],
                      "phones": [
                        {
                          "number": "3105558018",
                          "type": "",
                          "dnc": false
                        }
                      ],
                      "demographics": {
                        "marital_status": "",
                        "home_owner": "",
                        "children_in_household": "",
                        "veteran_in_household": "",
                        "occupation": "",
                        "income_range": "",
                        "net_worth_range": "",
                        "credit_range": ""
                      },
                      "vehicle_history": []
                    }
                  ],
                  "error": ""
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid inputs / variant.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "count": 0,
                  "matches": [],
                  "error": "invalid_inputs",
                  "message": "Invalid inputs. address and zip are required (address max 100 characters)"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "API key does not have the ownership entitlement.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "count": 0,
                  "matches": [],
                  "error": "api_not_enabled",
                  "message": "The Ownership API is not enabled for this API key. To enable, please contact support."
                }
              }
            }
          },
          "404": {
            "description": "No match found — not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "count": 0,
                  "matches": [],
                  "error": "no_data",
                  "message": "No ownership records found for this address"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "503": {
            "description": "Ownership API temporarily disabled (kill-switch).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "The Ownership API is temporarily unavailable."
                }
              }
            }
          }
        }
      }
    },
    "/v1/ownership/phone": {
      "get": {
        "operationId": "getOwnershipByPhone",
        "tags": [
          "Ownership"
        ],
        "summary": "Ownership by phone",
        "description": "Resolve people and contact details from a US phone number. Accepts one number or a comma-separated list (max 100). Enterprise only. Charged only when a match is found — billed per match returned, not a flat rate per request. Partial hits still 200 and bill only the matches.",
        "parameters": [
          {
            "name": "phone",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "One or more US 10-digit phone numbers, comma-separated. Formatting and a leading `+1` / `1` country code are stripped. Max 100 unique numbers.",
            "example": "3105551901"
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated subset of `demographics,emails,phones,vehicle_history`. Omit to get everything back by default — this only narrows the response, it doesn't change what's fetched or billed."
          }
        ],
        "responses": {
          "200": {
            "description": "Phone match(es) retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "input": {
                    "phones": [
                      "3105551901"
                    ]
                  },
                  "count": 1,
                  "matches": [
                    {
                      "queried_phone": "3105551901",
                      "record_id": "2074367570",
                      "first_name": "John",
                      "last_name": "Sample",
                      "age": "45",
                      "gender": "Male",
                      "address": {
                        "street": "123 Example St",
                        "city": "Beverly Hills",
                        "state": "CA",
                        "zip": "90210"
                      },
                      "vin": "1FT8X3BT0BEA61538",
                      "emails": [
                        {
                          "address": "john.sample@gmail.com",
                          "last_seen": "2026-03-08"
                        }
                      ],
                      "phones": [
                        {
                          "number": "3105551901",
                          "type": "",
                          "dnc": false
                        }
                      ],
                      "demographics": {
                        "marital_status": "Married",
                        "home_owner": "Home Owner",
                        "children_in_household": "",
                        "veteran_in_household": "",
                        "occupation": "President",
                        "income_range": "$100,000 - $149,999",
                        "net_worth_range": "$250,000 - $499,999",
                        "credit_range": "700 - 749"
                      },
                      "vehicle_history": [
                        {
                          "make": "Ford",
                          "model": "F-350",
                          "year": 2011,
                          "vin": "1FT8X3BT0BEA61538"
                        }
                      ]
                    }
                  ],
                  "error": ""
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid inputs.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "count": 0,
                  "matches": [],
                  "error": "invalid_inputs",
                  "message": "Invalid inputs. Provide one or more US 10-digit phone numbers (comma-separated on GET, or a phones array on POST)"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "API key does not have the ownership entitlement.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "count": 0,
                  "matches": [],
                  "error": "api_not_enabled",
                  "message": "The Ownership API is not enabled for this API key. To enable, please contact support."
                }
              }
            }
          },
          "404": {
            "description": "No match found — not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "count": 0,
                  "matches": [],
                  "error": "no_data",
                  "message": "No ownership records found for this phone"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "503": {
            "description": "Ownership API temporarily disabled (kill-switch).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "The Ownership API is temporarily unavailable."
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "postOwnershipByPhone",
        "tags": [
          "Ownership"
        ],
        "summary": "Ownership by phone (bulk)",
        "description": "Same lookup as GET `/v1/ownership/phone`, for up to 100 US numbers in one call. Pass `key` as a query parameter. Charged per match returned. Phones with no hit are omitted from `matches`; if none hit, the response is 404 `no_data` and nothing is billed.",
        "parameters": [
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated subset of `demographics,emails,phones,vehicle_history`. May also be sent in the JSON body."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "phones"
                ],
                "properties": {
                  "phones": {
                    "type": "array",
                    "maxItems": 100,
                    "items": {
                      "type": "string"
                    },
                    "description": "US 10-digit phone numbers. Formatting and a leading +1 are stripped."
                  },
                  "include": {
                    "type": "string"
                  }
                }
              },
              "example": {
                "phones": [
                  "3105551901",
                  "3105558018"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Phone match(es) retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid inputs.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "API key does not have the ownership entitlement.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "404": {
            "description": "No match found — not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "503": {
            "description": "Ownership API temporarily disabled (kill-switch).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/ownership/zip": {
      "get": {
        "operationId": "getOwnershipByZip",
        "tags": [
          "Ownership"
        ],
        "summary": "Ownership by ZIP",
        "description": "Search a ZIP code for people matching optional gender, age, and income filters. Paginated. Enterprise only. Charged only when records are returned — billed per record on the page, up to 100 per call at max `limit`, so usage can scale quickly.",
        "parameters": [
          {
            "name": "zip",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{5}$"
            },
            "description": "Exactly 5 digits.",
            "example": "00000"
          },
          {
            "name": "gender",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "M",
                "F",
                "m",
                "f"
              ]
            },
            "description": "`M` or `F`, case-insensitive."
          },
          {
            "name": "min_age",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Whole number. Optional — only forwarded upstream when provided."
          },
          {
            "name": "max_age",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Whole number. Optional — only forwarded upstream when provided."
          },
          {
            "name": "income",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Full income label, letter code, or a loose variant of either."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "1"
            },
            "description": "Page number (default 1)."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "15"
            },
            "description": "Page size (default 15, max 100). Each record returned is billed individually, so a full page at `limit=100` bills up to 100 units in one call."
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Comma-separated subset of `demographics,emails,phones,vehicle_history`. Omit it to get everything — same behavior as VIN/Person."
          },
          {
            "name": "variant",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Legacy, deprecated. `vehicle_history` is accepted and echoed back for backward compatibility, but no longer changes the response — use `include` instead."
          }
        ],
        "responses": {
          "200": {
            "description": "Matching ZIP records retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "zip": {
                      "type": "string"
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "page": {
                      "type": "integer"
                    },
                    "limit": {
                      "type": "integer"
                    },
                    "count": {
                      "type": "integer",
                      "description": "Number of records on this page — this is exactly what's billed for this call. Can be up to `limit` (max 100), so usage scales quickly on broad ZIP searches."
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "error": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "zip": "00000",
                  "filters": {},
                  "page": 1,
                  "limit": 15,
                  "count": 1,
                  "records": [
                    {
                      "record_id": "2104840276",
                      "first_name": "Victoria",
                      "last_name": "Rose",
                      "age": "34",
                      "gender": "F",
                      "address": {
                        "street": "141 Hardwood Ln SE",
                        "city": "Kalkaska",
                        "state": "MI",
                        "zip": "49646"
                      },
                      "vin": "1HGBH41JXMN109186",
                      "vehicle": {
                        "make": "Honda",
                        "model": "Civic",
                        "year": 2021
                      },
                      "emails": [
                        {
                          "address": "victoria.rose@example.com",
                          "last_seen": "2026-07-11"
                        },
                        {
                          "address": "vrose2@gmail.com",
                          "last_seen": ""
                        }
                      ],
                      "phones": [
                        {
                          "number": "2314567890",
                          "dnc": false
                        },
                        {
                          "number": "2319876543",
                          "dnc": true
                        }
                      ],
                      "demographics": {
                        "marital_status": "Married",
                        "home_owner": "Home Owner",
                        "children_in_household": "1",
                        "veteran_in_household": "",
                        "occupation": "Professional",
                        "income_range": "F. $50,000-$59,999",
                        "net_worth_range": "D. $50,000-$99,999",
                        "credit_range": "H. 700-749"
                      },
                      "vehicle_history": [
                        {
                          "make": "Honda",
                          "model": "Civic",
                          "year": 2021,
                          "vin": "1HGBH41JXMN109186"
                        }
                      ]
                    }
                  ],
                  "error": ""
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid ZIP / filters.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "examples": {
                  "invalidZip": {
                    "value": {
                      "success": false,
                      "zip": "",
                      "filters": {},
                      "page": 1,
                      "limit": 15,
                      "count": 0,
                      "records": [],
                      "error": "invalid_zip",
                      "message": "Invalid ZIP code. Must be a 5-digit US ZIP code"
                    }
                  },
                  "invalidAge": {
                    "value": {
                      "success": false,
                      "zip": "49646",
                      "filters": {},
                      "page": 1,
                      "limit": 15,
                      "count": 0,
                      "records": [],
                      "error": "invalid_age",
                      "message": "Invalid min_age or max_age. Must be a whole number"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "API key does not have the ownership entitlement.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "zip": "49646",
                  "filters": {},
                  "page": 1,
                  "limit": 15,
                  "count": 0,
                  "records": [],
                  "error": "api_not_enabled",
                  "message": "The Ownership API is not enabled for this API key. To enable, please contact support."
                }
              }
            }
          },
          "404": {
            "description": "No records match — not billed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                },
                "example": {
                  "success": false,
                  "zip": "49646",
                  "filters": {},
                  "page": 1,
                  "limit": 15,
                  "count": 0,
                  "records": [],
                  "error": "no_data",
                  "message": "No records available for this Ownership ZIP query"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "503": {
            "description": "Ownership API temporarily disabled (kill-switch).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "The Ownership API is temporarily unavailable."
                }
              }
            }
          }
        }
      }
    },
    "/images": {
      "get": {
        "operationId": "getVehicleImages",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Images"
        ],
        "summary": "Vehicle Images",
        "description": "Retrieve images of a vehicle by make, model and other filters.",
        "parameters": [
          {
            "name": "make",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The vehicle make."
          },
          {
            "name": "model",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The vehicle model."
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The vehicle year."
          },
          {
            "name": "trim",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The vehicle trim."
          },
          {
            "name": "color",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The vehicle color."
          },
          {
            "name": "transparent",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "description": "Prioritize images with transparent background. Defaults to `true`."
          },
          {
            "name": "angle",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "front",
                "side",
                "back"
              ]
            },
            "description": "The angle to show the car in."
          },
          {
            "name": "photoType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "interior",
                "exterior",
                "engine"
              ]
            },
            "description": "Request images of the interior, exterior or engine. Can only be used in conjunction with year, make, model and trim query params."
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "Small",
                "Medium",
                "Large",
                "Wallpaper",
                "All"
              ]
            },
            "description": "Request images of a given size. Defaults to all sizes."
          },
          {
            "name": "license",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "ModifyCommercially"
            },
            "description": "Filter images by usage-rights labels supplied by the hosting site. This does not grant a license; confirm each image's contextLink before reuse. Presets: Public (public domain only); Share (free to use or share, including NonCommercial and NoDerivatives); ShareCommercially (free to share commercially; excludes NonCommercial, includes NoDerivatives); Modify (free to modify; excludes NoDerivatives, includes NonCommercial); ModifyCommercially (free to modify commercially; public domain, attribution, and ShareAlike only). Or pass specific tokens as a comma-separated list: cc_publicdomain (public domain), cc_attribute (attribution; commercial use and modification, with credit when shared), cc_sharealike (ShareAlike; shared adaptations use the same license), cc_noncommercial (NonCommercial), cc_nonderived (NoDerivatives). Prefix a token with - to exclude it. At least one included token is required. Leave blank to return all images."
          },
          {
            "$ref": "#/components/parameters/format"
          }
        ],
        "responses": {
          "200": {
            "description": "Images retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "error": {
                      "type": "string"
                    },
                    "images": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "mime": {
                            "type": "string"
                          },
                          "link": {
                            "type": "string"
                          },
                          "contextLink": {
                            "type": "string"
                          },
                          "height": {
                            "type": "integer"
                          },
                          "width": {
                            "type": "integer"
                          },
                          "byteSize": {
                            "type": "integer"
                          },
                          "thumbnailLink": {
                            "type": "string"
                          },
                          "accentColor": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": true
                      }
                    },
                    "query": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "images": [
                    {
                      "mime": "image/png",
                      "link": "https://bit.ly/34tpueu",
                      "contextLink": "https://www.mariettatoyota.com/toyota-tacoma/",
                      "height": 272,
                      "width": 1000,
                      "byteSize": 56662,
                      "thumbnailLink": "https://bit.ly/34xewVr",
                      "accentColor": "B51617"
                    }
                  ],
                  "query": {
                    "year": "2018",
                    "make": "toyota",
                    "model": "tacoma",
                    "color": "blue",
                    "format": "json"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No images found for this query.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "No images found"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "description": "Missing make/model, or the image search failed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missingMakeModel": {
                    "value": {
                      "success": false,
                      "message": "Please supply a make and model. Visit https://docs.carsxe.com/docs for more information"
                    }
                  },
                  "cannotAccessInternet": {
                    "value": {
                      "success": false,
                      "message": "Cannot access the internet at this time"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/marketvalue": {
      "get": {
        "operationId": "getMarketValue",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Market Value"
        ],
        "summary": "Vehicle Market Value (v1)",
        "description": "Get the market value of a vehicle by VIN, including retail, trade-in and auction values.",
        "parameters": [
          {
            "$ref": "#/components/parameters/vin"
          },
          {
            "$ref": "#/components/parameters/format"
          }
        ],
        "responses": {
          "200": {
            "description": "Market value retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "vin": {
                      "type": "string"
                    },
                    "retail": {
                      "type": "string",
                      "description": "Retail price of the vehicle."
                    },
                    "tradeIn": {
                      "type": "string",
                      "description": "The trade in price of the vehicle."
                    },
                    "roughTradeIn": {
                      "type": "string"
                    },
                    "averageTradeIn": {
                      "type": "string"
                    },
                    "loanValue": {
                      "type": "string"
                    },
                    "msrp": {
                      "type": "string"
                    },
                    "tradeInValues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "date": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": true
                      }
                    },
                    "auctionValues": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "retail": "16075",
                  "tradeIn": "13575",
                  "roughTradeIn": "10250",
                  "averageTradeIn": "12050",
                  "loanValue": "12225",
                  "uid": 1172227,
                  "msrp": "52250",
                  "tradeInValues": [
                    {
                      "date": "2018-08-01T00:00:00.000Z",
                      "value": "13575"
                    },
                    {
                      "date": "2018-07-01T00:00:00.000Z",
                      "value": "13600"
                    }
                  ],
                  "auctionValues": {
                    "lowAuctionValue": 9050,
                    "averageAuctionValue": 11925,
                    "highAuctionValue": 14825,
                    "dateRange": "8/6/2018 - 8/12/2018"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Missing vin (vehicle identification number)"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No data found for this VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "No data found for this VIN"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/history": {
      "get": {
        "operationId": "getVehicleHistory",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "History"
        ],
        "summary": "Vehicle History",
        "description": "Retrieve a vehicle history report by VIN, including title, brand, junk/salvage and insurance records.",
        "parameters": [
          {
            "$ref": "#/components/parameters/vin"
          },
          {
            "$ref": "#/components/parameters/format"
          },
          {
            "name": "lienTheft",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "1"
              ]
            },
            "description": "Set to `true` or `1` to include a Lien & Theft check for the same VIN under `lienTheft`. Billed as one extra Lien & Theft call, only when lien & theft data is returned."
          }
        ],
        "responses": {
          "200": {
            "description": "History report retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "vin": {
                      "type": "string"
                    },
                    "junkAndSalvageInformation": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "insuranceInformation": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "brandsRecordCount": {
                      "type": "number"
                    },
                    "brandsInformation": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "vinChanged": {
                      "type": "boolean"
                    },
                    "currentTitleInformation": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "historyInformation": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "lienTheft": {
                      "type": "object",
                      "description": "Present only with `lienTheft=true`. On success, the `/v1/lien-theft` body without `input` and `timestamp`; otherwise `success: false` with a `message`.",
                      "properties": {
                        "success": {
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "year": {
                          "type": "integer"
                        },
                        "make": {
                          "type": "string"
                        },
                        "model": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        },
                        "events": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        },
                        "trim_data": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missingVin": {
                    "value": {
                      "success": false,
                      "message": "Missing vin (vehicle identification number)"
                    }
                  },
                  "wrongLength": {
                    "value": {
                      "success": false,
                      "message": "Wrong VIN length, must be 17 characters"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "This API key has been blocked for the History API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "This API key has been blocked, please contact support if you believe this is an error."
                }
              }
            }
          },
          "404": {
            "description": "No history data found for this VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "No data found for this VIN"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    },
    "/platerecognition": {
      "post": {
        "operationId": "recognizePlate",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Recognition"
        ],
        "summary": "Plate Image Recognition",
        "description": "Extract a license plate number from an image of a vehicle. Send a JSON body containing an `image_url` field with a URL to the image.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "image_url"
                ],
                "properties": {
                  "image_url": {
                    "type": "string",
                    "description": "URL to an image of a vehicle's license plate."
                  }
                }
              },
              "example": {
                "image_url": "https://example.com/car-photo.jpg"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Plate recognized.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "plate": {
                            "type": "string"
                          },
                          "box": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "region": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        },
                        "additionalProperties": true
                      }
                    },
                    "processing_time": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "message": "",
                  "results": [
                    {
                      "box": {
                        "xmin": 2045,
                        "ymin": 1400,
                        "xmax": 2732
                      },
                      "plate": "9djc652",
                      "region": {
                        "code": "us-ca",
                        "score": 0.849
                      }
                    }
                  ],
                  "processing_time": 117.822
                }
              }
            }
          },
          "400": {
            "description": "Missing image URL in the request body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Missing upload URL"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No plate could be recognized in the image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "No plates detected in image"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "description": "Plate recognition service error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Could not get information at this time"
                }
              }
            }
          }
        }
      }
    },
    "/v1/vinocr": {
      "post": {
        "operationId": "vinOcr",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Recognition"
        ],
        "summary": "VIN OCR",
        "description": "Extract a VIN from a photo. Send a JSON body containing an `image_url` field with either a URL to an image or a base64-encoded image string.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "image_url"
                ],
                "properties": {
                  "image_url": {
                    "type": "string",
                    "description": "URL to an image, or the base64 string of the image."
                  }
                }
              },
              "example": {
                "image_url": "https://example.com/vin-plate.jpg"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "VIN extracted from the image.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "vin": {
                      "type": "string"
                    },
                    "box": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "confidence": {
                      "type": "number"
                    },
                    "candidates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "vin": "JHLRD77874C026456",
                  "box": {
                    "xmin": 257,
                    "xmax": 1673,
                    "ymin": 635,
                    "ymax": 793
                  },
                  "confidence": 0.9834251403808594,
                  "candidates": [
                    {
                      "vin": "JHLRD77874C026456",
                      "confidence": 0.9834251403808594
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Missing API key, missing image, invalid image data, image processing failure, or no text detected.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missingKey": {
                    "value": {
                      "success": false,
                      "message": "Missing API key"
                    }
                  },
                  "missingImage": {
                    "value": {
                      "success": false,
                      "message": "Missing image data"
                    }
                  },
                  "invalidImage": {
                    "value": {
                      "success": false,
                      "message": "Invalid image data format. Must be a valid URL or base64 encoded string."
                    }
                  },
                  "noText": {
                    "value": {
                      "success": false,
                      "message": "No text detected in the image"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "User with this API key is not active.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "User with this API key is not active. To activate update your billing on https://carsxe.com/dashboard/billing"
                }
              }
            }
          },
          "404": {
            "description": "API key not found, or no valid VIN found in the image.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "userNotFound": {
                    "value": {
                      "success": false,
                      "message": "User with this API key was not found or the API key is disabled"
                    }
                  },
                  "noVin": {
                    "value": {
                      "success": false,
                      "message": "No valid VIN candidates found in the image"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          }
        }
      }
    },
    "/v1/ymm": {
      "get": {
        "operationId": "getYearMakeModel",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Year Make Model"
        ],
        "summary": "Year Make Model",
        "description": "Look up vehicle data by year, make and model (and optionally trim) without a VIN.",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The manufacturing year of the vehicle (numeric, between 1900 and the current model year plus one)."
          },
          {
            "name": "make",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The manufacturer of the vehicle (e.g., Toyota, Ford, BMW)."
          },
          {
            "name": "model",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The specific model of the vehicle (e.g., Camry, F-150, X5)."
          },
          {
            "name": "trim",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The vehicle trim (e.g., XLE, XSE)."
          },
          {
            "name": "exact_match",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "Accepts true/1 or false/0, case-insensitively; defaults to false. Other values, arrays and objects return HTTP 400. Strict mode requires exact make/model and supplied trim, ignoring case and extra whitespace but preserving punctuation. Trim must equal the complete short trim or complete style string. Without trim, selects the most popular eligible style, otherwise the first in stable name/ID order. No eligible match returns the existing HTTP 404. Fuzzy mode retains substring-filtered selection without an unrestricted most-popular fallback."
          },
          {
            "name": "allTrimOptions",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            },
            "description": "Return all trim options available for the year, make and model. Set to `1` to use. In strict mode, returns only eligible styles."
          }
        ],
        "responses": {
          "200": {
            "description": "Vehicle matched.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "match_exact": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "True when make/model and requested trim/style all match; false when any differs; null when no trim was supplied. For example, a fuzzy LT request returning LTZ reports false."
                    },
                    "bestMatch": {
                      "$ref": "#/components/schemas/YmmStyle"
                    },
                    "trimOptions": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/YmmStyle"
                      }
                    },
                    "input": {
                      "type": "object",
                      "properties": {
                        "exact_match": {
                          "type": "boolean",
                          "description": "Effective strict matching option."
                        }
                      },
                      "additionalProperties": true
                    },
                    "timestamp": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "bestMatch": {
                    "trim_id": "ymm_style_v1_31ec8f9ad439d778b2dcb4dc8c0cfdafdf4ddf869d03d377de63684a02ab2eab",
                    "make": "Toyota",
                    "model": "Camry",
                    "year": "2023",
                    "name": "XLE 4dr Sedan (3.5L 6cyl 8A)"
                  },
                  "trimOptions": [
                    {
                      "trim_id": "ymm_style_v1_31ec8f9ad439d778b2dcb4dc8c0cfdafdf4ddf869d03d377de63684a02ab2eab",
                      "make": "Toyota",
                      "model": "Camry",
                      "year": "2023",
                      "name": "XLE 4dr Sedan (3.5L 6cyl 8A)"
                    }
                  ],
                  "success": true,
                  "match_exact": true,
                  "input": {
                    "year": "2023",
                    "make": "Toyota",
                    "model": "Camry",
                    "trim": "XLE",
                    "exact_match": false,
                    "allTrimOptions": "1"
                  },
                  "timestamp": "2024-03-19T12:00:00.000Z"
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid year, make, model, or exact_match.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missing": {
                    "value": {
                      "success": false,
                      "message": "Missing year, make, or model"
                    }
                  },
                  "invalidExactMatch": {
                    "value": {
                      "success": false,
                      "message": "Invalid exact_match. Use true, false, 1, or 0."
                    }
                  },
                  "invalidYear": {
                    "value": {
                      "success": false,
                      "message": "Invalid year. Provide a numeric year between 1900 and the current model year plus one."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No vehicle matched the specified year, make and model, or the exact trim/style in strict mode.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "No vehicle found matching the specified year, make, and model. Try case-sensitive search such as \"2023 Toyota Camry\""
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "description": "Could not fetch data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Could not fetch data"
                }
              }
            }
          }
        }
      }
    },
    "/v1/ymm-options": {
      "get": {
        "operationId": "getYearMakeModelOptions",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Year Make Model"
        ],
        "summary": "Year Make Model Options",
        "description": "Populate Year, Make, Model, and Variant dropdown menus. Each response returns exactly one layer. `dimension` is optional — when omitted, the response shape is inferred from `make`/`model`/`year`. Billing: most calls cost 1 unit. `dimension=variants` with `year` + `make` (no `model`) costs 1 unit per model; the response includes `modelCount`. Required filters help you get better, more relevant results. `year`, `make`, and `model` can be combined for reversed lookups (e.g. years for a given make+model).",
        "parameters": [
          {
            "name": "dimension",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "years",
                "makes",
                "models",
                "trims",
                "variants"
              ]
            },
            "description": "Return exactly this array when required filters are present. If omitted, the response is inferred automatically from `make`/`model`/`year`."
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Filter to a specific manufacturing year. Required when filtering by `model` without `make`."
          },
          {
            "name": "make",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Filter to a specific manufacturer (e.g., Toyota, Ford, Lexus). Required for `dimension=models`."
          },
          {
            "name": "model",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Filter to a specific model (e.g., Camry, F-150, LX). Required for `dimension=trims` and for `dimension=variants` unless both `year` and `make` are set."
          },
          {
            "name": "trim",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Optional substring filter on trim names. Only applied when querying `dimension=trims` or `dimension=variants`."
          }
        ],
        "responses": {
          "200": {
            "description": "Distinct values for the requested (or inferred) dimension(s).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "message": {
                      "type": "string",
                      "description": "Optional guidance when the returned layer differs from the requested dimension or when explaining how to get better results."
                    },
                    "years": {
                      "type": "array",
                      "items": {
                        "type": "integer"
                      }
                    },
                    "makes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "models": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "trims": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "variants": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "modelCount": {
                      "type": "integer",
                      "description": "Present only for bulk variants (`dimension=variants` + year + make, no model). Number of distinct models, which is also the amount billed — except a zero-match query, which returns 0 but still bills a minimum of 1 unit."
                    }
                  },
                  "additionalProperties": true
                },
                "examples": {
                  "variants": {
                    "summary": "make+model given -> variants only",
                    "value": {
                      "success": true,
                      "input": {
                        "year": 2026,
                        "make": "Toyota",
                        "model": "Tacoma"
                      },
                      "variants": [
                        "Tacoma Limited",
                        "Tacoma SR",
                        "Tacoma SR5",
                        "Tacoma TRD Off-Road",
                        "Tacoma TRD PreRunner",
                        "Tacoma TRD Pro",
                        "Tacoma TRD Sport",
                        "Tacoma Trailhunter"
                      ]
                    }
                  },
                  "modelsForMakeOnly": {
                    "summary": "make given, no model -> models only (one layer per response)",
                    "value": {
                      "success": true,
                      "input": {
                        "year": 2026,
                        "make": "Toyota"
                      },
                      "models": [
                        "4Runner",
                        "Camry",
                        "Corolla",
                        "Tacoma",
                        "Tundra"
                      ]
                    }
                  },
                  "variantsForYearAndModel": {
                    "summary": "year+model given, no make -> variants only",
                    "value": {
                      "success": true,
                      "input": {
                        "year": 2026,
                        "model": "Tacoma"
                      },
                      "variants": [
                        "Tacoma Limited",
                        "Tacoma SR",
                        "Tacoma SR5",
                        "Tacoma TRD Pro"
                      ]
                    }
                  },
                  "variantsForYearAndMake": {
                    "summary": "dimension=variants with year+make -> billed per model (modelCount)",
                    "value": {
                      "success": true,
                      "input": {
                        "dimension": "variants",
                        "year": 2025,
                        "make": "Lexus"
                      },
                      "variants": [
                        "ES 250",
                        "ES 300h",
                        "GX 550 Premium",
                        "IS 300",
                        "LX 600 Premium",
                        "RX 350"
                      ],
                      "modelCount": 6
                    }
                  },
                  "variantsFallbackToModels": {
                    "summary": "dimension=variants with make only (no year) -> models + message",
                    "value": {
                      "success": true,
                      "input": {
                        "dimension": "variants",
                        "make": "Toyota"
                      },
                      "message": "To receive variants, include a model filter with this make. Models are returned instead.",
                      "models": [
                        "4Runner",
                        "Camry",
                        "Corolla",
                        "Tacoma",
                        "Tundra"
                      ]
                    }
                  },
                  "yearsForMakeModel": {
                    "summary": "Reversed combination: dimension=years filtered by make+model",
                    "value": {
                      "success": true,
                      "input": {
                        "dimension": "years",
                        "make": "Lexus",
                        "model": "TX"
                      },
                      "years": [
                        2026,
                        2025,
                        2024
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid dimension, invalid year, missing required filters, or model without make/year.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalidDimension": {
                    "value": {
                      "success": false,
                      "message": "Invalid dimension. Must be one of: years, makes, models, trims, variants."
                    }
                  },
                  "invalidYear": {
                    "value": {
                      "success": false,
                      "message": "Invalid year. Provide a numeric year between 1900 and the current model year plus one."
                    }
                  },
                  "missingMakeForModels": {
                    "value": {
                      "success": false,
                      "message": "A make filter is required to list models. Add make=... to get better results."
                    }
                  },
                  "missingMakeOrModelForTrimsVariants": {
                    "value": {
                      "success": false,
                      "message": "Trims and variants require a make or model filter. Add make=... or model=... to get better results."
                    }
                  },
                  "missingYearWhenModelWithoutMake": {
                    "value": {
                      "success": false,
                      "message": "When filtering by model without make, a year filter is required. Add year=... to get better results."
                    }
                  },
                  "missingMakeWhenModelAmbiguous": {
                    "value": {
                      "success": false,
                      "message": "This model name appears under multiple makes. Add make=... together with year and model to get better results."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "description": "Could not fetch data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Could not fetch data"
                }
              }
            }
          }
        }
      }
    },
    "/obdcodesdecoder": {
      "get": {
        "operationId": "decodeObdCode",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Year Make Model"
        ],
        "summary": "OBD Codes Decoder",
        "description": "Decode an OBD-II diagnostic trouble code (e.g. P0115).",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The OBD code."
          }
        ],
        "responses": {
          "200": {
            "description": "OBD code decoded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "diagnosis": {
                      "type": "string"
                    },
                    "date": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "diagnosis": "Engine Coolant Temperature Circuit Malfunction",
                  "date": "2020-07-04T21:44:39.767Z",
                  "code": "P0115"
                }
              }
            }
          },
          "400": {
            "description": "Missing OBD code.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Missing OBD code"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "The OBD code could not be found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Could not find code P9999"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          }
        }
      }
    },
    "/v2/platedecoder": {
      "get": {
        "operationId": "decodePlateV2",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Plate Decoder"
        ],
        "summary": "License Plate Decoder (v2)",
        "description": "Decode a license plate into vehicle data across 60+ supported\ncountries. `country` is an ISO 3166-1 alpha-2 code (optional for `US`).\n`state` is required for `AU` and `CA`. For `US`, set `country=US` and omit `state` to search every covered jurisdiction (including DC) and receive `{ results, count, billed_credits }` (1 credit per hit; 404 and 0 credits if nothing matches). Passing `state` keeps the single-object response. x402 payments still require `state`. For Pakistan (`PK`) a\n`district` is also required for the Khyber-Pakhtunkhwa province.\n\nFor Spain (`ES`), set `require_vin=true` to always include a VIN.\nAdditional charges apply: when `require_vin=true`, the request is\nbilled 2x and usage counts 2x.\n\nThe 200 response shape is country- and provider-specific. Common\nidentity fields such as `make`, `model`, `year` and `vin` may be\npresent when available, but each country can return different\nadditional fields. The schema intentionally allows additional\nproperties so clients can read country-specific fields without a spec\nrevision.\n",
        "parameters": [
          {
            "name": "plate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The vehicle registration number or license plate number."
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "ISO 3166-1 alpha-2 country code such as `AU` for Australia or `ZA` for South Africa. Optional for `US`."
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The two letter state code (US) such as `CA` or `NY`, an Australian state (e.g. `NSW`, `VIC`), or a Canadian province (e.g. `ON`). Required for `AU` and `CA`. Optional for `US`: omit it, with `country=US`, to fan out across every covered US jurisdiction. x402 payments still require `state`."
          },
          {
            "name": "district",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The district of the vehicle registration number. Required for Pakistan (`PK`) plates registered in the Khyber-Pakhtunkhwa province."
          },
          {
            "name": "require_vin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "description": "Only supported when `country=ES`. Set to `true` to always include a VIN. The request is billed 2x and usage counts 2x."
          }
        ],
        "responses": {
          "200": {
            "description": "Plate decoded.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "input": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "description": {
                      "type": "string"
                    },
                    "make": {
                      "type": "string"
                    },
                    "model": {
                      "type": "string"
                    },
                    "trim": {
                      "type": "string"
                    },
                    "vin": {
                      "type": "string"
                    },
                    "year": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "success": true,
                  "input": {
                    "plate": "7XER187",
                    "state": "CA",
                    "country": "US"
                  },
                  "description": "Kia Forte LX",
                  "make": "Kia",
                  "model": "Forte",
                  "trim": "LX",
                  "vin": "3KPFK4A78HE103497",
                  "style": "Sedan 4D",
                  "year": "2017",
                  "assembly": "Mexico",
                  "fuel_type": "Gasoline",
                  "color": "White",
                  "body_style": "Sedan",
                  "engine_size": "2.0L I4 MPI",
                  "drive_type": "FWD",
                  "transmission": "Automatic"
                }
              }
            }
          },
          "400": {
            "description": "Missing plate, or `require_vin` used with a country other than ES.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missingPlate": {
                    "value": {
                      "success": false,
                      "message": "Missing vehicle registration number or license plate number"
                    }
                  },
                  "requireVin": {
                    "value": {
                      "success": false,
                      "message": "The require_vin parameter is only supported when country=ES."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Invalid state/country/district, or no data found for this plate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "invalidState": {
                    "value": {
                      "success": false,
                      "message": "Invalid state or country code."
                    }
                  },
                  "invalidDistrict": {
                    "value": {
                      "success": false,
                      "message": "Invalid district"
                    }
                  },
                  "notFound": {
                    "value": {
                      "success": false,
                      "message": "Plate searches for this country have been disabled, or No data found for this plate"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          }
        }
      }
    },
    "/v2/marketvalue": {
      "get": {
        "operationId": "getMarketValueV2",
        "security": [
          {
            "ApiKeyQuery": []
          },
          {
            "X402Payment": []
          },
          {}
        ],
        "tags": [
          "Market Value"
        ],
        "summary": "Vehicle Market Value (v2)",
        "description": "Get detailed market values for a VIN, including wholesale, retail, trade-in, and auction values across condition tiers. The response includes mileage_list (odometer-band adjustments, with finadv and mileage_cat when present) and add_deduct_list (option/equipment adds and deducts). Pass mileage with condition to apply the matching band into mileage_* automatically; otherwise apply bands yourself. Optional state selects the regional adjustment.",
        "parameters": [
          {
            "$ref": "#/components/parameters/vin"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The US state of the vehicle to get the market value for."
          },
          {
            "name": "mileage",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            },
            "description": "The current odometer reading (miles in the US, kilometers in Canada). When passed with condition, the API selects the matching mileage_list band and writes it into mileage_*, then recalculates adjusted_*. Omit mileage to apply bands yourself."
          },
          {
            "name": "condition",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "excellent",
                "clean",
                "average",
                "rough"
              ]
            },
            "description": "Overall condition: excellent, clean, average, or rough. excellent maps to the xclean response tier. Used with mileage to apply the matching band."
          }
        ],
        "responses": {
          "200": {
            "description": "Market value retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "Full v2 market value payload. Passing mileage with condition applies the matching mileage_list band into mileage_* and recalculates adjusted_*. add_deduct_list describes option/equipment adjustments.",
                  "properties": {
                    "uid": {
                      "type": "string",
                      "description": "Valuation record identifier."
                    },
                    "input": {
                      "type": "object",
                      "description": "Echo of request inputs.",
                      "properties": {
                        "vin": {
                          "type": "string"
                        },
                        "state": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    },
                    "publish_date": {
                      "type": "string",
                      "description": "Provider valuation publish date."
                    },
                    "data_freq": {
                      "type": "string",
                      "description": "Refresh frequency. D means daily."
                    },
                    "state": {
                      "type": "string"
                    },
                    "country": {
                      "type": "string"
                    },
                    "uvc": {
                      "type": "string",
                      "description": "Unique vehicle code."
                    },
                    "group_num": {
                      "type": "string"
                    },
                    "model_year": {
                      "type": "string"
                    },
                    "make": {
                      "type": "string"
                    },
                    "model": {
                      "type": "string"
                    },
                    "series": {
                      "type": "string"
                    },
                    "style": {
                      "type": "string"
                    },
                    "mileage_cat": {
                      "type": "string"
                    },
                    "class_code": {
                      "type": "string"
                    },
                    "class_name": {
                      "type": "string"
                    },
                    "description_score": {
                      "type": "string"
                    },
                    "first_values_flag": {
                      "type": "boolean"
                    },
                    "risk_score": {
                      "type": "string"
                    },
                    "whole_xclean": {
                      "type": "object",
                      "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "whole_clean": {
                      "type": "object",
                      "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "whole_avg": {
                      "type": "object",
                      "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "whole_rough": {
                      "type": "object",
                      "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "retail_xclean": {
                      "type": "object",
                      "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "retail_clean": {
                      "type": "object",
                      "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "retail_avg": {
                      "type": "object",
                      "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "retail_rough": {
                      "type": "object",
                      "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "trade_in_clean": {
                      "type": "object",
                      "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "trade_in_avg": {
                      "type": "object",
                      "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "trade_in_rough": {
                      "type": "object",
                      "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
                      "additionalProperties": {
                        "type": "number"
                      }
                    },
                    "region2": {
                      "type": "number",
                      "description": "Raw regional adjustment for region 2."
                    },
                    "region3": {
                      "type": "number",
                      "description": "Raw regional adjustment for region 3."
                    },
                    "region4": {
                      "type": "number",
                      "description": "Raw regional adjustment for region 4."
                    },
                    "region5": {
                      "type": "number",
                      "description": "Raw regional adjustment for region 5."
                    },
                    "region6": {
                      "type": "number",
                      "description": "Raw regional adjustment for region 6."
                    },
                    "msrp": {
                      "type": "number"
                    },
                    "retail_equipped": {
                      "type": "number"
                    },
                    "price_includes": {
                      "type": "string"
                    },
                    "wheel_base": {
                      "type": "number"
                    },
                    "tire_size": {
                      "type": "string"
                    },
                    "gvw": {
                      "type": "number"
                    },
                    "payload_cap": {
                      "type": "number"
                    },
                    "seat_cap": {
                      "type": "string"
                    },
                    "seats": {
                      "type": "string"
                    },
                    "fuel_type": {
                      "type": "string"
                    },
                    "fuel_cap": {
                      "type": "string"
                    },
                    "fuel_delivery": {
                      "type": "string"
                    },
                    "hwy_mpg": {
                      "type": "string"
                    },
                    "city_mpg": {
                      "type": "string"
                    },
                    "engine_description": {
                      "type": "string"
                    },
                    "cylinders": {
                      "type": "string"
                    },
                    "engine_displacement": {
                      "type": "string"
                    },
                    "engine_turbocharged": {
                      "type": "string"
                    },
                    "base_hp": {
                      "type": "string"
                    },
                    "taxable_hp": {
                      "type": "number"
                    },
                    "torque": {
                      "type": "string"
                    },
                    "oil_cap": {
                      "type": "string"
                    },
                    "transmission": {
                      "type": "string"
                    },
                    "drivetrain": {
                      "type": "string"
                    },
                    "num_gears": {
                      "type": "string"
                    },
                    "ext_doors": {
                      "type": "string"
                    },
                    "navigation": {
                      "type": "string"
                    },
                    "airbags": {
                      "type": "string",
                      "description": "Airbag configuration."
                    },
                    "anti_corrosion_warranty": {
                      "type": "string",
                      "description": "Corrosion / rust warranty."
                    },
                    "basic_warranty": {
                      "type": "string"
                    },
                    "road_assist_warranty": {
                      "type": "string",
                      "description": "Roadside-assistance warranty."
                    },
                    "add_deduct_list": {
                      "type": "array",
                      "description": "Option and equipment adds and deducts. These adjust market value based on options the vehicle may have.",
                      "items": {
                        "type": "object",
                        "description": "One option or equipment add/deduct row.",
                        "properties": {
                          "uoc": {
                            "type": "string",
                            "description": "Unique option code."
                          },
                          "name": {
                            "type": "string",
                            "description": "Option or equipment name."
                          },
                          "xclean": {
                            "type": "number"
                          },
                          "clean": {
                            "type": "number"
                          },
                          "avg": {
                            "type": "number"
                          },
                          "rough": {
                            "type": "number"
                          },
                          "auto": {
                            "type": "string",
                            "description": "Whether the option is treated as automatic / default (Y or N)."
                          },
                          "resid12": {
                            "type": "number"
                          },
                          "resid24": {
                            "type": "number"
                          },
                          "resid30": {
                            "type": "number"
                          },
                          "resid36": {
                            "type": "number"
                          },
                          "resid42": {
                            "type": "number"
                          },
                          "resid48": {
                            "type": "number"
                          },
                          "resid60": {
                            "type": "number"
                          },
                          "resid72": {
                            "type": "number"
                          }
                        },
                        "additionalProperties": true
                      }
                    },
                    "model_number_list": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "mileage_list": {
                      "type": "array",
                      "description": "Odometer-band table. If mileage is passed with condition, the API applies the matching band to mileage_* automatically.",
                      "items": {
                        "type": "object",
                        "description": "One odometer band. Live responses include many rows covering 1 through 999999.",
                        "properties": {
                          "model_year": {
                            "type": "string",
                            "description": "Model year this band applies to."
                          },
                          "range_begin": {
                            "type": "number",
                            "description": "Inclusive start of the odometer band."
                          },
                          "range_end": {
                            "type": "number",
                            "description": "Inclusive end of the odometer band."
                          },
                          "xclean": {
                            "type": "number",
                            "description": "Adjustment for extra-clean / excellent condition."
                          },
                          "clean": {
                            "type": "number",
                            "description": "Adjustment for clean condition."
                          },
                          "avg": {
                            "type": "number",
                            "description": "Adjustment for average condition."
                          },
                          "rough": {
                            "type": "number",
                            "description": "Adjustment for rough condition."
                          },
                          "finadv": {
                            "type": "number",
                            "description": "Finance-advance adjustment for this band, when supplied."
                          },
                          "mileage_cat": {
                            "type": "string",
                            "description": "Mileage category for the band. Matches top-level mileage_cat."
                          }
                        },
                        "additionalProperties": true
                      }
                    },
                    "retail": {
                      "type": "number",
                      "description": "Typical retail asking value (base_retail_avg)."
                    },
                    "trade_in": {
                      "type": "number",
                      "description": "Typical clean trade-in value (base_trade_in_clean)."
                    },
                    "rough_trade_in": {
                      "type": "number",
                      "description": "Rough-condition trade-in value."
                    },
                    "average_trade_in": {
                      "type": "number",
                      "description": "Average-condition trade-in value."
                    },
                    "loan_value": {
                      "type": "number",
                      "description": "Typical loan / finance value (base_retail_clean)."
                    },
                    "trade_in_values": {
                      "type": "array",
                      "items": {},
                      "description": "Historical trade-in series when supplied. Often empty on v2."
                    },
                    "auction_values": {
                      "type": "object",
                      "properties": {
                        "low_auction_value": {
                          "type": "number"
                        },
                        "average_auction_value": {
                          "type": "number"
                        },
                        "high_auction_value": {
                          "type": "number"
                        },
                        "date_range": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": true
                    }
                  },
                  "additionalProperties": true
                },
                "example": {
                  "uid": "6AA32D4C",
                  "input": {
                    "vin": "3KPFK4A78HE103497",
                    "state": "CA",
                    "country": "US"
                  },
                  "publish_date": "8/29/2025",
                  "data_freq": "D",
                  "state": "CA",
                  "country": "US",
                  "uvc": "2017485075",
                  "group_num": "4163",
                  "model_year": "2017",
                  "make": "Kia",
                  "model": "Forte",
                  "series": "LX",
                  "style": "4D Sedan",
                  "mileage_cat": "B",
                  "class_code": "A",
                  "class_name": "Small Car",
                  "description_score": "",
                  "first_values_flag": false,
                  "risk_score": "",
                  "whole_xclean": {
                    "base_whole_xclean": 5925,
                    "mileage_whole_xclean": 0,
                    "add_deduct_whole_xclean": 0,
                    "regional_whole_xclean": 25,
                    "adjusted_whole_xclean": 5950
                  },
                  "whole_clean": {
                    "base_whole_clean": 4950,
                    "mileage_whole_clean": 0,
                    "add_deduct_whole_clean": 0,
                    "regional_whole_clean": 25,
                    "adjusted_whole_clean": 4975
                  },
                  "whole_avg": {
                    "base_whole_avg": 3600,
                    "mileage_whole_avg": 0,
                    "add_deduct_whole_avg": 0,
                    "regional_whole_avg": 25,
                    "adjusted_whole_avg": 3625
                  },
                  "whole_rough": {
                    "base_whole_rough": 2300,
                    "mileage_whole_rough": 0,
                    "add_deduct_whole_rough": 0,
                    "regional_whole_rough": 25,
                    "adjusted_whole_rough": 2325
                  },
                  "retail_xclean": {
                    "base_retail_xclean": 9750,
                    "mileage_retail_xclean": 0,
                    "add_deduct_retail_xclean": 0,
                    "regional_retail_xclean": 25,
                    "adjusted_retail_xclean": 9775
                  },
                  "retail_clean": {
                    "base_retail_clean": 8575,
                    "mileage_retail_clean": 0,
                    "add_deduct_retail_clean": 0,
                    "regional_retail_clean": 25,
                    "adjusted_retail_clean": 8600
                  },
                  "retail_avg": {
                    "base_retail_avg": 6550,
                    "mileage_retail_avg": 0,
                    "add_deduct_retail_avg": 0,
                    "regional_retail_avg": 25,
                    "adjusted_retail_avg": 6575
                  },
                  "retail_rough": {
                    "base_retail_rough": 5050,
                    "mileage_retail_rough": 0,
                    "add_deduct_retail_rough": 0,
                    "regional_retail_rough": 25,
                    "adjusted_retail_rough": 5075
                  },
                  "trade_in_clean": {
                    "base_trade_in_clean": 5055,
                    "mileage_trade_in_clean": 0,
                    "add_deduct_trade_in_clean": 0,
                    "regional_trade_in_clean": 25,
                    "adjusted_trade_in_clean": 5080
                  },
                  "trade_in_avg": {
                    "base_trade_in_avg": 3705,
                    "mileage_trade_in_avg": 0,
                    "add_deduct_trade_in_avg": 0,
                    "regional_trade_in_avg": 25,
                    "adjusted_trade_in_avg": 3730
                  },
                  "trade_in_rough": {
                    "base_trade_in_rough": 2205,
                    "mileage_trade_in_rough": 0,
                    "add_deduct_trade_in_rough": 0,
                    "regional_trade_in_rough": 25,
                    "adjusted_trade_in_rough": 2230
                  },
                  "region2": 50,
                  "region3": 25,
                  "region4": -25,
                  "region5": 0,
                  "region6": 0,
                  "msrp": 17600,
                  "retail_equipped": 18820,
                  "price_includes": "AC",
                  "wheel_base": 106.3,
                  "tire_size": "195/65R15",
                  "seat_cap": "5",
                  "fuel_type": "Gas",
                  "fuel_cap": "13.2",
                  "fuel_delivery": "MPI",
                  "hwy_mpg": "38",
                  "city_mpg": "29",
                  "engine_description": "2.0L I-4 MPI DOHC ",
                  "cylinders": "4",
                  "engine_displacement": "2.0L",
                  "base_hp": "147 @ 6200",
                  "taxable_hp": 16.7,
                  "torque": "132 @ 4500",
                  "drivetrain": "FWD",
                  "num_gears": "6",
                  "ext_doors": "4",
                  "airbags": "Side Curtain",
                  "anti_corrosion_warranty": "5-year/100,000-mile, Limited",
                  "basic_warranty": "5-year/60,000-mile, Limited",
                  "road_assist_warranty": "5-year/60,000-mile",
                  "add_deduct_list": [
                    {
                      "uoc": "05",
                      "name": "w/o Auto Trans",
                      "xclean": -550,
                      "clean": -550,
                      "avg": -550,
                      "rough": -550,
                      "auto": "N",
                      "resid12": 0,
                      "resid24": 0,
                      "resid30": 0,
                      "resid36": 0,
                      "resid42": 0,
                      "resid48": 0,
                      "resid60": 0,
                      "resid72": 0
                    }
                  ],
                  "model_number_list": [
                    "C3421",
                    "C3422"
                  ],
                  "mileage_list": [
                    {
                      "model_year": "2017",
                      "range_begin": 1,
                      "range_end": 8000,
                      "xclean": 2800,
                      "clean": 3000,
                      "avg": 3200,
                      "rough": 3200,
                      "finadv": 2900,
                      "mileage_cat": "B"
                    },
                    {
                      "model_year": "2017",
                      "range_begin": 110001,
                      "range_end": 113000,
                      "xclean": -250,
                      "clean": -125,
                      "avg": 0,
                      "rough": 125,
                      "finadv": -175,
                      "mileage_cat": "B"
                    },
                    {
                      "model_year": "2017",
                      "range_begin": 214001,
                      "range_end": 999999,
                      "xclean": -3325,
                      "clean": -3325,
                      "avg": -3325,
                      "rough": -3225,
                      "finadv": -3325,
                      "mileage_cat": "B"
                    }
                  ],
                  "retail": 6550,
                  "trade_in": 5055,
                  "rough_trade_in": 2205,
                  "average_trade_in": 3705,
                  "loan_value": 8575,
                  "trade_in_values": [],
                  "auction_values": {
                    "low_auction_value": 2300,
                    "average_auction_value": 3600,
                    "high_auction_value": 4950,
                    "date_range": "8/29/2025"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing/invalid VIN, mileage or condition.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "missingVin": {
                    "value": {
                      "success": false,
                      "message": "Missing vin (vehicle identification number)"
                    }
                  },
                  "wrongLength": {
                    "value": {
                      "success": false,
                      "message": "Wrong VIN length, must be 17 characters"
                    }
                  },
                  "invalidCondition": {
                    "value": {
                      "success": false,
                      "message": "Invalid condition. Available conditions: excellent, clean, average, rough"
                    }
                  },
                  "invalidMileage": {
                    "value": {
                      "success": false,
                      "message": "Invalid mileage. Must be a number"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No data found for this VIN.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "No data found for this VIN"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "description": "Upstream market value provider is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "Cannot access the internet at this time"
                }
              }
            }
          }
        }
      }
    },
    "/v1/vehicle/collateral-score": {
      "post": {
        "operationId": "getCollateralScore",
        "tags": [
          "Collateral Score"
        ],
        "summary": "Collateral Score",
        "description": "Single-call collateral risk assessment for lenders. Returns market values adjusted for mileage and the ZIP's region, a depreciation forecast at 12/24/36/48 months (and at loan maturity), the vehicle's depreciation percentile within its vehicle class, title brand and odometer flags, open stop-sale/do-not-drive recalls, and a risk tier (A–D) with a suggested maximum LTV. Every value traces to a source: anything the score could not see is `null` and listed in `data_gaps`, and forecasts past the depreciation curve's data are `null`, never extrapolated. Available on request; contact sales to enable it. The example VIN `3TMKB5FNXRM012539` is free and never counted.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CollateralScoreRequest"
              },
              "example": {
                "vin": "3TMKB5FNXRM012539",
                "mileage": 42000,
                "zip": "20878",
                "loan_term_months": 48
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Vehicle scored.",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "const": true
                        },
                        "input": {
                          "$ref": "#/components/schemas/CollateralScoreRequest"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/CollateralScoreResult"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid VIN, mileage, ZIP, or loan term.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "zip is required and must be a 5-digit US ZIP code"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No market value exists for this VIN, so it cannot be scored, or the API is not enabled for this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "noMarketValue": {
                    "value": {
                      "success": false,
                      "message": "No market value is available for this VIN, so it cannot be scored"
                    }
                  },
                  "disabled": {
                    "value": {
                      "success": false,
                      "message": "The collateral-score API is not enabled for this account."
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "502": {
            "description": "The market value or title history lookup failed. When the body has `retryable: true` (and the response a `Retry-After` header), the same request may succeed later. Without the field, retrying the same request will not help. A recalls outage never fails the score: it is reported in `data_gaps` instead.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying. Sent only with `retryable: true`.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollateralScoreUpstreamError"
                }
              }
            }
          },
          "503": {
            "description": "The collateral score is temporarily switched off for all accounts. Nothing was charged; retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "The collateral-score API is temporarily unavailable. Please try again later."
                }
              }
            }
          },
          "504": {
            "description": "The market value or title history provider timed out. Retry after `Retry-After`.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollateralScoreUpstreamError"
                },
                "example": {
                  "success": false,
                  "message": "Request timed out. Please try again.",
                  "retryable": true
                }
              }
            }
          }
        }
      }
    },
    "/v1/vehicle/collateral-score/batch": {
      "post": {
        "operationId": "submitCollateralScoreBatch",
        "tags": [
          "Collateral Score"
        ],
        "summary": "Collateral Score Batch (submit)",
        "description": "Score up to 500 vehicles asynchronously, e.g. to re-score a loan book. Returns 202 with a `batch_id`; poll `GET` with it, or pass `webhook_url` to receive `collateral_score.batch.completed`. The example VIN `3TMKB5FNXRM012539` is free and never counted. Usage is checked up front for every other vehicle, so a 429 means the remaining quota is smaller than that count. Plans that allow overage are billed one Collateral Score call per vehicle that scores, when the batch completes. Hard-capped and prepaid plans are charged for every vehicle except the example VIN at submit, before the 202. One batch runs per account at a time.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "vehicles"
                ],
                "properties": {
                  "vehicles": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 500,
                    "items": {
                      "$ref": "#/components/schemas/CollateralScoreRequest"
                    }
                  },
                  "webhook_url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public HTTPS URL. Redirects are not followed."
                  }
                }
              }
            }
          }
        },
        "callbacks": {
          "batchCompleted": {
            "{$request.body#/webhook_url}": {
              "post": {
                "summary": "Batch completed",
                "requestBody": {
                  "content": {
                    "application/json": {
                      "schema": {
                        "type": "object",
                        "properties": {
                          "event": {
                            "type": "string",
                            "const": "collateral_score.batch.completed"
                          },
                          "batch_id": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "const": "completed"
                          },
                          "total": {
                            "type": "integer"
                          },
                          "succeeded": {
                            "type": "integer"
                          },
                          "failed": {
                            "type": "integer"
                          },
                          "timestamp": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                },
                "responses": {
                  "200": {
                    "description": "Any 2xx acknowledges the webhook."
                  },
                  "4XX": {
                    "description": "Logged as a failed delivery. Webhooks are sent once and not retried; poll the batch with `GET` instead."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Batch accepted and processing.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "batch_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "processing",
                        "completed"
                      ]
                    },
                    "total": {
                      "type": "integer"
                    }
                  }
                },
                "example": {
                  "success": true,
                  "batch_id": "8k2Yw1QeR4tTnVb7XcZa",
                  "status": "processing",
                  "total": 500
                }
              }
            }
          },
          "400": {
            "description": "Invalid `vehicles` (the first bad vehicle is named by index) or `webhook_url`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "vehicles[3]: zip is required and must be a 5-digit US ZIP code"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "The collateral-score API is not enabled for this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "The collateral-score API is not enabled for this account."
                }
              }
            }
          },
          "409": {
            "description": "Another batch for this account is still processing. One batch runs per account at a time.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/UsageLimitExceeded"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          },
          "503": {
            "description": "The collateral score is temporarily switched off for all accounts. Nothing was charged; retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "success": false,
                  "message": "The collateral-score API is temporarily unavailable. Please try again later."
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "getCollateralScoreBatch",
        "tags": [
          "Collateral Score"
        ],
        "summary": "Collateral Score Batch (status and results)",
        "description": "Batch progress, and every result in submission order once `status` is `completed`.",
        "parameters": [
          {
            "name": "batch_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Batch status.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    },
                    "batch_id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "processing",
                        "completed"
                      ]
                    },
                    "total": {
                      "type": "integer"
                    },
                    "processed": {
                      "type": "integer"
                    },
                    "succeeded": {
                      "type": "integer"
                    },
                    "failed": {
                      "type": "integer"
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "completed_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "results": {
                      "type": "array",
                      "description": "Present once `status` is `completed`.",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "index": {
                                "type": "integer"
                              },
                              "success": {
                                "type": "boolean",
                                "const": true
                              },
                              "result": {
                                "$ref": "#/components/schemas/CollateralScoreResult"
                              }
                            }
                          },
                          {
                            "type": "object",
                            "properties": {
                              "index": {
                                "type": "integer"
                              },
                              "success": {
                                "type": "boolean",
                                "const": false
                              },
                              "vin": {
                                "type": "string"
                              },
                              "status": {
                                "type": "integer",
                                "description": "The HTTP status the single-VIN endpoint would have returned for this vehicle, or 503 when the vehicle could not be queued for scoring (resubmit it)."
                              },
                              "message": {
                                "type": "string"
                              },
                              "retryable": {
                                "type": "boolean",
                                "const": true,
                                "description": "Present only when resubmitting this vehicle may succeed: its lookup failed with a retryable 502/504, or it could not be queued (503). Absent on every other failure."
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing `batch_id`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "The collateral-score API is not enabled for this account, or no batch with this id exists for this account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "disabled": {
                    "value": {
                      "success": false,
                      "message": "The collateral-score API is not enabled for this account."
                    }
                  },
                  "missing": {
                    "value": {
                      "success": false,
                      "message": "No collateral score batch found with this batch_id"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "key",
        "description": "Your CarsXE API key, passed as the `key` query parameter."
      },
      "X402Payment": {
        "type": "apiKey",
        "in": "header",
        "name": "PAYMENT-SIGNATURE",
        "description": "x402 payment proof for supported operations. Start without a CarsXE key to receive HTTP 402 payment requirements, then retry the identical request with the payment header produced by your x402 client. CarsXE also accepts the legacy X-PAYMENT header."
      },
      "RecallsBatchToken": {
        "type": "apiKey",
        "in": "header",
        "name": "X-CarsXE-Batch-Token",
        "description": "Batch-scoped token returned by an x402 Recalls Batch submission."
      }
    },
    "parameters": {
      "vin": {
        "name": "vin",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "minLength": 17,
          "maxLength": 17,
          "default": "WBAFR7C57CC811956",
          "example": "WBAFR7C57CC811956"
        },
        "description": "The 17 character long vehicle identification number.",
        "example": "WBAFR7C57CC811956"
      },
      "format": {
        "name": "format",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "json",
            "xml"
          ],
          "default": "json"
        },
        "description": "The format of the response. One of `json` or `xml`."
      },
      "batchId": {
        "name": "batchId",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string"
        },
        "description": "The batch ID returned from the submit endpoint."
      },
      "recallsBatchToken": {
        "name": "X-CarsXE-Batch-Token",
        "in": "header",
        "required": false,
        "schema": {
          "type": "string"
        },
        "description": "Batch-scoped token returned by an x402 submit call. Use this instead of the key query parameter for status, results, and download requests."
      }
    },
    "schemas": {
      "YmmStyle": {
        "type": "object",
        "required": [
          "trim_id"
        ],
        "properties": {
          "trim_id": {
            "type": "string",
            "description": "Opaque identifier for the complete year/make/model/style combination. Stable across requests and sources for the same normalized values. Material changes to those values produce a different ID; changes to pricing or features do not. Identity guarantees apply to complete records. Response-only; not accepted as a request parameter.",
            "example": "ymm_style_v1_31ec8f9ad439d778b2dcb4dc8c0cfdafdf4ddf869d03d377de63684a02ab2eab"
          },
          "name": {
            "type": "string",
            "description": "Full style description, including trim, body, and engine details."
          }
        },
        "additionalProperties": true
      },
      "CollateralScoreUpstreamError": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "type": "object",
            "properties": {
              "retryable": {
                "type": "boolean",
                "const": true,
                "description": "Present on an upstream outage or timeout; the same request may succeed later."
              }
            }
          }
        ]
      },
      "CollateralScoreRequest": {
        "type": "object",
        "required": [
          "vin",
          "mileage",
          "zip"
        ],
        "properties": {
          "vin": {
            "type": "string",
            "minLength": 17,
            "maxLength": 17
          },
          "mileage": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000,
            "description": "Current odometer reading in miles."
          },
          "zip": {
            "type": "string",
            "pattern": "^[0-9]{5}$",
            "description": "US ZIP; its state sets the regional value adjustment."
          },
          "loan_term_months": {
            "type": "integer",
            "minimum": 1,
            "maximum": 96,
            "description": "Adds `depreciation_forecast.at_loan_maturity`."
          }
        }
      },
      "CollateralForecastPoint": {
        "type": [
          "object",
          "null"
        ],
        "description": "`null` when the depreciation curve has no data that far out.",
        "properties": {
          "months": {
            "type": "integer"
          },
          "projected_value": {
            "type": "integer"
          },
          "depreciation_pct": {
            "type": "number"
          }
        }
      },
      "CollateralScoreResult": {
        "type": "object",
        "properties": {
          "vin": {
            "type": "string"
          },
          "vehicle": {
            "type": "object",
            "properties": {
              "year": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "make": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "model": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "trim": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "current_values": {
            "type": "object",
            "description": "Average-condition market values, adjusted for mileage and region.",
            "properties": {
              "retail": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "wholesale": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "trade_in": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "msrp": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "confidence": {
                "type": "string",
                "enum": [
                  "high",
                  "medium",
                  "low"
                ]
              },
              "publish_date": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "depreciation_forecast": {
            "type": "object",
            "description": "`current_values.retail` projected by the ratio between today's and the horizon's points on a depreciation curve rebuilt monthly from market values (median retail ÷ MSRP by vehicle age).",
            "properties": {
              "12_month": {
                "$ref": "#/components/schemas/CollateralForecastPoint"
              },
              "24_month": {
                "$ref": "#/components/schemas/CollateralForecastPoint"
              },
              "36_month": {
                "$ref": "#/components/schemas/CollateralForecastPoint"
              },
              "48_month": {
                "$ref": "#/components/schemas/CollateralForecastPoint"
              },
              "at_loan_maturity": {
                "$ref": "#/components/schemas/CollateralForecastPoint"
              },
              "base_value": {
                "type": "string",
                "const": "retail"
              },
              "curve_source": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "model",
                  "segment",
                  null
                ],
                "description": "`model` is this make/model's own curve; `segment` is its vehicle class average."
              },
              "curve_key": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "curve_min_sample_size": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Fewest valuations behind any curve point the projections used."
              },
              "curve_refreshed_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            }
          },
          "depreciation_velocity": {
            "type": "object",
            "properties": {
              "percentile_vs_segment": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Share of models in the segment that lose value more slowly; lower is better."
              },
              "segment": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "segment_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "annual_depreciation_pct": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "peer_count": {
                "type": "integer"
              },
              "interpretation": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "risk_flags": {
            "type": "object",
            "description": "`null` means the source was unavailable, not that the vehicle is clean.",
            "properties": {
              "salvage_title": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "flood_damage": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "lemon_law_buyback": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "odometer_anomaly": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "other_title_brands": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "string"
                }
              },
              "total_loss_reported": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "open_recalls_high_severity": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "accident_count": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "Always `null` for now; accident history is not yet available."
              },
              "total_flags": {
                "type": "integer"
              }
            }
          },
          "lending_recommendation": {
            "type": "object",
            "properties": {
              "risk_tier": {
                "type": "string",
                "enum": [
                  "A",
                  "B",
                  "C",
                  "D"
                ]
              },
              "suggested_max_ltv": {
                "type": "integer",
                "enum": [
                  120,
                  110,
                  95,
                  80
                ]
              },
              "manual_review_recommended": {
                "type": "boolean"
              },
              "reasons": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "rationale": {
                "type": "string"
              },
              "confidence": {
                "type": "string",
                "enum": [
                  "high",
                  "medium",
                  "low"
                ]
              }
            }
          },
          "data_gaps": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "accident_history",
                "vehicle_history",
                "recalls",
                "depreciation_curve",
                "segment_percentile"
              ]
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "const": false
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "message"
        ],
        "additionalProperties": true
      },
      "UsageLimitError": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "type": "object",
            "properties": {
              "usage": {
                "type": "object",
                "properties": {
                  "current": {
                    "type": "number",
                    "description": "Current usage in the billing period."
                  },
                  "limit": {
                    "type": "number",
                    "description": "Included quota for the billing period."
                  },
                  "remaining": {
                    "type": "number",
                    "description": "Remaining included quota."
                  }
                }
              }
            }
          }
        ]
      },
      "SuccessEnvelope": {
        "type": "object",
        "description": "Generic success envelope. Endpoint-specific payload fields appear at the top level alongside these common fields.",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "input": {
            "type": "object",
            "description": "Echo of the input parameters specified by the query.",
            "additionalProperties": true
          },
          "timestamp": {
            "type": "string"
          }
        },
        "additionalProperties": true
      },
      "SpecsResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/SuccessEnvelope"
          },
          {
            "type": "object",
            "properties": {
              "attributes": {
                "type": "object",
                "description": "A map of specifications about the VIN (year, make, model, trim, style, type, size, category, made_in, doors, fuel_type, engine, transmission, drivetrain, dimensions, pricing and more).",
                "additionalProperties": true
              },
              "colors": {
                "type": "array",
                "description": "Available color options based on the vehicle's year, make and model.",
                "items": {
                  "type": "object",
                  "properties": {
                    "category": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              },
              "equipment": {
                "type": "object",
                "description": "Equipment details based on the vehicle's year, make and model.",
                "additionalProperties": true
              },
              "warranties": {
                "type": "array",
                "description": "Standard vehicle warranties by type, miles and months.",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "miles": {
                      "type": "string"
                    },
                    "months": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": true
                }
              },
              "deepdata": {
                "type": "object",
                "description": "More information on the vehicle from the deep data search (present when `deepdata=1`).",
                "additionalProperties": true
              }
            }
          }
        ]
      },
      "MarketValueMileageBand": {
        "type": "object",
        "description": "One odometer band. Live responses include many rows covering 1 through 999999.",
        "properties": {
          "model_year": {
            "type": "string",
            "description": "Model year this band applies to."
          },
          "range_begin": {
            "type": "number",
            "description": "Inclusive start of the odometer band."
          },
          "range_end": {
            "type": "number",
            "description": "Inclusive end of the odometer band."
          },
          "xclean": {
            "type": "number",
            "description": "Adjustment for extra-clean / excellent condition."
          },
          "clean": {
            "type": "number",
            "description": "Adjustment for clean condition."
          },
          "avg": {
            "type": "number",
            "description": "Adjustment for average condition."
          },
          "rough": {
            "type": "number",
            "description": "Adjustment for rough condition."
          },
          "finadv": {
            "type": "number",
            "description": "Finance-advance adjustment for this band, when supplied."
          },
          "mileage_cat": {
            "type": "string",
            "description": "Mileage category for the band. Matches top-level mileage_cat."
          }
        },
        "additionalProperties": true
      },
      "MarketValueAddDeductItem": {
        "type": "object",
        "description": "One option or equipment add/deduct row.",
        "properties": {
          "uoc": {
            "type": "string",
            "description": "Unique option code."
          },
          "name": {
            "type": "string",
            "description": "Option or equipment name."
          },
          "xclean": {
            "type": "number"
          },
          "clean": {
            "type": "number"
          },
          "avg": {
            "type": "number"
          },
          "rough": {
            "type": "number"
          },
          "auto": {
            "type": "string",
            "description": "Whether the option is treated as automatic / default (Y or N)."
          },
          "resid12": {
            "type": "number"
          },
          "resid24": {
            "type": "number"
          },
          "resid30": {
            "type": "number"
          },
          "resid36": {
            "type": "number"
          },
          "resid42": {
            "type": "number"
          },
          "resid48": {
            "type": "number"
          },
          "resid60": {
            "type": "number"
          },
          "resid72": {
            "type": "number"
          }
        },
        "additionalProperties": true
      },
      "MarketValueV2Response": {
        "type": "object",
        "description": "Full v2 market value payload. Passing mileage with condition applies the matching mileage_list band into mileage_* and recalculates adjusted_*. add_deduct_list describes option/equipment adjustments.",
        "properties": {
          "uid": {
            "type": "string",
            "description": "Valuation record identifier."
          },
          "input": {
            "type": "object",
            "description": "Echo of request inputs.",
            "properties": {
              "vin": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "country": {
                "type": "string"
              }
            },
            "additionalProperties": true
          },
          "publish_date": {
            "type": "string",
            "description": "Provider valuation publish date."
          },
          "data_freq": {
            "type": "string",
            "description": "Refresh frequency. D means daily."
          },
          "state": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "uvc": {
            "type": "string",
            "description": "Unique vehicle code."
          },
          "group_num": {
            "type": "string"
          },
          "model_year": {
            "type": "string"
          },
          "make": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "series": {
            "type": "string"
          },
          "style": {
            "type": "string"
          },
          "mileage_cat": {
            "type": "string"
          },
          "class_code": {
            "type": "string"
          },
          "class_name": {
            "type": "string"
          },
          "description_score": {
            "type": "string"
          },
          "first_values_flag": {
            "type": "boolean"
          },
          "risk_score": {
            "type": "string"
          },
          "whole_xclean": {
            "type": "object",
            "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
            "additionalProperties": {
              "type": "number"
            }
          },
          "whole_clean": {
            "type": "object",
            "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
            "additionalProperties": {
              "type": "number"
            }
          },
          "whole_avg": {
            "type": "object",
            "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
            "additionalProperties": {
              "type": "number"
            }
          },
          "whole_rough": {
            "type": "object",
            "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
            "additionalProperties": {
              "type": "number"
            }
          },
          "retail_xclean": {
            "type": "object",
            "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
            "additionalProperties": {
              "type": "number"
            }
          },
          "retail_clean": {
            "type": "object",
            "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
            "additionalProperties": {
              "type": "number"
            }
          },
          "retail_avg": {
            "type": "object",
            "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
            "additionalProperties": {
              "type": "number"
            }
          },
          "retail_rough": {
            "type": "object",
            "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
            "additionalProperties": {
              "type": "number"
            }
          },
          "trade_in_clean": {
            "type": "object",
            "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
            "additionalProperties": {
              "type": "number"
            }
          },
          "trade_in_avg": {
            "type": "object",
            "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
            "additionalProperties": {
              "type": "number"
            }
          },
          "trade_in_rough": {
            "type": "object",
            "description": "Condition valuation object. Nested keys are prefixed with the family and condition, for example base_retail_clean, mileage_retail_clean, add_deduct_retail_clean, regional_retail_clean, and adjusted_retail_clean. adjusted_* = base_* + mileage_* + add_deduct_* + regional_*.",
            "additionalProperties": {
              "type": "number"
            }
          },
          "region2": {
            "type": "number",
            "description": "Raw regional adjustment for region 2."
          },
          "region3": {
            "type": "number",
            "description": "Raw regional adjustment for region 3."
          },
          "region4": {
            "type": "number",
            "description": "Raw regional adjustment for region 4."
          },
          "region5": {
            "type": "number",
            "description": "Raw regional adjustment for region 5."
          },
          "region6": {
            "type": "number",
            "description": "Raw regional adjustment for region 6."
          },
          "msrp": {
            "type": "number"
          },
          "retail_equipped": {
            "type": "number"
          },
          "price_includes": {
            "type": "string"
          },
          "wheel_base": {
            "type": "number"
          },
          "tire_size": {
            "type": "string"
          },
          "gvw": {
            "type": "number"
          },
          "payload_cap": {
            "type": "number"
          },
          "seat_cap": {
            "type": "string"
          },
          "seats": {
            "type": "string"
          },
          "fuel_type": {
            "type": "string"
          },
          "fuel_cap": {
            "type": "string"
          },
          "fuel_delivery": {
            "type": "string"
          },
          "hwy_mpg": {
            "type": "string"
          },
          "city_mpg": {
            "type": "string"
          },
          "engine_description": {
            "type": "string"
          },
          "cylinders": {
            "type": "string"
          },
          "engine_displacement": {
            "type": "string"
          },
          "engine_turbocharged": {
            "type": "string"
          },
          "base_hp": {
            "type": "string"
          },
          "taxable_hp": {
            "type": "number"
          },
          "torque": {
            "type": "string"
          },
          "oil_cap": {
            "type": "string"
          },
          "transmission": {
            "type": "string"
          },
          "drivetrain": {
            "type": "string"
          },
          "num_gears": {
            "type": "string"
          },
          "ext_doors": {
            "type": "string"
          },
          "navigation": {
            "type": "string"
          },
          "airbags": {
            "type": "string",
            "description": "Airbag configuration."
          },
          "anti_corrosion_warranty": {
            "type": "string",
            "description": "Corrosion / rust warranty."
          },
          "basic_warranty": {
            "type": "string"
          },
          "road_assist_warranty": {
            "type": "string",
            "description": "Roadside-assistance warranty."
          },
          "add_deduct_list": {
            "type": "array",
            "description": "Option and equipment adds and deducts. These adjust market value based on options the vehicle may have.",
            "items": {
              "type": "object",
              "description": "One option or equipment add/deduct row.",
              "properties": {
                "uoc": {
                  "type": "string",
                  "description": "Unique option code."
                },
                "name": {
                  "type": "string",
                  "description": "Option or equipment name."
                },
                "xclean": {
                  "type": "number"
                },
                "clean": {
                  "type": "number"
                },
                "avg": {
                  "type": "number"
                },
                "rough": {
                  "type": "number"
                },
                "auto": {
                  "type": "string",
                  "description": "Whether the option is treated as automatic / default (Y or N)."
                },
                "resid12": {
                  "type": "number"
                },
                "resid24": {
                  "type": "number"
                },
                "resid30": {
                  "type": "number"
                },
                "resid36": {
                  "type": "number"
                },
                "resid42": {
                  "type": "number"
                },
                "resid48": {
                  "type": "number"
                },
                "resid60": {
                  "type": "number"
                },
                "resid72": {
                  "type": "number"
                }
              },
              "additionalProperties": true
            }
          },
          "model_number_list": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "mileage_list": {
            "type": "array",
            "description": "Odometer-band table. If mileage is passed with condition, the API applies the matching band to mileage_* automatically.",
            "items": {
              "type": "object",
              "description": "One odometer band. Live responses include many rows covering 1 through 999999.",
              "properties": {
                "model_year": {
                  "type": "string",
                  "description": "Model year this band applies to."
                },
                "range_begin": {
                  "type": "number",
                  "description": "Inclusive start of the odometer band."
                },
                "range_end": {
                  "type": "number",
                  "description": "Inclusive end of the odometer band."
                },
                "xclean": {
                  "type": "number",
                  "description": "Adjustment for extra-clean / excellent condition."
                },
                "clean": {
                  "type": "number",
                  "description": "Adjustment for clean condition."
                },
                "avg": {
                  "type": "number",
                  "description": "Adjustment for average condition."
                },
                "rough": {
                  "type": "number",
                  "description": "Adjustment for rough condition."
                },
                "finadv": {
                  "type": "number",
                  "description": "Finance-advance adjustment for this band, when supplied."
                },
                "mileage_cat": {
                  "type": "string",
                  "description": "Mileage category for the band. Matches top-level mileage_cat."
                }
              },
              "additionalProperties": true
            }
          },
          "retail": {
            "type": "number",
            "description": "Typical retail asking value (base_retail_avg)."
          },
          "trade_in": {
            "type": "number",
            "description": "Typical clean trade-in value (base_trade_in_clean)."
          },
          "rough_trade_in": {
            "type": "number",
            "description": "Rough-condition trade-in value."
          },
          "average_trade_in": {
            "type": "number",
            "description": "Average-condition trade-in value."
          },
          "loan_value": {
            "type": "number",
            "description": "Typical loan / finance value (base_retail_clean)."
          },
          "trade_in_values": {
            "type": "array",
            "items": {},
            "description": "Historical trade-in series when supplied. Often empty on v2."
          },
          "auction_values": {
            "type": "object",
            "properties": {
              "low_auction_value": {
                "type": "number"
              },
              "average_auction_value": {
                "type": "number"
              },
              "high_auction_value": {
                "type": "number"
              },
              "date_range": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing API key, unknown/disabled API key, or inactive account.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "missingKey": {
                "value": {
                  "success": false,
                  "message": "Missing API key"
                }
              },
              "userNotFound": {
                "value": {
                  "success": false,
                  "message": "User with this API key was not found or the API key is disabled"
                }
              },
              "userNotActive": {
                "value": {
                  "success": false,
                  "message": "User with this API key is not active. To activate update your billing on https://carsxe.com/dashboard/billing"
                }
              }
            }
          }
        }
      },
      "UsageLimitExceeded": {
        "description": "API usage limit exceeded for the current billing period.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/UsageLimitError"
            },
            "example": {
              "success": false,
              "message": "API usage limit exceeded",
              "usage": {
                "current": 1000,
                "limit": 1000,
                "remaining": 0
              }
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal server error.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "example": {
              "success": false,
              "message": "Internal server error"
            }
          }
        }
      }
    }
  }
}