Get a single DVIR defect by ID.
Rate limit: 10 requests/sec (learn more about rate limits here).
To use this endpoint, select Read Defects under the Maintenance category when creating or editing an API token. Learn More.
Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team.
curl --request GET \
--url https://api.samsara.com/defects/{id} \
--header 'Authorization: Bearer <token>'{
"comment": "Engine failure.",
"dvirId": "292371177",
"id": "9700544",
"isResolved": true,
"createdAtTime": "2020-01-27T07:06:25Z",
"defectPhotos": [
{
"createdAtTime": "2020-01-27T07:06:25Z",
"url": "https://s3.samsara.com/samsara-driver-media-upload/defect-photo-path"
}
],
"defectTypeId": "25d6151e-29b5-453e-875a-7c5425332e09",
"mechanicNotes": "Broken passenger side window.",
"resolvedAtTime": "2020-01-27T07:06:25Z",
"resolvedBy": {
"id": "8172",
"name": "Jane Mechanic",
"type": "mechanic"
},
"trailer": {
"externalIds": {},
"id": "494123"
},
"updatedAtTime": "2020-01-27T07:06:25Z",
"vehicle": {
"externalIds": {},
"id": "494125"
}
}Documentation Index
Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique ID of the DVIR defect.
Optional boolean indicating whether to return external IDs on supported entities
OK response.
Comment on the defect.
"Engine failure."
The unique ID of the defect's DVIR.
"292371177"
The unique ID of the DVIR defect.
"9700544"
Signifies if this defect is resolved.
true
Time when defect was created in RFC 3339 format.
"2020-01-27T07:06:25Z"
List of DVIR defect's photos
Show child attributes
The unique ID of the defect type.
"25d6151e-29b5-453e-875a-7c5425332e09"
The mechanics notes on the defect.
"Broken passenger side window."
Time when this defect was resolved in RFC 3339 format. Will not be returned if the defect is unresolved.
"2020-01-27T07:06:25Z"
The person who resolved this defect.
Show child attributes
Defect's trailer object
Show child attributes
Time when defect was last updated in RFC 3339 format.
"2020-01-27T07:06:25Z"
Defect's vehicle object
Show child attributes
curl --request GET \
--url https://api.samsara.com/defects/{id} \
--header 'Authorization: Bearer <token>'{
"comment": "Engine failure.",
"dvirId": "292371177",
"id": "9700544",
"isResolved": true,
"createdAtTime": "2020-01-27T07:06:25Z",
"defectPhotos": [
{
"createdAtTime": "2020-01-27T07:06:25Z",
"url": "https://s3.samsara.com/samsara-driver-media-upload/defect-photo-path"
}
],
"defectTypeId": "25d6151e-29b5-453e-875a-7c5425332e09",
"mechanicNotes": "Broken passenger side window.",
"resolvedAtTime": "2020-01-27T07:06:25Z",
"resolvedBy": {
"id": "8172",
"name": "Jane Mechanic",
"type": "mechanic"
},
"trailer": {
"externalIds": {},
"id": "494123"
},
"updatedAtTime": "2020-01-27T07:06:25Z",
"vehicle": {
"externalIds": {},
"id": "494125"
}
}