Developer API

One diagnostic engine, usable outside this interface.

The interpretation rules run on the server, independent of the website, so the same results can serve a future ChatGPT Action or an MCP adapter. Nothing here publishes a GPT or a store listing by itself.

Authentication

Send a Base44 app user token as Authorization: Bearer …, or the operator’s server key as X-API-Key. The key allows stateless lookups and analyses only; saved reports always require the signed-in owner.

Base URL

https://scan.ratethispro.com/api/v1

JSON in, JSON out. Rate limits apply per caller and are reported as HTTP 429.

Endpoints

get/api/v1/health

Service and provider configuration health

No authentication required

post/api/v1/dtc/lookup

Look up one diagnostic trouble code

Runs the provider chain (CarVector, CarAPI, RapidAPI when verified, then the stored generic reference) and returns the normalised result with its source and retrieval time.

post/api/v1/scan/upload

Create a report from a file, text or code list

Accepts multipart/form-data with a file field (PDF, JPG or PNG, 15 MB maximum) plus an optional JSON vehicle field, or JSON with text or a codes array. Creates a saved report owned by the caller in needs_confirmation state.

post/api/v1/scan/analyze

Run the interpretation engine

With report_id (user token only) it analyses a saved report and persists codes, monitors and findings. With a codes array it returns a stateless analysis without saving anything.

get/api/v1/reports/{report_id}

Read a saved report

Returns the report, its codes, monitors and findings. Only the signed-in owner can read a report.

Examples

POST /api/v1/dtc/lookup
curl -X POST $APP_URL/api/v1/dtc/lookup \
  -H "X-API-Key: $SRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code":"P0420"}'
{
  "code": "P0420",
  "lookup_status": "verified",
  "confidence": "medium",
  "provider": "builtin_reference",
  "cached": false,
  "retrieved_at": "2026-11-24T15:20:00.000Z",
  "title": "Catalyst system efficiency below threshold (Bank 1)",
  "severity": "Moderate",
  "safety_risk": "No documented direct safety risk",
  "emissions_related": true
}
POST /api/v1/scan/analyze
curl -X POST $APP_URL/api/v1/scan/analyze \
  -H "X-API-Key: $SRD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"codes":[{"code":"P0300","status":"pending"}],"monitors":[{"name":"Catalyst","status":"not_ready"}]}'
{
  "codes": [{ "code": "P0300", "code_status": "pending", "provider": "builtin_reference" }],
  "monitors": [{ "monitor_name": "Catalyst", "monitor_status": "not_ready" }],
  "assessment": {
    "label": "professional_inspection",
    "label_text": "Professional inspection recommended before purchase.",
    "rules_applied": ["Inspection rule: 1 code(s) present, 1 pending, 1 readiness monitor(s) incomplete."]
  },
  "findings": [],
  "questions": [],
  "inspections": []
}

Error codes

ErrorHTTPMeaning
unauthorized401No valid user token or API key was supplied.
user_token_required403This operation touches a private report and needs a signed-in owner.
invalid_code422The code does not match the OBD-II format (letter P, B, C or U, then four hex characters).
invalid_request422The body is missing a required field, such as report_id or codes.
not_found404The report does not exist, or it belongs to another user.
free_limit402The free plan already holds its one saved report.
file_too_large413Uploads must be 15 MB or smaller.
rate_limited429Too many requests in a short window. Retry after a pause.

Data and honesty rules

  • • Every code response names its provider and retrieval time, and flags cached results.
  • • Codes with no verified source return lookup_status: not_found, never an invented description.
  • • Severity and safety fields appear only when the provider supplied them.
  • • The assessment is rule-based and deterministic; no health score is calculated.

Questions about access? See the terms and privacy policy.