cURL
curl --request GET \ --url https://api.inspecto.com/api/third-party/v1/inspections \ --header 'Authorization: Bearer <token>'
{ "data": [ { "id": "<string>", "templateId": "<string>", "template": {}, "status": "<string>", "performedAt": "<string>", "performedBy": {}, "vehicles": [ {} ], "location": {}, "notes": "<string>", "responseCount": 123, "damageCount": 123, "damages": [ {} ] } ] }
Retrieve completed inspections with filtering
GET /api/third-party/v1/inspections
inspections:read
COMPLETED
PENDING_REVIEW
REQUIRES_ATTENTION
Show Inspection Object
curl -X GET "https://api.inspecto.com/api/third-party/v1/inspections?status=COMPLETED&fromDate=2024-12-01" \ -H "Authorization: Bearer insp_your_api_key_here"
{ "data": [ { "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "templateId": "a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d", "template": { "id": "a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d", "title": "Pre-Trip Inspection", "version": 2 }, "status": "COMPLETED", "performedAt": "2024-12-09T08:30:00Z", "performedBy": { "id": "user-123", "firstName": "John", "lastName": "Doe" }, "vehicles": [ { "id": "550e8400-e29b-41d4-a716-446655440000", "plateNumber": "ABC-1234", "brand": "Mercedes-Benz", "model": "Actros" } ], "location": { "title": "Warsaw Depot", "latitude": 52.2297, "longitude": 21.0122 }, "notes": "All checks passed", "responseCount": 15, "damageCount": 1, "damages": [ { "id": "damage-001", "description": "Minor scratch", "status": "TO_REPAIR_WARNING", "photoUrl": "https://..." } ] } ], "meta": { "version": "v1", "pagination": { "currentPage": 1, "totalPages": 5, "totalCount": 237, "hasNextPage": true, "hasPreviousPage": false } } }