curl "https://api.smartcar.com/v2.0/vehicles/{id}/diagnostics/dtcs" \
-H "Authorization: Bearer {token}" \
-X "GET"
diagnostic_trouble_codes = vehicle.diagnostic_trouble_codes()
const diagnosticTroubleCodes = await vehicle.diagnosticTroubleCodes();
VehicleDiagnosticTroubleCodes diagnosticTroubleCodes = vehicle.diagnosticTroubleCodes();
diagnostic_trouble_codes = vehicle.diagnostic_trouble_codes
{
"activeCodes": [
{
"code": "P302D",
"timestamp": "2024-09-05T14:48:00.000Z"
},
{
"code": "xxxxx",
"timestamp": null
}
...
]
}
Vehicle Data
Diagnostic Trouble Codes
Provides a list of active Diagnostic Trouble Codes (DTCs) reported by the vehicle. Currently supporting GM brands including Chevrolet and GMC.
curl "https://api.smartcar.com/v2.0/vehicles/{id}/diagnostics/dtcs" \
-H "Authorization: Bearer {token}" \
-X "GET"
diagnostic_trouble_codes = vehicle.diagnostic_trouble_codes()
const diagnosticTroubleCodes = await vehicle.diagnosticTroubleCodes();
VehicleDiagnosticTroubleCodes diagnosticTroubleCodes = vehicle.diagnosticTroubleCodes();
diagnostic_trouble_codes = vehicle.diagnostic_trouble_codes
{
"activeCodes": [
{
"code": "P302D",
"timestamp": "2024-09-05T14:48:00.000Z"
},
{
"code": "xxxxx",
"timestamp": null
}
...
]
}
The Vehicles API v2.0 will be deprecated by Q4 of 2026. We recommend migrating to the latest version as soon as possible to ensure continued support and access to new features.
Permission
read_diagnostics
curl "https://api.smartcar.com/v2.0/vehicles/{id}/diagnostics/dtcs" \
-H "Authorization: Bearer {token}" \
-X "GET"
diagnostic_trouble_codes = vehicle.diagnostic_trouble_codes()
const diagnosticTroubleCodes = await vehicle.diagnosticTroubleCodes();
VehicleDiagnosticTroubleCodes diagnosticTroubleCodes = vehicle.diagnosticTroubleCodes();
diagnostic_trouble_codes = vehicle.diagnostic_trouble_codes
Request
Pathstring
required
The vehicle ID of the vehicle you are making a request to.
Response
array
{
"activeCodes": [
{
"code": "P302D",
"timestamp": "2024-09-05T14:48:00.000Z"
},
{
"code": "xxxxx",
"timestamp": null
}
...
]
}
Was this page helpful?
⌘I

