LogoLogo
DocsHomeSupportContact
  • Getting Started
    • Introduction
    • Build on DIMO
  • DEVELOPER GUIDE
    • Developer Overview
    • Developer Console
    • Authentication
    • DIMO Developer SDKs
      • Data SDK
      • Login with DIMO SDK
        • React Component
        • Login with DIMO Redirect
        • Core Functionalities
      • TypeScript: Transactions SDK
      • SDK Release Notes
    • Low Code Tools
      • n8n: Getting Started
    • Permissions Contract: SACD
    • DIMO Credits
    • Response Types
    • Rate Limits
    • Developer FAQ
    • Developer Changelogs
    • Troubleshooting Common Issues
  • API References
    • Overview of DIMO API
    • Attestation API
    • Device Definitions API
    • Identity API
      • Schema & Types
      • Scalars
      • Nodes & Objects
        • AftermarketDevice
        • AftermarketDeviceConnection
        • DCN
        • DCNConnection
        • DeveloperLicense
        • DeviceDefinition
        • Earning
        • EarningsConnection
        • Manufacturer
        • Sacd
        • SyntheticDevice
        • Vehicle
        • VehicleConnection
        • VehicleEarnings
        • UserRewards
      • Common Queries
    • Telemetry API
      • Schema & Types
      • Scalars
      • Nodes & Objects
        • Signals
        • SignalsLatest
      • Common Queries
    • Token Exchange API
    • Trips API
    • Valuations API
  • DIMO Hardware
    • Introduction
    • DIMO Hardware Application
    • DIMO Manufacturing License
    • Development & Certification
    • Audits & Assessments
      • Hardware & Security Audit
      • Customer Experience Assessment
      • Integration Testing & Quality Control
      • Final Approval
    • DIMO Device License
      • Device Minting Certificates
    • Essential Documents
      • Hardware & Security Audit Checklist
      • Approved Hardware Auditors
      • DIMO Memorandum of Understanding (MOU)
  • Additional References
    • Developer License
    • DIMO GraphQL Basics
  • Deprecated Resources
    • Guides
      • Developer Journey
      • Quick Start Guide
      • Hello World
      • Code Exchange Flow
    • Data Availability
Powered by GitBook
On this page
  • Base URLs
  • Create Verifiable Credentials (VC)
  • Create a Vehicle VIN VC

Was this helpful?

  1. API References

Attestation API

PreviousOverview of DIMO APINextDevice Definitions API

Last updated 1 month ago

Was this helpful?

Base URLs

https://attestation-api.dimo.zone


Create Verifiable Credentials (VC)

Create a Vehicle VIN VC

POST /v1/vc/vin/{tokenId}

Generates the VIN VC for a given vehicle if it has never been created, or if it has expired. If an unexpired VC is found, returns the VC.

After you've obtained the rawVC from the response, you can use it to perform queries on the , such as .

Path Parameters

Name
Type
Description

tokenId*

String

Vehicle token ID, this is the token ID of your vehicle NFT. A prerequisite is to obtain a token that is permitted to access trips data for this specific vehicle.

Headers

Name
Type
Description

Authorization*

String

Response

{
    "vcUrl": "https://telemetry-api.dimo.zone/query",
    "vcQuery": "query {vinVCLatest(tokenId: <TOKEN_ID>) {rawVC}}",
    "message": "VC generated successfully. Retrieve using the provided GQL URL and query parameter."
}
{
  "error": "Invalid request"
}

Create VIN VC: Data SDK Function Calls

await dimo.attestation.createVinVC({
    vehicleJwt, 
    tokenId
});
dimo.attestation.create_vin_vc(vehicle_jwt, token_id)
await dimoClient.AttestationService.CreateVinVcAsync(
    vehicleJwt,
    tokenId
);

Vehicle JWT in .

Telemetry API
Bearer Authentication format
getting the VIN of a vehicle