{"openapi":"3.1.0","info":{"title":"Which Trim (BYOK) API","version":"0.1.0","description":"Which Trim (BYOK) lets an AI assistant read your own Which Trim data through the Which Trim API with a key you supply (WhichTrim API key). Read-only: 11 tools (list_vehicles, get_vehicle, get_vehicle_by_name, decode_vin, list_recalls, get_recall, list_bulletins, get_bulletin, list_trouble_codes, get_trouble_code, compare_vehicles). The BYOK key travels with each request, is used for that one call...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-whichtrim.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-whichtrim/docs"},"termsOfService":"https://connectorbay.com/byok-whichtrim/terms"},"servers":[{"url":"https://byok-whichtrim.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-whichtrim/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_vehicles":{"post":{"operationId":"list_vehicles","summary":"List US model years with headline figures: safety grade and score, recall and complaint counts, crash rating, best mpg a","description":"List US model years with headline figures: safety grade and score, recall and complaint counts, crash rating, best mpg and starting price. Filter by make, model, year or grade. Use for \"Which 2026 Kia models have a grade A safety signal\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"make":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Make name, for example 'kia'.","title":"Make"},"model":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Model name, for example 'sportage'.","title":"Model"},"year":{"anyOf":[{"maximum":2100,"minimum":2000,"type":"integer"},{"type":"null"}],"default":null,"description":"Model year, for example 2026.","title":"Year"},"grade":{"anyOf":[{"enum":["A","B","C","D","F"],"type":"string"},{"type":"null"}],"default":null,"description":"Only this safety grade.","title":"Grade"},"min_score":{"anyOf":[{"maximum":100,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Only vehicles with a safety score of at least this (0 to 100).","title":"Min Score"},"advisory":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to list only vehicles with an active park-outside or do-not-drive advisory.","title":"Advisory"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return (1 to 500).","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many results to skip, for paging.","title":"Offset"}},"title":"list_vehiclesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_vehicle":{"post":{"operationId":"get_vehicle","summary":"Get the full record of one model year by id: fuel-economy configurations, recalls with severity, complaint totals, NCAP ","description":"Get the full record of one model year by id: fuel-economy configurations, recalls with severity, complaint totals, NCAP crash ratings, investigations, trims and bulletins. Use for \"Show everything on file for the 2026 Kia Sportage\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"id":{"description":"Model-year id in the form year_make_model, for example '2026_kia_sportage' (ids come from list_vehicles).","maxLength":200,"title":"Id","type":"string"}},"required":["id"],"title":"get_vehicleArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_vehicle_by_name":{"post":{"operationId":"get_vehicle_by_name","summary":"Get the full record of one model year by make, model and year (spaces or hyphens both work in the model). Use for \"Look ","description":"Get the full record of one model year by make, model and year (spaces or hyphens both work in the model). Use for \"Look up the 2026 Toyota RAV4 record\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"make":{"description":"Make name, for example 'toyota'.","maxLength":200,"title":"Make","type":"string"},"model":{"description":"Model name, for example 'rav4'.","maxLength":200,"title":"Model","type":"string"},"year":{"description":"Model year, for example 2026.","maximum":2100,"minimum":2000,"title":"Year","type":"integer"}},"required":["make","model","year"],"title":"get_vehicle_by_nameArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/decode_vin":{"post":{"operationId":"decode_vin","summary":"Decode a 17-character VIN (through the NHTSA public decoder) and join it to the matching model-year record with grade, r","description":"Decode a 17-character VIN (through the NHTSA public decoder) and join it to the matching model-year record with grade, recalls and trims. Use for \"What car is VIN 5XYP3DHC8NG123456 and does it have recalls\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"vin":{"description":"The 17-character vehicle identification number.","maxLength":17,"title":"Vin","type":"string"}},"required":["vin"],"title":"decode_vinArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_recalls":{"post":{"operationId":"list_recalls","summary":"List NHTSA recall campaigns across all vehicles, newest first, with the vehicle ids each one covers. Use for \"What recal","description":"List NHTSA recall campaigns across all vehicles, newest first, with the vehicle ids each one covers. Use for \"What recalls were reported since 2026-06\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"since":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only campaigns reported on or after this month, as YYYY-MM.","title":"Since"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return (1 to 500).","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many results to skip, for paging.","title":"Offset"}},"title":"list_recallsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_recall":{"post":{"operationId":"get_recall","summary":"Get one recall campaign by its NHTSA number and the model years it covers. Use for \"Show recall campaign 26V431000\".","description":"Get one recall campaign by its NHTSA number and the model years it covers. Use for \"Show recall campaign 26V431000\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"campaign":{"description":"NHTSA campaign number, for example '26V431000'.","maxLength":200,"title":"Campaign","type":"string"}},"required":["campaign"],"title":"get_recallArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_bulletins":{"post":{"operationId":"list_bulletins","summary":"List manufacturer communications filed with NHTSA (service campaigns, warranty extensions, over-the-air and emissions no","description":"List manufacturer communications filed with NHTSA (service campaigns, warranty extensions, over-the-air and emissions notices, service bulletins), newest first. These are not safety recalls. Use for \"Which Hyundai service campaigns were issued this year\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"make":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Make name, for example 'hyundai'.","title":"Make"},"kind":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Kind prefix: service campaign, warranty extension, over the air, emissions or service bulletin.","title":"Kind"},"since":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only items dated on or after this month, as YYYY-MM.","title":"Since"},"number":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"A campaign or document number to look for, for example '26-01-068H'.","title":"Number"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return (1 to 500).","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many results to skip, for paging.","title":"Offset"}},"title":"list_bulletinsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_bulletin":{"post":{"operationId":"get_bulletin","summary":"Get one manufacturer communication by make and the number on the letter (or any document number filed under it), with su","description":"Get one manufacturer communication by make and the number on the letter (or any document number filed under it), with summary and model years. Use for \"Show Hyundai service campaign 9D6\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"make":{"description":"Make name, for example 'hyundai'.","maxLength":200,"title":"Make","type":"string"},"number":{"description":"Campaign id or document number, for example '9d6'.","maxLength":200,"title":"Number","type":"string"}},"required":["make","number"],"title":"get_bulletinArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_trouble_codes":{"post":{"operationId":"list_trouble_codes","summary":"List diagnostic trouble codes found in federal bulletins and owner complaints, with meaning for standard OBD-II codes an","description":"List diagnostic trouble codes found in federal bulletins and owner complaints, with meaning for standard OBD-II codes and counts of mentions. Use for \"Which powertrain trouble codes show up for the 2015 Honda Accord\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"vehicle":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Only codes on file for this model-year id, for example '2015_honda_accord'.","title":"Vehicle"},"system":{"anyOf":[{"enum":["P","B","C","U"],"type":"string"},{"type":"null"}],"default":null,"description":"Code family: P powertrain, B body, C chassis or U network.","title":"System"},"limit":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":50,"description":"How many results to return (1 to 500).","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"How many results to skip, for paging.","title":"Offset"}},"title":"list_trouble_codesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_trouble_code":{"post":{"operationId":"get_trouble_code","summary":"Get one diagnostic trouble code with its meaning and the model years whose federal record names it. Use for \"What does t","description":"Get one diagnostic trouble code with its meaning and the model years whose federal record names it. Use for \"What does trouble code P0420 mean and which cars report it\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"code":{"description":"Trouble code, for example 'P0420'.","maxLength":200,"title":"Code","type":"string"}},"required":["code"],"title":"get_trouble_codeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/compare_vehicles":{"post":{"operationId":"compare_vehicles","summary":"Score two or three model years (optionally with a trim suffix) on price, fuel, safety, space, performance, tech and warr","description":"Score two or three model years (optionally with a trim suffix) on price, fuel, safety, space, performance, tech and warranty and return the verdict. Use for \"Compare the 2026 Kia Sportage with the 2024 Mazda CX-90\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"a":{"description":"First contender: model-year id, optionally ':trim_suffix'.","maxLength":200,"title":"A","type":"string"},"b":{"description":"Second contender in the same form.","maxLength":200,"title":"B","type":"string"},"c":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Optional third contender in the same form.","title":"C"},"weights":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Category weights 0 to 5, either seven dash-separated numbers (budget-fuel-safety-space-performance-tech-warranty) or names like 'budget:5,safety:4'.","title":"Weights"}},"required":["a","b"],"title":"compare_vehiclesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}