GET
/
vehicles
/
{id}
/
diagnostics
/
dtcs
curl "https://api.smartcar.com/v2.0/vehicles/{id}/diagnostics/dtcs" \\
    -H "Authorization: Bearer {token}" \\
    -X "GET"
  {
    "activeCodes": [
      {
        "code": "P302D",
        "timestamp": "2024-09-05T14:48:00.000Z"
      },
      {
        "code": "xxxxx",
        "timestamp": null
      },
    
      ... 
    ]
  }

Permission

read_diagnostics
curl "https://api.smartcar.com/v2.0/vehicles/{id}/diagnostics/dtcs" \\
    -H "Authorization: Bearer {token}" \\
    -X "GET"

Request

Path
id
string
required
The vehicle ID of the vehicle you are making a request to.

Response

code
string
The Diagnostic Trouble Code reported by the vehicle.
timestamp
timestamp
The date and time the troublecode last became active.
  {
    "activeCodes": [
      {
        "code": "P302D",
        "timestamp": "2024-09-05T14:48:00.000Z"
      },
      {
        "code": "xxxxx",
        "timestamp": null
      },
    
      ... 
    ]
  }