Devices API
Last updated
Last updated
GET
{baseUrl}/v1/user/devices/me
Lists all devices associated with the authenticated user.
Name | Type | Description |
---|---|---|
GET
{baseUrl}/v1/user/devices/shared
Lists all devices shared with the authenticated user.
Name | Type | Description |
---|---|---|
GET
{baseUrl}/v1/aftermarket/device/by-serial/{serial}
Retrieves the aftermarket device data for the device serial number.
POST
{baseUrl}/v1/aftermarket/device/by-serial/{serial}/update
Retrieves the aftermarket device data for the device serial number.
GET
{baseUrl}/v1/documents
Retrieves a list containing all documents for an authorized user.
GET
{baseUrl}/v1/documents/{documentId}
Retrieves a document for an authorized user with the provided document ID.
GET
{baseUrl}/v1/documents/{documentId}/download
Downloads a document for an authorized user with the provided document ID.
POST
{baseUrl}/v1/documents
Uploads a new document for an authorized user.
DELETE
{baseUrl}/v1/documents/{documentId}
Deletes a document for an authorized user with the provided document ID.
POST
{baseUrl}/v1/aftermarket/device/by-serial/{serial}/commands/unclaim
Dev-only endpoint for removing a claim. Removes the flag on-chain and clears the owner in the database.
GET
{baseUrl}
/v1/user/devices/{userDeviceId}/aftermarket/commands/pair
Retrieves the EIP-712 payload for user device <> vehicle pairing.
POST
{baseUrl}
/v1/user/devices/{userDeviceId}/aftermarket/commands/pair
Pairs the aftermarket device identified by User Device ID, signs the pairing payload with a device signature and a user signature while sending to the blockchain.
GET
{baseUrl}
/v1/user/devices/{userDeviceId}/aftermarket/commands/unpair
Retrieves the EIP-712 payload for user device <> vehicle pairing.
POST
{baseUrl}
/v1/user/devices/{userDeviceId}/aftermarket/commands/pair
Unpairs the aftermarket device identified by User Device ID, signs the unpairing payload with a device signature and a user signature while sending to the blockchain.
Developer Notes
The following endpoints are publicly available providing on-chain metadata.
GET
{baseUrl}
/v1/synthetic/device/{tokenId}
Retrieves the synthetic device metadata for the given token ID.
GET
{baseUrl}
/v1/aftermarket/device/{tokenId}
Retrieves the aftermarket device metadata for the given token ID. This returns the same data as Get Aftermarket Device Metadata by Ethereum Address.
GET
{baseUrl}
/v1/aftermarket/device/{tokenId}/image
Retrieves the aftermarket device image for the given token ID.
GET
{baseUrl}
/v1/aftermarket/device/by-address/{address}
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Body type needs to be form-data
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Retrieves the aftermarket device metadata for the given 0x
Ethereum address. This returns the same data as in
Name | Type | Description |
---|---|---|
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
documentId*
String
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
documentId*
String
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
file*
File
The file to upload.
name*
String
The name of the document.
type*
String
The type of the document.
userDeviceId
String
Optional user device ID.
documentId*
String
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
serial*
String
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
userDeviceId*
String
For userDeviceId
, please refer to the User Device entity under Devices API
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
userDeviceId*
String
For userDeviceId
, please refer to the User Device entity under Devices API
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
userSignature*
Object
userDeviceId*
String
For userDeviceId
, please refer to the User Device entity under Devices API
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
userDeviceId*
String
For userDeviceId
, please refer to the User Device entity under Devices API
Authorization*
String
Bearer authentication using the access_token
generated from the Web3 challenge.
userSignature*
Object
tokenId*
String
Device token ID, this is the token ID of your device NFT. This is publicly available to query in the Identity API.
tokenId*
String
Device token ID, this is the token ID of your device NFT. This is publicly available to query in the Identity API.
tokenId*
String
Device token ID, this is the token ID of your device NFT. This is publicly available to query in the Identity API.
address*
String
Ethereum address.