Token Exchange API Endpoints
Base URLs
https://token-exchange-api.dev.dimo.zone
References for Privilege Sharing
Privilege | Description | Where would this be needed? |
---|---|---|
1 | All-time, non-location data | |
2 | Commands | |
3 | Current location | |
4 | All-time location | |
5 | Verifiable Credentials | |
6 | Streams |
NFT Contract Address
Exchanging for a Privilege Token 🔐
Create a Token Exchange
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.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Request Body
Name | Type | Description |
---|---|---|
nftContractAddress* | String | This is the |
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. |
Swagger Doc
Last updated