Car Inspection API
Upload vehicle media, get AI-scored results per item, and generate tamper-proof inspection certificates.
1. List Inspection Companies
Fetch all active inspection companies. Use the company ID when creating an inspection.
Request Parameters
No parameters required.
Example Request
curl -X GET https://dev.api.aiadmin.quickmechs.com/api/v1/predict/inspection/companies \
-H "Authorization: Bearer YOUR_API_KEY"
Select a company to use in Step 2:
// Click "Fetch Companies" to see response
1b. SmartCar Vehicle Lookup (optional)
Look up vehicles connected via SmartCar for an email. Selecting a vehicle pre-fills the inspection form and auto-verifies VIN & odometer.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | Yes | The email address of the vehicle owner. |
Example Request
curl -X GET "https://dev.api.aiadmin.quickmechs.com/api/v1/vin-lookup?email=owner@example.com" \
-H "Authorization: Bearer YOUR_API_KEY"
// Enter an email and click Lookup
2. Create Inspection
Initialise a new inspection session with vehicle info and company. Returns an inspection_ref used for all subsequent calls.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | Yes | The email address of the vehicle owner. |
plate_number | string | No | The vehicle's license plate number. |
state | string | No | The state of registration (e.g., California). |
company_id | integer | No | The ID of the inspection company. |
use_ai | boolean | No | Set to 1 for AI analysis, 0 for manual review. Default is 1. |
smartcar_vehicle_id | string | No | The SmartCar vehicle ID to auto-verify VIN and odometer. |
Example Request
curl -X POST https://dev.api.aiadmin.quickmechs.com/api/v1/predict/inspection \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"owner@example.com", "plate_number":"ABC1234", "company_id":2, "use_ai":1}'
// Fill in vehicle info and click Create
3. Upload Media Items
Upload each item individually using multipart/form-data with a file field. Each upload triggers a background AI analysis. Items update to Analyzed within ~30s.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ref | string | Yes | (Path) The unique inspection reference (e.g., INS-XXXXXXXX). |
item_key | string | Yes | (Path) The specific media item key (e.g., vin, odometer). |
file | file | Yes | (Body) The image or video file to upload as multipart/form-data. |
Example Request
curl -X POST https://dev.api.aiadmin.quickmechs.com/api/v1/predict/inspection/INS-12345678/media/vin \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@/path/to/vin_image.jpg"
VIN #
Odometer
Horn
Interior Driver Side
Driver Seat Adjustment
Interior Passenger Side
Passenger Seat Adjustment
Interior Backseat
Exterior Left
Exterior Right
Exterior Front
Exterior Rear
Left Front Tire
Left Rear Tire
Right Front Tire
Right Rear Tire
Left Front Tire (Video)
Right Front Tire (Video)
// Upload an item to see the response
4. Check Progress
Returns all items with their AI analysis status. Poll this after uploads to see scores appear.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ref | string | Yes | (Path) The unique inspection reference (e.g., INS-XXXXXXXX). |
Example Request
curl -X GET https://dev.api.aiadmin.quickmechs.com/api/v1/predict/inspection/INS-12345678/media \
-H "Authorization: Bearer YOUR_API_KEY"
// Click to check current progress
5. Submit Inspection
Finalise the inspection. All 18 items must be uploaded. Returns an error listing any missing items.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ref | string | Yes | (Path) The unique inspection reference (e.g., INS-XXXXXXXX). |
Example Request
curl -X POST https://dev.api.aiadmin.quickmechs.com/api/v1/predict/inspection/INS-12345678/submit \
-H "Authorization: Bearer YOUR_API_KEY"
// Submit once all items are uploaded
6. Verify Certificate
Anyone can verify an inspection certificate hash — no API key required. Returns the inspection details and confirms the document has not been tampered with.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
hash | string | Yes | (Path) The SHA-256 hash from the certificate. |
Example Request
curl -X GET https://dev.api.aiadmin.quickmechs.com/api/v1/predict/inspection/verify/a1b2c3d4... \
-H "Accept: application/json"
// Paste a hash and click Verify
Lookup by Certificate Code
Retrieve an inspection using the 6-character code printed on the certificate. No API key required — publicly accessible.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
code | string | Yes | (Path) The 6-character code printed on the certificate. |
Example Request
curl -X GET https://dev.api.aiadmin.quickmechs.com/api/v1/predict/inspection/code/A3K9XZ \
-H "Accept: application/json"
// Enter a code and click Lookup
7. Inspections by Email
Retrieve all inspections linked to an email address, regardless of status. Requires API key.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
email | string | Yes | (Query) The email address to look up. |
Example Request
curl -X GET "https://dev.api.aiadmin.quickmechs.com/api/v1/predict/inspection/by-email?email=owner@example.com" \
-H "Authorization: Bearer YOUR_API_KEY"
// Enter an email and click Fetch