Skip to main content
GET
/
damages
/
{id}
Get Damage
curl --request GET \
  --url https://api.inspecto.com/api/third-party/v1/damages/{id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {}
}

Endpoint

GET /api/third-party/v1/damages/{id}

Authentication

Requires vehicles:read scope.

Path Parameters

id
string
required
Damage ID (UUID)

Response

data
object
Complete damage object with full details

Example Request

curl -X GET "https://api.inspecto.com/api/third-party/v1/damages/damage-001" \
  -H "Authorization: Bearer insp_your_api_key_here"

Example Response

{
  "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"
  }
}

Error Responses

{
  "errors": [{
    "code": "NOT_FOUND",
    "message": "Damage not found"
  }]
}