Last updated
Last updated
DIMO Check-in
Permissions is the new privileges. You may have noticed this name change on the DIMO Network, but we've essentially migrated privileges from the Vehicle NFT to an asset-agnostic permissions smart contract under .
Usage of this API endpoint can be done via .
This is a private API endpoint that is optional for developers using the DIMO Network. It handles the exchange to obtain a Vehicle JWT. By (users) sharing permissions to an app, the app can now request for vehicle data on behalf of the users.
https://token-exchange-api.dimo.zone
Token is a string that serves as the access_token
to perform operations on a specific vehicle's data. This is used to gate-keep data that are associated with a specific vehicle. The Vehicle JWT here is scoped to individual vehicle and short-lived, with an expiration time of 10 minutes.
POST
/v1/tokens/exchange
Creates a token exchange to obtain a Vehicle JWT. The response will provide a short-lived token that last you 10 minutes to access additional vehicle information such as and data
Authorization
*
String
Developer JWT in Bearer Authentication format.
nftContractAddress
*
String
The Vehicle NFT address, in the Production environment, this is 0xbA5738a18d83D41847dfFbDC6101d37C69c9B0cF
.
privileges
*
[Integer]
An array of integers indicating the level of privileges provided to the token bearer.
Refer to privilege definitions.
tokenId
*
Integer
The Vehicle ID that you are requesting permission to. This is an integer that indicates the vehicle you are inquiring about.
1
All-time, non-location data
2
Commands
3
Current location
4
All-time location
5
View VIN credentials
6
Live data streams
7
Raw data
8
Approximate location