List of Deprecating Resources

Devices API

Vehicle (User Device) Queries 🔐

List All Devices Associated with the User

GET {baseUrl}/v1/user/devices/me

Lists all devices associated with the authenticated user.

Headers

NameTypeDescription

Authorization*

String

Bearer authentication using the access_token generated from the Web3 challenge.

List All Devices Shared with the User

GET {baseUrl}/v1/user/devices/shared

Lists all devices shared with the authenticated user.

Headers

NameTypeDescription

Authorization*

String

Bearer authentication using the access_token generated from the Web3 challenge.

Device Commands 🔐

Get Aftermarket Device Data by Device Serial Number

GET {baseUrl}/v1/aftermarket/device/by-serial/{serial}

Retrieves the aftermarket device data for the device serial number.

Headers

NameTypeDescription

Authorization*

String

Bearer authentication using the access_token generated from the Web3 challenge.

{
    "isUpdated": true,
    "deviceId": "",
    "unitId": "24601960806",
    "dockerReleases": null,
    "hwRevision": "",
    "template": 0,
    "lastCommunication": "0001-01-01T00:00:00Z",
    "releaseVersion": "",
    "shouldUpdate": false,
    "tokenId": 13986,
    "ethereumAddress": "0xddf4c4ec0023d957f4dbefebbd158bf6e02be7c8",
    "ownerAddress": "0xf9D26323Ab49179A6d57C26515B01De018553487",
    "beneficiaryAddress": "0xf9d26323ab49179a6d57c26515b01de013253787",
    "claim": {
        "status": "Confirmed",
        "hash": "0xa4944c7a148810c196d034af682d39dbe653e6eb56f13924dec2852e122f674f",
        "createdAt": "2024-01-02T23:37:56.783001Z",
        "updatedAt": "2024-01-02T23:38:13.557678Z"
    },
    "pair": {
        "status": "Confirmed",
        "hash": "0x3552c112c4281822eed1c45f0ee23c53969acfe8961419d673bdb504234d61d7",
        "createdAt": "2024-02-03T22:20:58.597529Z",
        "updatedAt": "2024-02-03T22:21:18.823898Z"
    },
    "manufacturer": {
        "tokenId": 142,
        "name": "Hashdog"
    }
}

Get Aftermarket Device Data by Device Serial Number

POST {baseUrl}/v1/aftermarket/device/by-serial/{serial}/update

Retrieves the aftermarket device data for the device serial number.

Headers

NameTypeDescription

Authorization*

String

Bearer authentication using the access_token generated from the Web3 challenge.

{
    "isUpdated": true,
    "deviceId": "",
    "unitId": "24601960806",
    "dockerReleases": null,
    "hwRevision": "",
    "template": 0,
    "lastCommunication": "0001-01-01T00:00:00Z",
    "releaseVersion": "",
    "shouldUpdate": false,
    "tokenId": 13986,
    "ethereumAddress": "0xddf4c4ec0023d957f4dbefebbd158bf6e02be7c8",
    "ownerAddress": "0xf9D26323Ab49179A6d57C26515B01De018553487",
    "beneficiaryAddress": "0xf9d26323ab49179a6d57c26515b01de013253787",
    "claim": {
        "status": "Confirmed",
        "hash": "0xa4944c7a148810c196d034af682d39dbe653e6eb56f13924dec2852e122f674f",
        "createdAt": "2024-01-02T23:37:56.783001Z",
        "updatedAt": "2024-01-02T23:38:13.557678Z"
    },
    "pair": {
        "status": "Confirmed",
        "hash": "0x3552c112c4281822eed1c45f0ee23c53969acfe8961419d673bdb504234d61d7",
        "createdAt": "2024-02-03T22:20:58.597529Z",
        "updatedAt": "2024-02-03T22:21:18.823898Z"
    },
    "manufacturer": {
        "tokenId": 142,
        "name": "Hashdog"
    }
}

Document Operations 🔐

List All Documents for the User

GET {baseUrl}/v1/documents

Retrieves a list containing all documents for an authorized user.

Headers

NameTypeDescription

Authorization*

String

Bearer authentication using the access_token generated from the Web3 challenge.

Get a Document for the User by Document ID

GET {baseUrl}/v1/documents/{documentId}

Retrieves a document for an authorized user with the provided document ID.

Path Parameters

NameTypeDescription

documentId*

String

Headers

NameTypeDescription

Authorization*

String

Bearer authentication using the access_token generated from the Web3 challenge.

Download a Document for the User by Document ID

GET {baseUrl}/v1/documents/{documentId}/download

Downloads a document for an authorized user with the provided document ID.

Path Parameters

NameTypeDescription

documentId*

String

Headers

NameTypeDescription

Authorization*

String

Bearer authentication using the access_token generated from the Web3 challenge.

Upload a New Document for the User

POST {baseUrl}/v1/documents

Uploads a new document for an authorized user.

⚠️ Body type needs to be form-data

Headers

NameTypeDescription

Authorization*

String

Bearer authentication using the access_token generated from the Web3 challenge.

Request Body

NameTypeDescription

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 a Document for the User by Document ID

DELETE {baseUrl}/v1/documents/{documentId}

