Device Definitions API

Developer Notes

As of 2024, the source of truth for Device Definitions are now stored in Tableland - a decentralized cloud database. Device Definitions details can now be returned from Identity API. This API now consist of some helper functions for development needs.

Base URLs

https://device-definitions-api.dimo.zone


VIN Decoding

Submit a Decode VIN Request

POST {baseUrl}/device-definitions/decode-vin

Submits a decoding request for vehicle identification number, returns the device definition ID corresponding to the VIN.

Use application/json for raw body parameters.

Request Body

Name
Type
Description

countryCode*

String

3-letter ISO 3166-1 alpha-3 country code.

Example:

"countryCode": "USA"

vin*

String

Vehicle identifier number.

Example:

"vin": "1HGCM66886A015965"

Headers

Name
Type
Description

Authorization*

String

Developer JWT from the authentication step.

{ deviceDefinitionId: 'lexus_nx_2021', newTransactionHash: '' }

Device Definitions Lookup

Get Device Definitions by Search Filters

GET {baseUrl}/device-definitions/search

Retrieves a list of device definitions by search filters.

Query Parameters

Name
Type
Description

query*

String

Query filter (e.g. Lexus gx 2023)

makeSlug

String

Make of the vehicle (e.g. audi, lexus, etc)

modelSlug

String

Model of the vehicle (e.g. Tacoma, Accord, etc)

year

Number

Year of the vehicle (e.g. 2024)

page

Number

Page number (for pagination, defaults to the 1st page)

pageSize

Number

Page size (to specify the items to show in one page)

{
  "deviceDefinitions": [
    {
      "id": "lexus_gx_2023",
      "legacy_ksuid": "2ZvYP0pSbQoXPh2WUdQPeA6g4dM",
      "name": "2023 Lexus GX",
      "make": "Lexus",
      "model": "GX",
      "year": 2023,
      "imageUrl": "https://i.fuelapi.com/31271b03ca0f439190a0b8c6f47bc448/38582/2/2/color_1280_001/MY2023/51412/51412_cc1280_001_085.jpg"
    },
    {
      "id": "lexus_gx-460_2023",
      "legacy_ksuid": "2CMmZpP6YjaKQlQnGDSAzQ4PJEG",
      "name": "2023 Lexus GX 460",
      "make": "Lexus",
      "model": "GX 460",
      "year": 2023,
      "imageUrl": ""
    }
  ],
  "facets": {
    "makes": [
      {
        "name": "Lexus",
        "count": 2
      }
    ],
    "models": [
      {
        "name": "GX",
        "count": 1
      },
      {
        "name": "GX 460",
        "count": 1
      }
    ],
    "years": [
      {
        "name": "2023",
        "count": 2
      }
    ]
  },
  "pagination": {
    "page": 1,
    "pageSize": 20,
    "totalItems": 2,
    "totalPages": 1
  }
}

Last updated