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

Was this helpful?

  1. API References
  2. Telemetry API

Common Queries

PreviousSignalsLatestNextToken Exchange API

Last updated 4 months ago

Was this helpful?

Here's a list of common queries that developers might find useful:

Getting a list of available signals for a specific vehicle
query {
  availableSignals(
    tokenId: ${tokenId}
  )
}
Getting a selection of daily signals from a specific data source (AutoPi shown as example)
query {
  signals(
    tokenId: ${tokenId}, 
    interval: "24h",
    from: "${startDate}", to: "${endDate}", 
    filter: {
      source: "autopi"
    }) 
  {
    speed(agg: MED)
    powertrainType(agg: RAND)
    powertrainRange(agg: MIN) 
    exteriorAirTemperature(agg: MAX)
    vehicleIdentificationModel(agg: RAND)
    chassisAxleRow1WheelLeftTirePressure(agg: MIN)
    timestamp
  }
}
Getting the daily average speed of a specific vehicle
query {
  signals(
    tokenId: ${tokenId}, 
    from: "${startDate}", to: "${endDate}", 
    interval: "24h" 
    ) 
  {
    timestamp
    avgSpeed: speed(agg: AVG)
  }
}
Getting the max speed of a specific vehicle
query {
  signals(
    tokenId: ${tokenId}, 
    from: "${startDate}", to: "${endDate}", 
    interval: "${24 * numDays}h" 
    ) 
  {
    timestamp
    maxSpeed: speed(agg: MAX)
  }
}
Getting the VIN of a specific vehicle (Need VIN VC from )
# Prerequisite: Need to generate a VIN VC from Attestation API
query {
  vinVCLatest(tokenId: ${tokenId}) {
    vin
  }
}
Attestation API