Token Exchange Endpoints
Last updated
Last updated
https://token-exchange-api.dimo.zone
Privilege | Description |
---|---|
POST
{baseUrl}
/v1/tokens/exchange
Creates a token exchange to obtain permission to a vehicle. The response will provide a short-lived token that last you 10 minutes to access additional vehicle information such as Trips and Device Data.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
1
All-time, non-location data
2
Commands
3
Current location
4
All-time location
5
Verifiable Credentials
6
Streams
Authorization
*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
nftContractAddress
*
String
This is the 0x
address of the NFT contract. Privileges will be checked on-chain at this address. Case is not sensitive.
privileges
*
[Integer]
An array of integers indicating the level of privileges provided to the token bearer.
1 - All-time, non-location data 2 - Commands 3 - Current location 4 - All-time location (For Trips API)
tokenId
*
Integer
The Vehicle NFT Token ID that you are requesting permission to. This is an integer that indicates the vehicle you are inquiring about.