cURL
curl --request GET \ --url https://api.inspecto.com/api/third-party/v1/damages/{id} \ --header 'Authorization: Bearer <token>'
{ "data": {} }
Retrieve detailed damage information
GET /api/third-party/v1/damages/{id}
vehicles:read
curl -X GET "https://api.inspecto.com/api/third-party/v1/damages/damage-001" \ -H "Authorization: Bearer insp_your_api_key_here"
{ "data": { "id": "damage-001", "vehicleId": "550e8400-e29b-41d4-a716-446655440000", "vehicle": { "id": "550e8400-e29b-41d4-a716-446655440000", "plateNumber": "ABC-1234", "brand": "Mercedes-Benz", "model": "Actros", "vin": "WDB9634321L123456" }, "description": "Broken side mirror - needs replacement", "photoUrl": "https://storage.example.com/damage-001.jpg", "status": "TO_REPAIR_NOT_OK", "reportedAt": "2024-12-09T10:15:00Z", "reportedBy": { "id": "user-123", "firstName": "John", "lastName": "Doe", "email": "john.doe@company.com" }, "assignedTo": { "id": "mechanic-456", "firstName": "Mike", "lastName": "Smith", "email": "mike.smith@company.com" }, "repairedAt": null, "inspection": { "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "performedAt": "2024-12-09T10:00:00Z", "status": "COMPLETED", "template": { "id": "a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d", "title": "Pre-Trip Inspection" } } }, "meta": { "version": "v1" } }
404 Not Found
{ "errors": [{ "code": "NOT_FOUND", "message": "Damage not found" }] }