Stream API

Real-time Haltian IoT event streaming through MQTT and Kafka

Overview

Use the Stream API to receive events in real time through MQTT or Kafka. Use it for live dashboards, alerting systems, and integrations that react to device activity without continuously polling the Service API.

Both transports use an integration and a linked API key, managed through the Service API. Broker authentication, permissions, topics, and payloads differ between transports. Follow the setup instructions for your chosen transport, store its API key token securely, and renew the token before it expires.

Key Characteristics

  • Capabilities: Real-time event delivery through MQTT or Kafka
  • Best for: Live dashboards, real-time alerting, event-driven integrations

When to Use Stream API vs. Other APIs

  • Need live events as they happen → Stream API
  • Need historical data on demand → Service API queries
  • Need bulk data for analytics/warehousing → Data API

In This Section

TransportChoose it when you needDocumentation
MQTTTopic-based subscriptions, including device and measurement topic patternsMQTT
KafkaKafka consumers, consumer groups, and retained-event processingKafka

MQTT documentation includes topics, client examples, and cloud binary passthrough. Kafka documentation includes access setup, connection settings, payloads, retention, and a consumer example. Do not assume that filtering or delivery behavior is identical across transports.


MQTT Stream API

MQTT access setup, topics, and client examples for real-time Haltian IoT events

Kafka Stream API

Connect to Haltian IoT Kafka in production and consume real-time measurements and device events