Devices API
Vehicle (User Device) Queries 🔐
List All Devices Associated with the User
GET
{baseUrl}/v1/user/devices/me
Lists all devices associated with the authenticated user.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
List All Devices Shared with the User
GET
{baseUrl}/v1/user/devices/shared
Lists all devices shared with the authenticated user.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Device Commands 🔐
Get Aftermarket Device Data by Device Serial Number
GET
{baseUrl}/v1/aftermarket/device/by-serial/{serial}
Retrieves the aftermarket device data for the device serial number.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Get Aftermarket Device Data by Device Serial Number
POST
{baseUrl}/v1/aftermarket/device/by-serial/{serial}/update
Retrieves the aftermarket device data for the device serial number.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Document Operations 🔐
List All Documents for the User
GET
{baseUrl}/v1/documents
Retrieves a list containing all documents for an authorized user.
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Get a Document for the User by Document ID
GET
{baseUrl}/v1/documents/{documentId}
Retrieves a document for an authorized user with the provided document ID.
Path Parameters
Name | Type | Description |
---|---|---|
documentId* | String |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Download a Document for the User by Document ID
GET
{baseUrl}/v1/documents/{documentId}/download
Downloads a document for an authorized user with the provided document ID.
Path Parameters
Name | Type | Description |
---|---|---|
documentId* | String |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Upload a New Document for the User
POST
{baseUrl}/v1/documents
Uploads a new document for an authorized user.
⚠️ Body type needs to be form-data
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Request Body
Name | Type | Description |
---|---|---|
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. |
Delete a Document for the User by Document ID
DELETE
{baseUrl}/v1/documents/{documentId}
Deletes a document for an authorized user with the provided document ID.
Path Parameters
Name | Type | Description |
---|---|---|
documentId* | String |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Aftermarket Device Operations
Unclaim the Device by Device Serial Number
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.
Path Parameters
Name | Type | Description |
---|---|---|
serial* | String |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Pairing a Vehicle with Aftermarket Device 🔐
[Deprecating] Get the Pairing Payload by User Device ID
GET
{baseUrl}
/v1/user/devices/{userDeviceId}/aftermarket/commands/pair
Retrieves the EIP-712 payload for user device <> vehicle pairing.
Path Parameters
Name | Type | Description |
---|---|---|
userDeviceId* | String | For |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Sign the Pairing Payload by User Device ID to Pair Device
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.
Path Parameters
Name | Type | Description |
---|---|---|
userDeviceId* | String | For |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Request Body
Name | Type | Description |
---|---|---|
userSignature* | Object |
Unpairing a Vehicle with Aftermarket Device 🔐
[Deprecating] Get the Unpairing Payload by User Device ID
GET
{baseUrl}
/v1/user/devices/{userDeviceId}/aftermarket/commands/unpair
Retrieves the EIP-712 payload for user device <> vehicle pairing.
Path Parameters
Name | Type | Description |
---|---|---|
userDeviceId* | String | For |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Sign the Unpairing Payload by User Device ID to Unpair Device
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.
Path Parameters
Name | Type | Description |
---|---|---|
userDeviceId* | String | For |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer authentication using the |
Request Body
Name | Type | Description |
---|---|---|
userSignature* | Object |
On-chain Queries 🔏
Developer Notes
The following endpoints are publicly available providing on-chain metadata.
Get Synthetic Device Metadata by Token ID
GET
{baseUrl}
/v1/synthetic/device/{tokenId}
Retrieves the synthetic device metadata for the given token ID.
Path Parameters
Name | Type | Description |
---|---|---|
tokenId* | String | Device token ID, this is the token ID of your device NFT. This is publicly available to query in the Identity API. |
Get Aftermarket Device Metadata by 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.
Path Parameters
Name | Type | Description |
---|---|---|
tokenId* | String | Device token ID, this is the token ID of your device NFT. This is publicly available to query in the Identity API. |
Get Aftermarket Device Image by Token ID
GET
{baseUrl}
/v1/aftermarket/device/{tokenId}/image
Retrieves the aftermarket device image for the given token ID.
Path Parameters
Name | Type | Description |
---|---|---|
tokenId* | String | Device token ID, this is the token ID of your device NFT. This is publicly available to query in the Identity API. |
Get Aftermarket Device Metadata by Ethereum Address
GET
{baseUrl}
/v1/aftermarket/device/by-address/{address}
Retrieves the aftermarket device metadata for the given 0x
Ethereum address. This returns the same data as in #get-aftermarket-device-metadata-by-token-id
Path Parameters
Name | Type | Description |
---|---|---|
address* | String | Ethereum address. |
Last updated