curl --request GET \
--url https://api.inspecto.com/api/third-party/v1/vehicles/{id} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "<string>",
"plateNumber": "<string>",
"vin": "<string>",
"brand": "<string>",
"model": "<string>",
"type": "<string>",
"status": "<string>",
"fuelType": "<string>",
"euroClass": "<string>",
"capacity": 123,
"fuel": 123,
"lastMaintenance": "<string>",
"updatedAt": "<string>",
"lastInspection": {
"id": "<string>",
"performedAt": "<string>",
"status": "<string>"
}
},
"meta": {}
}Retrieve a single vehicle by ID
curl --request GET \
--url https://api.inspecto.com/api/third-party/v1/vehicles/{id} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "<string>",
"plateNumber": "<string>",
"vin": "<string>",
"brand": "<string>",
"model": "<string>",
"type": "<string>",
"status": "<string>",
"fuelType": "<string>",
"euroClass": "<string>",
"capacity": 123,
"fuel": 123,
"lastMaintenance": "<string>",
"updatedAt": "<string>",
"lastInspection": {
"id": "<string>",
"performedAt": "<string>",
"status": "<string>"
}
},
"meta": {}
}GET /api/third-party/v1/vehicles/{id}
vehicles:read scope.
Show Vehicle Object
curl -X GET "https://api.inspecto.com/api/third-party/v1/vehicles/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer insp_your_api_key_here"
{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"plateNumber": "ABC-1234",
"vin": "WDB9634321L123456",
"brand": "Mercedes-Benz",
"model": "Actros",
"type": "TRACTOR_UNIT",
"status": "OK",
"fuelType": "DIESEL",
"euroClass": "EURO_6",
"capacity": 18.5,
"fuel": 450.0,
"lastMaintenance": "2024-11-15T10:30:00Z",
"updatedAt": "2024-12-09T14:22:00Z",
"lastInspection": {
"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"performedAt": "2024-12-08T09:15:00Z",
"status": "COMPLETED"
}
},
"meta": {
"version": "v1"
}
}
404 Not Found
{
"errors": [{
"code": "NOT_FOUND",
"message": "Vehicle not found"
}]
}