Deletes a document for an authorized user with the provided document ID.

Path Parameters

NameTypeDescription

documentId*

String

Headers

NameTypeDescription

Authorization*

String

Bearer authentication using the access_token generated from the Web3 challenge.

Aftermarket Device Operations

Unclaim the Device by Device Serial Number

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.

Path Parameters

NameTypeDescription

serial*

String

Headers

NameTypeDescription

Authorization*

String

Bearer authentication using the access_token generated from the Web3 challenge.


Device Definitions API

List All Device Definitions

GET {baseUrl}/device-definitions/all

Retrieves a list of all device definitions.

⚠️ This endpoint returns all the device definitions of all vehicles, the data volume is very large so please handle with care.

List All Available Integrations for a Device Definition by Device Definition ID

GET {baseUrl}/device-definitions/{deviceDefinitionId}/integrations

Lists all available integrations for a specific device definition by Device Definition ID.

Decode An Array of VINs Returning JSON

POST {baseUrl}/bulk-decode

Decodes a list of Vehicle Identification Numbers, returning in JSON format.

Request Body

NameTypeDescription

vins*

[String]

An array of Vehicle Identification Numbers (VIN).

{
    "decoded_vins": [
        {
            "vin": "JTJGARBZ0M5023423",
            "device_definition_id": "26G4j1YDKZhFeCsn13MAlyU3Y2X",
            "device_make": {
                "id": "2681cTRIYnN3uTGARvXu9BCPis7",
                "name": "Lexus",
                "logo_url": null,
                "oem_platform_name": "Lexus Enform",
                "tokenId": 69,
                "nameSlug": "lexus",
                "external_ids": {
                    "edmunds": "200705856",
                    "parkers": "lexus"
                },
                "externalIdsTyped": [
                    {
                        "vendor": "edmunds",
                        "id": "200705856"
                    },
                    {
                        "vendor": "parkers",
                        "id": "lexus"
                    }
                ],
                "metadata": null,
                "metadataTyped": null,
                "hardware_template_id": null,
                "created_at": "0001-01-01T00:00:00Z",
                "updated_at": "0001-01-01T00:00:00Z"
            },
            "device_year": 2021,
            "device_model": "Standard Trim",
            "compatibility_features": [
                {
                    "features": [
                        {
                            "key": "location",
                            "support_level": 2,
                            "css_icon": "location_on",
                            "display_name": "Location"
                        },
                        {
                            "key": "odometer",
                            "support_level": 2,
                            "css_icon": "custom_odometer",
                            "display_name": "Odometer"
                        },
                        {
                            "key": "vin",
                            "support_level": 2,
                            "css_icon": "badge",
                            "display_name": "VIN"
                        }
                    ],
                    "level": "Bronze",
                    "integration_id": "22N2xaPOq2WW2gAHBHd0Ikn4Zob",
                    "integration_vendor": "SmartCar",
                    "region": "Americas",
                    "score": 44.68085
                },
                {
                    "features": [
                        {
                            "key": "location",
                            "support_level": 2,
                            "css_icon": "location_on",
                            "display_name": "Location"
                        },
                        {
                            "key": "odometer",
                            "css_icon": "custom_odometer",
                            "display_name": "Odometer"
                        },
                        {
                            "key": "vin",
                            "support_level": 2,
                            "css_icon": "badge",
                            "display_name": "VIN"
                        },
                        {
                            "key": "speed",
                            "css_icon": "speed",
                            "display_name": "Speed"
                        }
                    ],
                    "level": "Bronze",
                    "integration_id": "27qftVRWQYpVDcO5DltO5Ojbjxk",
                    "integration_vendor": "AutoPi",
                    "region": "Americas",
                    "score": 25.531916
                },
                {
                    "features": [
                        {
                            "key": "location",
                            "support_level": 1,
                            "css_icon": "location_on",
                            "display_name": "Location"
                        },
                        {
                            "key": "odometer",
                            "css_icon": "custom_odometer",
                            "display_name": "Odometer"
                        },
                        {
                            "key": "vin",
                            "support_level": 1,
                            "css_icon": "badge",
                            "display_name": "VIN"
                        },
                        {
                            "key": "range",
                            "display_name": "Range"
                        }
                    ],
                    "level": "No Data",
                    "integration_id": "27qftVRWQYpVDcO5DltO5Ojbjxk",
                    "integration_vendor": "AutoPi",
                    "region": "Europe"
                }
            ]
        }
    ],
    "not_decoded_vins": []
}

Decode An Array of VINs Returning CSV

POST {baseUrl}/bulk-decode/csv

Decodes a list of Vehicle Identification Numbers, returning in CSV format.

Request Body

NameTypeDescription

vins*

[String]

An array of Vehicle Identification Numbers (VIN).


Users API

Get User's Other Accounts

GET {baseUrl}/v1/user/check-accounts

Retrieves other connected accounts of the authenticated user.

Headers

NameTypeDescription

Authorization*

String

Bearer authentication using the access_token generated from the Web3 challenge.

{
    "otherAccounts": [
        {
            "type": "google",
            "login": "dimo_is_cool@gmail.com"
        }
    ]
}

Last updated