Devices API
Last updated
Last updated
GET
{baseUrl}/v1/user/devices/me
Lists all devices associated with the authenticated user.
Authorization*
String
GET
{baseUrl}/v1/user/devices/shared
Lists all devices shared with the authenticated user.
Authorization*
String
GET
{baseUrl}/v1/aftermarket/device/by-serial/{serial}
Retrieves the aftermarket device data for the device serial number.
Authorization*
String
POST
{baseUrl}/v1/aftermarket/device/by-serial/{serial}/update
Retrieves the aftermarket device data for the device serial number.
Authorization*
String
GET
{baseUrl}/v1/documents
Retrieves a list containing all documents for an authorized user.
Authorization*
String
GET
{baseUrl}/v1/documents/{documentId}
Retrieves a document for an authorized user with the provided document ID.
documentId*
String
Authorization*
String
GET
{baseUrl}/v1/documents/{documentId}/download
Downloads a document for an authorized user with the provided document ID.
documentId*
String
Authorization*
String
POST
{baseUrl}/v1/documents
Uploads a new document for an authorized user.
Authorization*
String
file*
File
The file to upload.
name*
String
The name of the document.
type*
String
The type of the document.
userDeviceId
String
Optional user device ID.
DELETE
{baseUrl}/v1/documents/{documentId}
Deletes a document for an authorized user with the provided document ID.
documentId*
String
Authorization*
String
POST
{baseUrl}/v1/aftermarket/device/by-serial/{serial}/commands/unclaim
Dev-only endpoint for removing a claim. Removes the flag on-chain and clears the owner in the database.
serial*
String
Authorization*
String
GET
{baseUrl}
/v1/user/devices/{userDeviceId}/aftermarket/commands/pair
Retrieves the EIP-712 payload for user device <> vehicle pairing.
userDeviceId*
String
Authorization*
String
POST
{baseUrl}
/v1/user/devices/{userDeviceId}/aftermarket/commands/pair
Pairs the aftermarket device identified by User Device ID, signs the pairing payload with a device signature and a user signature while sending to the blockchain.
userDeviceId*
String
Authorization*
String
userSignature*
Object
GET
{baseUrl}
/v1/user/devices/{userDeviceId}/aftermarket/commands/unpair
Retrieves the EIP-712 payload for user device <> vehicle pairing.
userDeviceId*
String
Authorization*
String
POST
{baseUrl}
/v1/user/devices/{userDeviceId}/aftermarket/commands/pair
Unpairs the aftermarket device identified by User Device ID, signs the unpairing payload with a device signature and a user signature while sending to the blockchain.
userDeviceId*
String
Authorization*
String
userSignature*
Object
Developer Notes
The following endpoints are publicly available providing on-chain metadata.
GET
{baseUrl}
/v1/synthetic/device/{tokenId}
Retrieves the synthetic device metadata for the given token ID.
tokenId*
String
Device token ID, this is the token ID of your device NFT. This is publicly available to query in the Identity API.
GET
{baseUrl}
/v1/aftermarket/device/{tokenId}
Retrieves the aftermarket device metadata for the given token ID. This returns the same data as Get Aftermarket Device Metadata by Ethereum Address.
tokenId*
String
Device token ID, this is the token ID of your device NFT. This is publicly available to query in the Identity API.
GET
{baseUrl}
/v1/aftermarket/device/{tokenId}/image
Retrieves the aftermarket device image for the given token ID.
tokenId*
String
Device token ID, this is the token ID of your device NFT. This is publicly available to query in the Identity API.
GET
{baseUrl}
/v1/aftermarket/device/by-address/{address}
address*
String
Ethereum address.
The following endpoints defers back to using the User JWT given that API users are interacting with user devices under their personal possession. No additional permission is needed.
Vehicle error codes are not actively synced with the DIMO Network, hence a submission of error codes is required to store error code history. This is also a function seen in the DIMO Mobile App: https://dimo.zone/news/how-to-scan-your-cars-error-codes-with-dimo-mobile
GET
{baseUrl}
/v1/user/devices/{userDeviceId}/error-codes
Retrieves a list of error code queries made for the vehicle identified by the user device ID.
userDeviceId
*
String
Authorization
*
String
POST
{baseUrl}
/v1/user/devices/{userDeviceId}/error-codes
Submits a list of error codes for the vehicle identified by the user device ID. This submission will actively store the error codes provided for the vehicle while returning the full descriptions for evaluation.
Use application/json
for raw body parameters.
userDeviceId
*
String
Authorization
*
String
queryDeviceErrorCodes
*
Object
{ "errorCodes": [ "P0106", "P0279" ] }
POST
{baseUrl}
/v1/user/devices/{userDeviceId}/error-codes/clear
Submits a clearing signal to DIMO, indicating that the most recently error codes submitted for the vehicle has been cleared.
userDeviceId
*
String
Authorization
*
String
Bearer authentication using the access_token
generated from the .
Bearer authentication using the access_token
generated from the .
Bearer authentication using the access_token
generated from the .
Bearer authentication using the access_token
generated from the .
Bearer authentication using the access_token
generated from the .
Bearer authentication using the access_token
generated from the .
Bearer authentication using the access_token
generated from the .
Body type needs to be form-data
Bearer authentication using the access_token
generated from the .
Bearer authentication using the access_token
generated from the .
Bearer authentication using the access_token
generated from the .
For userDeviceId
, please refer to the User Device entity under
Bearer authentication using the access_token
generated from the .
For userDeviceId
, please refer to the User Device entity under
Bearer authentication using the access_token
generated from the .
For userDeviceId
, please refer to the User Device entity under
Bearer authentication using the access_token
generated from the .
For userDeviceId
, please refer to the User Device entity under
Bearer authentication using the access_token
generated from the .
Retrieves the aftermarket device metadata for the given 0x
Ethereum address. This returns the same data as in
For userDeviceId
, please refer to the User Device entity under .
Developer JWT from the .
For userDeviceId
, please refer to the User Device entity under .
Developer JWT from the .
For userDeviceId
, please refer to the User Device entity under .
Developer JWT from the .