{"openapi":"3.1.0","info":{"title":"UK Vehicle Data API","version":"1.0.0","description":"DVLA vehicle enquiry and DVSA MOT history in one call, with an estimated ULEZ and clean air zone status, mileage checks and MOT and tax expiry webhooks. Contains public sector information licensed under the Open Government Licence v3.0.","contact":{"name":"Tyche Labs","email":"info@tychelabs.net","url":"https://api.tychelabs.net"},"termsOfService":"https://api.tychelabs.net/terms","license":{"name":"Contains public sector information licensed under the Open Government Licence v3.0","url":"https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/"},"x-logo":{"url":"https://api.tychelabs.net/logo.png"}},"externalDocs":{"description":"Guides, error codes and sandbox values","url":"https://api.tychelabs.net/docs"},"servers":[{"url":"https://api.tychelabs.net","description":"Production (use a tl_test_ key for sandbox data)"}],"security":[{"apiKey":[]}],"tags":[{"name":"Vehicles","description":"DVLA vehicle record and DVSA MOT history"},{"name":"Watches","description":"Webhooks before MOT or tax expiry, or when a company changes"},{"name":"Account","description":"Plan and usage"}],"paths":{"/v1/vehicles/{registration}":{"get":{"summary":"Look up a vehicle by registration","operationId":"getVehicle","tags":["Vehicles"],"parameters":[{"name":"registration","in":"path","required":true,"schema":{"type":"string"},"example":"AB12CDE","description":"UK registration. Spaces and case are ignored."}],"responses":{"200":{"description":"Vehicle record","headers":{"x-usage-limit":{"description":"Calls included in your plan this month","schema":{"type":"integer"}},"x-usage-remaining":{"description":"Calls left this month","schema":{"type":"integer"}},"x-request-id":{"description":"Quote this if you contact support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Vehicle"},"meta":{"$ref":"#/components/schemas/Meta"}}},"examples":{"petrol":{"summary":"2017 petrol hatchback, MOT due in 17 days (sandbox AB12CDE)","value":{"data":{"registration":"AB12CDE","make":"FORD","model":"FIESTA","colour":"BLUE","fuelType":"PETROL","engineCapacityCc":998,"co2EmissionsGPerKm":104,"euroStatus":null,"realDrivingEmissions":null,"yearOfManufacture":2017,"firstRegistered":"2017-09","firstDvlaRegistered":null,"typeApproval":"M1","wheelplan":"2 AXLE RIGID BODY","revenueWeightKg":1645,"markedForExport":false,"markedAsScrapped":null,"vehicleStatus":null,"lastV5CIssued":"2022-08-17","hasOutstandingRecall":"No","tax":{"status":"Taxed","dueDate":"2027-06-01","daysUntilDue":191,"additionalRateEndDate":null},"mot":{"status":"Valid","expiryDate":"2026-12-09","daysUntilExpiry":17,"firstDueDate":null,"testCount":4,"latestResult":"pass","tests":[{"date":"2025-12-02","result":"pass","expiryDate":"2026-12-09","odometer":{"value":61250,"unit":"mi"},"testNumber":"200000000004","defects":[{"type":"advisory","text":"Front Brake pad(s) wearing thin (1.1.13 (a) (ii))","dangerous":false}],"counts":{"advisory":1}},{"date":"2024-12-05","result":"pass","expiryDate":"2025-12-09","odometer":{"value":52991,"unit":"mi"},"testNumber":"200000000002","defects":[],"counts":{}},{"date":"2024-12-03","result":"fail","expiryDate":null,"odometer":{"value":52980,"unit":"mi"},"testNumber":"200000000003","defects":[{"type":"major","text":"Nearside Headlamp aim too high (4.1.2 (a) (i))","dangerous":false}],"counts":{"major":1}},{"date":"2023-12-01","result":"pass","expiryDate":"2024-12-09","odometer":{"value":44010,"unit":"mi"},"testNumber":"200000000001","defects":[],"counts":{}}]},"mileage":{"latest":{"date":"2025-12-02","miles":61250,"recorded":{"value":61250,"unit":"mi"}},"readings":[{"date":"2023-12-01","miles":44010,"recorded":{"value":44010,"unit":"mi"}},{"date":"2024-12-03","miles":52980,"recorded":{"value":52980,"unit":"mi"}},{"date":"2024-12-05","miles":52991,"recorded":{"value":52991,"unit":"mi"}},{"date":"2025-12-02","miles":61250,"recorded":{"value":61250,"unit":"mi"}}],"averageMilesPerYear":8596,"anomalies":[],"anomalyFound":false},"cleanAirZone":{"estimate":true,"appliesTo":["London ULEZ","Class C and D clean air zones in England","Scottish low emission zones"],"note":"Estimate from published Euro-standard rules and the vehicle’s first registration date. Always confirm with the official TfL or GOV.UK vehicle checker before relying on it.","result":"likely_compliant","basis":"registration_date","euroStandard":null,"requiredEuro":4,"firstRegistered":"2017-09"}},"meta":{"requestId":"req_3f9a1c2b7d","sandbox":true,"sources":{"dvla":{"status":"ok"},"mot":{"status":"ok"}},"attribution":"Contains public sector information licensed under the Open Government Licence v3.0. Not affiliated with or endorsed by the DVLA, DVSA, Companies House, HMRC or the Charity Commission."}}},"dieselClocked":{"summary":"2012 diesel with a mileage reading that went down (sandbox TL12OLD)","value":{"data":{"registration":"TL12OLD","make":"VAUXHALL","model":"INSIGNIA","colour":"SILVER","fuelType":"DIESEL","engineCapacityCc":1956,"co2EmissionsGPerKm":139,"euroStatus":"EURO 5","realDrivingEmissions":null,"yearOfManufacture":2012,"firstRegistered":"2012-03","firstDvlaRegistered":null,"typeApproval":"M1","wheelplan":"2 AXLE RIGID BODY","revenueWeightKg":null,"markedForExport":false,"markedAsScrapped":null,"vehicleStatus":null,"lastV5CIssued":"2023-05-02","hasOutstandingRecall":"Unknown","tax":{"status":"Taxed","dueDate":"2027-03-01","daysUntilDue":99,"additionalRateEndDate":null},"mot":{"status":"Valid","expiryDate":"2027-01-14","daysUntilExpiry":53,"firstDueDate":null,"testCount":3,"latestResult":"pass","tests":[{"date":"2026-01-15","result":"pass","expiryDate":"2027-01-14","odometer":{"value":118400,"unit":"mi"},"testNumber":"100000000003","defects":[{"type":"advisory","text":"Nearside Front Tyre worn close to legal limit","dangerous":false}],"counts":{"advisory":1}},{"date":"2025-01-10","result":"pass","expiryDate":"2026-01-14","odometer":{"value":96100,"unit":"mi"},"testNumber":"100000000002","defects":[],"counts":{}},{"date":"2024-01-12","result":"pass","expiryDate":"2025-01-14","odometer":{"value":104250,"unit":"mi"},"testNumber":"100000000001","defects":[],"counts":{}}]},"mileage":{"latest":{"date":"2026-01-15","miles":118400,"recorded":{"value":118400,"unit":"mi"}},"readings":[{"date":"2024-01-12","miles":104250,"recorded":{"value":104250,"unit":"mi"}},{"date":"2025-01-10","miles":96100,"recorded":{"value":96100,"unit":"mi"}},{"date":"2026-01-15","miles":118400,"recorded":{"value":118400,"unit":"mi"}}],"averageMilesPerYear":7036,"anomalies":[{"type":"reading_went_down","from":{"date":"2024-01-12","miles":104250,"recorded":{"value":104250,"unit":"mi"}},"to":{"date":"2025-01-10","miles":96100,"recorded":{"value":96100,"unit":"mi"}},"differenceMiles":8150,"detail":"Recorded mileage fell by 8150 miles. Possible clocking, a replaced instrument cluster or a typing error at the test."}],"anomalyFound":true},"cleanAirZone":{"estimate":true,"appliesTo":["London ULEZ","Class C and D clean air zones in England","Scottish low emission zones"],"note":"Estimate from published Euro-standard rules and the vehicle’s first registration date. Always confirm with the official TfL or GOV.UK vehicle checker before relying on it.","result":"likely_non_compliant","basis":"euro_status","euroStandard":5,"requiredEuro":6}},"meta":{"requestId":"req_3f9a1c2b7d","sandbox":true,"sources":{"dvla":{"status":"ok"},"mot":{"status":"ok"}},"attribution":"Contains public sector information licensed under the Open Government Licence v3.0. Not affiliated with or endorsed by the DVLA, DVSA, Companies House, HMRC or the Charity Commission."}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_registration":{"value":{"error":{"code":"invalid_registration","message":"Send a UK registration, for example AB12CDE."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"No vehicle found (billed). Sandbox: ZZ99ZZZ.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"vehicle_not_found","message":"No vehicle found for that registration."},"meta":{"requestId":"req_3f9a1c2b7d","sandbox":true,"attribution":"Contains public sector information licensed under the Open Government Licence v3.0. Not affiliated with or endorsed by the DVLA, DVSA, Companies House, HMRC or the Charity Commission."}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/vehicles/bulk":{"post":{"summary":"Look up up to 25 registrations","operationId":"bulkVehicles","tags":["Vehicles"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"registrations":{"type":"array","items":{"type":"string"},"maxItems":25}},"required":["registrations"]},"example":{"registrations":["AB12CDE","TL12OLD"]}}}},"responses":{"200":{"description":"One result per registration (each has data or error). Each found vehicle counts as one lookup.","headers":{"x-usage-limit":{"description":"Calls included in your plan this month","schema":{"type":"integer"}},"x-usage-remaining":{"description":"Calls left this month","schema":{"type":"integer"}},"x-request-id":{"description":"Quote this if you contact support","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"registration":{"type":"string"},"data":{"$ref":"#/components/schemas/Vehicle"},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"meta":{"$ref":"#/components/schemas/Meta"}}},"examples":{"two":{"summary":"Two registrations (shortened)","value":{"data":[{"registration":"AB12CDE","data":{"registration":"AB12CDE","make":"FORD","model":"FIESTA","mot":{"status":"Valid","expiryDate":"2026-12-09"}}},{"registration":"TL12OLD","data":{"registration":"TL12OLD","make":"VAUXHALL","model":"INSIGNIA","mot":{"status":"Valid","expiryDate":"2027-01-14"}}}],"meta":{"requestId":"req_3f9a1c2b7d","billed":0,"sandbox":true}}}}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"too_many":{"value":{"error":{"code":"too_many","message":"Up to 25 registrations per bulk call."},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_body":{"value":{"error":{"code":"invalid_body","message":"Send {\"registrations\": [\"AB12CDE\", ...]} with up to 25 registrations."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"429":{"description":"Rate limit or monthly quota reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"quota_exceeded":{"value":{"error":{"code":"quota_exceeded","message":"You have used all 100 lookups in your Free plan this month. Request a paid plan at https://api.tychelabs.net/pricing"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"rate_limited":{"value":{"error":{"code":"rate_limited","message":"Slow down: your plan allows 2 requests a second."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}},"503":{"description":"Upstream unavailable and no cached copy (not billed). Retry after the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"upstream_unavailable":{"value":{"error":{"code":"upstream_unavailable","message":"Vehicle sources are unavailable right now. Please retry shortly; calls that fail like this are not counted."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}},"headers":{"retry-after":{"description":"Seconds to wait","schema":{"type":"integer"}}}}}}},"/v1/watches":{"get":{"summary":"List your watches","operationId":"listWatches","tags":["Watches"],"responses":{"200":{"description":"Watches"},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}}}},"post":{"summary":"Create a watch (webhook alerts)","operationId":"createWatch","tags":["Watches"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"registration":{"type":"string"},"companyNumber":{"type":"string"},"url":{"type":"string","format":"uri","description":"HTTPS endpoint that receives signed POSTs"},"daysBefore":{"type":"array","items":{"type":"integer"},"description":"Vehicle only. Default [30, 7, 1]."}},"required":["url"]},"example":{"registration":"AB12CDE","url":"https://example.com/hooks/tyche","daysBefore":[30,7,1]}}}},"responses":{"201":{"description":"Created"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_body":{"value":{"error":{"code":"invalid_body","message":"Send {\"registration\": \"AB12CDE\", \"url\": \"https://...\"} or {\"companyNumber\": \"16716814\", \"url\": \"https://...\"}."},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_target":{"value":{"error":{"code":"invalid_target","message":"That registration or company number is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}},"live_key_required":{"value":{"error":{"code":"live_key_required","message":"Watches need a live key. Use POST /v1/watches/test-event with a test key to try a delivery."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"403":{"description":"Plan watch limit reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"watch_limit":{"value":{"error":{"code":"watch_limit","message":"Your Free plan allows 5 vehicle watches."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"409":{"description":"Already watching","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"watch_exists":{"value":{"error":{"code":"watch_exists","message":"You already watch that target with that URL."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}}}}},"/v1/watches/{id}":{"delete":{"summary":"Delete a watch","operationId":"deleteWatch","tags":["Watches"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted"},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"not_found":{"value":{"error":{"code":"not_found","message":"No watch with that id."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}}}}},"/v1/watches/test-event":{"post":{"summary":"Send a sample signed event to a URL","operationId":"testEvent","tags":["Watches"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"type":{"type":"string"}}}}}},"responses":{"200":{"description":"Sent. data.ok is true when your endpoint answered 2xx, false otherwise (with status or error)."},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"invalid_url":{"value":{"error":{"code":"invalid_url","message":"The webhook URL must be HTTPS and resolve to a public address."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}},"403":{"description":"The public docs key cannot send test deliveries: use your own key."},"429":{"description":"Up to 6 test deliveries a minute."}}}},"/v1/account":{"get":{"summary":"Your plan, usage this month and webhook secret","operationId":"getAccount","tags":["Account"],"responses":{"200":{"description":"Account"},"401":{"description":"Missing or invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"examples":{"missing_api_key":{"value":{"error":{"code":"missing_api_key","message":"Send your key in the x-api-key header. Get a free key at https://api.tychelabs.net/signup"},"meta":{"requestId":"req_3f9a1c2b7d"}}},"invalid_api_key":{"value":{"error":{"code":"invalid_api_key","message":"That API key is not valid."},"meta":{"requestId":"req_3f9a1c2b7d"}}}}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"Your tl_live_ or tl_test_ key. Free keys at https://api.tychelabs.net/signup. A tl_test_ key returns sandbox data and is never billed."}},"schemas":{"Vehicle":{"type":"object","properties":{"registration":{"type":"string","example":"AB12CDE"},"make":{"type":"string"},"model":{"type":"string"},"colour":{"type":"string"},"fuelType":{"type":"string"},"engineCapacityCc":{"type":["integer","null"]},"co2EmissionsGPerKm":{"type":["integer","null"]},"euroStatus":{"type":["string","null"]},"realDrivingEmissions":{"type":["string","null"]},"yearOfManufacture":{"type":["integer","null"]},"firstRegistered":{"type":["string","null"],"description":"YYYY-MM"},"firstDvlaRegistered":{"type":["string","null"],"description":"YYYY-MM, for imports"},"typeApproval":{"type":["string","null"]},"wheelplan":{"type":["string","null"]},"revenueWeightKg":{"type":["integer","null"]},"markedForExport":{"type":["boolean","null"]},"markedAsScrapped":{"type":["boolean","null"]},"vehicleStatus":{"type":["string","null"]},"lastV5CIssued":{"type":["string","null"],"format":"date"},"hasOutstandingRecall":{"type":["string","null"]},"tax":{"type":"object","properties":{"status":{"type":["string","null"]},"dueDate":{"type":["string","null"],"format":"date"},"daysUntilDue":{"type":["integer","null"]},"additionalRateEndDate":{"type":["string","null"],"format":"date"}}},"mot":{"type":"object","properties":{"status":{"type":["string","null"]},"expiryDate":{"type":["string","null"],"format":"date"},"daysUntilExpiry":{"type":["integer","null"]},"firstDueDate":{"type":["string","null"],"format":"date","description":"For vehicles not yet tested"},"testCount":{"type":"integer"},"latestResult":{"type":["string","null"]},"tests":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"result":{"type":"string","enum":["pass","fail"]},"expiryDate":{"type":["string","null"]},"odometer":{"type":"object"},"testNumber":{"type":"string"},"defects":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"text":{"type":"string"},"dangerous":{"type":"boolean"}}}},"counts":{"type":"object","additionalProperties":{"type":"integer"},"description":"Defects by type"}}}}}},"mileage":{"type":"object","properties":{"latest":{"type":["object","null"]},"readings":{"type":"array","items":{"type":"object"}},"averageMilesPerYear":{"type":["integer","null"]},"anomalyFound":{"type":"boolean"},"anomalies":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["reading_went_down","unusually_high_rate","unit_changed"]},"from":{"type":"object"},"to":{"type":"object"},"differenceMiles":{"type":"integer"},"detail":{"type":"string"}}}}}},"cleanAirZone":{"type":["object","null"],"properties":{"estimate":{"type":"boolean","const":true},"result":{"type":"string","enum":["likely_compliant","likely_non_compliant","uncertain","unknown"]},"basis":{"type":"string"},"euroStandard":{"type":["integer","null"]},"requiredEuro":{"type":["integer","null"]},"appliesTo":{"type":"array","items":{"type":"string"}},"firstRegistered":{"type":["string","null"]},"note":{"type":"string"}}}}},"Meta":{"type":"object","properties":{"requestId":{"type":"string"},"sandbox":{"type":"boolean"},"partial":{"type":"boolean","description":"True when one source failed and the response holds the others."},"stale":{"type":"boolean","description":"True when a source was down and we served our last good copy."},"billed":{"type":"integer","description":"Bulk only: lookups counted against your plan."},"attribution":{"type":"string","description":"Open Government Licence v3.0 attribution. Show it wherever you display the data to others."},"sources":{"type":"object","additionalProperties":{"type":"object","properties":{"status":{"type":"string","enum":["ok","stale","not_found","unavailable","rate_limited","skipped"]},"fetchedAt":{"type":"string","format":"date-time"},"cache":{"type":"string"},"message":{"type":"string"}}}},"usage":{"type":"object","properties":{"plan":{"type":"string"},"used":{"type":"integer"},"limit":{"type":"integer"},"period":{"type":"string"}}}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["coming_soon","invalid_name","invalid_eori","invalid_postcode","unsupported_region","postcode_not_found","station_not_found","missing_api_key","invalid_api_key","invalid_registration","invalid_company_number","invalid_vat_number","invalid_query","invalid_body","invalid_url","invalid_target","live_key_required","invalid_marketplace_secret","too_many","vehicle_not_found","company_not_found","not_found","watch_exists","watch_limit","quota_exceeded","rate_limited","upstream_unavailable","internal_error"],"description":"Stable machine-readable code. See https://api.tychelabs.net/docs#errors"},"message":{"type":"string"}},"required":["code","message"]},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["error"]}}}}