curl --request GET \
--url https://api.inspecto.com/api/third-party/v1/inspections/{id} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "<string>",
"template": {},
"status": "<string>",
"performedAt": "<string>",
"performedBy": {},
"vehicles": [
{}
],
"responses": [
{
"id": "<string>",
"templateItem": {},
"responseText": "<string>",
"fileUrl": "<string>",
"followUpResponses": {}
}
],
"damages": [
{}
]
}
}Retrieve full inspection details including all responses
curl --request GET \
--url https://api.inspecto.com/api/third-party/v1/inspections/{id} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "<string>",
"template": {},
"status": "<string>",
"performedAt": "<string>",
"performedBy": {},
"vehicles": [
{}
],
"responses": [
{
"id": "<string>",
"templateItem": {},
"responseText": "<string>",
"fileUrl": "<string>",
"followUpResponses": {}
}
],
"damages": [
{}
]
}
}GET /api/third-party/v1/inspections/{id}
inspections:read scope.
Show Inspection Details
curl -X GET "https://api.inspecto.com/api/third-party/v1/inspections/7c9e6679-7425-40de-944b-e07fc1f90ae7" \
-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",
"description": "Standard pre-trip vehicle inspection",
"version": 2
},
"status": "COMPLETED",
"performedAt": "2024-12-09T08:30:00Z",
"performedBy": {
"id": "user-123",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@company.com"
},
"vehicles": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"plateNumber": "ABC-1234",
"brand": "Mercedes-Benz",
"model": "Actros",
"vin": "WDB9634321L123456",
"type": "TRACTOR_UNIT"
}
],
"location": {
"title": "Warsaw Depot",
"latitude": 52.2297,
"longitude": 21.0122
},
"notes": "All checks passed",
"responses": [
{
"id": "resp-001",
"templateItem": {
"id": "item-001",
"label": "Check tire pressure",
"inputType": "BOOLEAN",
"isRequired": true
},
"responseText": "true",
"fileUrl": null,
"followUpResponses": null
},
{
"id": "resp-002",
"templateItem": {
"id": "item-002",
"label": "Tire condition photo",
"inputType": "PHOTO",
"isRequired": true
},
"responseText": null,
"fileUrl": "https://storage.example.com/photo.jpg",
"followUpResponses": null
}
],
"damages": [
{
"id": "damage-001",
"vehicleId": "550e8400-e29b-41d4-a716-446655440000",
"description": "Minor scratch on driver door",
"status": "TO_REPAIR_WARNING",
"photoUrl": "https://storage.example.com/damage.jpg",
"reportedAt": "2024-12-09T08:35:00Z",
"repairedAt": null
}
]
},
"meta": {
"version": "v1"
}
}