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 (see common queries). 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
countryCode
*
String
Example:
vin
*
String
Vehicle identifier number.
Example:
Headers
Authorization
*
String
{ deviceDefinitionId: 'lexus_nx_2021', newTransactionHash: '' }
VIN Decoding: Data SDK Function Calls
await dimo.devicedefinitions.decodeVin({
developerJwt,
countryCode,
vin
});
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
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": ""
},
{
"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
}
}
Device Definitions by Search: Data SDK Function Calls
await dimo.DeviceDefinitions.search({
query,
makeSlug,
modelSlug,
year,
page,
pageSize
});
Last updated
Was this helpful?