Problem Identifier
Search for repair sub-categories by keyword, or get an AI-generated description of any sub-category. Use these endpoints to let users identify exactly what repair they need before requesting a prediction.
Configuration
Search Sub-categories
Search across all visible repair sub-categories by name. Returns matches with their parent category and ID.
POST /api/v1/predict/categories/search
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Free-text search term (e.g. "brake pad", "oil change"). |
limit | integer | No | Max results to return. Default: 10. Max: 50. |
Example Request
curl -X POST https://dev.api.aiadmin.quickmechs.com/api/v1/predict/categories/search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"brake pad","limit":10}'Try it
Minimum 2 characters. Returns up to 20 results.
Request
POST /api/v1/predict/categories/search {}
Response
// Type a search query to find sub-categories
Describe Sub-category
Get an AI-generated description of what a repair sub-category involves. Descriptions are cached after first generation.
POST /api/v1/predict/categories/{id}/describe
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Path param. Sub-category ID from the search endpoint. |
Example Request
curl -X POST https://dev.api.aiadmin.quickmechs.com/api/v1/predict/categories/7/describe \
-H "Authorization: Bearer YOUR_API_KEY"Try it
Request
POST /api/v1/predict/categories/{id}/describe
Response
// Select a sub-category to get its AI description