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
  • Sample Response
  • SmartCar Stream Response
  • Macaron Stream Response

Was this helpful?

  1. DIMO Streams

Getting Metadata from a Stream

Sample Response

SmartCar Stream Response

{
  "id": "2gkUhtxJkEa5g6e20DnYIiTX0TV",
  "source": "dimo/integration/22N2xaPOq2WW2gAHBHd0Ikn4Zob",
  "specversion": "1.0",
  "subject": "2UZb3drEbIkLdMFcvEFqhjrX4X6",
  "time": "2024-05-20T21:39:51.800991814Z",
  "type": "zone.dimo.device.status.update",
  "data": {
    "vehicleId": "<vehicle_id>",
    "timestamp": "2024-05-20T21:39:51.368245975Z",
    "make": "<MAKE>",
    "model": "<MODEL>",
    "year": <YEAR>,
    "odometer": <ODOMETER>,
    "vin": "<VIN>"
    "errors": [
      {
        "errorCode": 502,
        "type": "tires/pressure",
        "resolution": {
          "type": "RETRY_LATER"
        },
        "errorType": "UPSTREAM",
        "description": "Smartcar received an error from an upstream source. Please retry your request at a later time."
      },
      {
        "errorCode": 502,
        "type": "fuel",
        "resolution": {
          "type": "RETRY_LATER"
        },
        "errorType": "UPSTREAM",
        "description": "Smartcar received an error from an upstream source. Please retry your request at a later time."
      },
      {
        "errorCode": 502,
        "type": "location",
        "resolution": {
          "type": "RETRY_LATER"
        },
        "errorType": "UPSTREAM",
        "description": "Smartcar received an error from an upstream source. Please retry your request at a later time."
      }
    ]
  }
}

Macaron Stream Response

{
  "id": "2gk5b7i1bShxQCbWDvscUmm434f",
  "source": "dimo/integration/2ULfuC8U9dOqRshZBAi0lMM1Rrx",
  "specversion": "1.0",
  "subject": "2UZb3drEbIkLdMFcvEFqhjrX4X6",
  "time": "2024-05-20T18:13:23.89Z",
  "type": "zone.dimo.device.status.update",
  "data": {
    "batteryVoltage": 12.606,
    "bootCounter": 2,
    "deviceState": 3,
    "flashUsage": 0,
    "fwVersion": "0.9.0",
    "latitude": <lat>,
    "longitude": <lng>,
    "lora": {
      "app_eui": "44494D4F5A4F4E45",
      "devAddr": "61080048",
      "deveui": "F4CE36B7251BF81C",
      "fPort": "2",
      "fcnt": "2018",
      "payload_size": "26"
    },
    "nsat": 1,
    "timestamp": "2024-05-20T00:04:21.000Z"
  }
}

Last updated 11 months ago

Was this helpful?