HiveMQ Mqtt API

The Mqtt API from HiveMQ — 5 operation(s) for mqtt.

Operations 6

GET /mqtt/clients List MQTT clients #
GET /mqtt/clients/{clientId} Get details for a specific MQTT client #
DELETE /mqtt/clients/{clientId} Disconnect an MQTT client #
GET /mqtt/clients/{clientId}/connection Get connection status of an MQTT client #
GET /mqtt/clients/{clientId}/subscriptions List subscriptions for a client #
DELETE /mqtt/clients/{clientId}/session Invalidate the client session #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/hivemq-mqtt-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

hivemq-mqtt-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMQ REST Data Hub Mqtt API
  description: 'REST API for administering a HiveMQ broker. Endpoints cover MQTT

    client listing, search, disconnect; session invalidation; backups;

    diagnostic archives; trace recordings; and Data Hub schemas, policies,

    and modules. Endpoint shapes inferred from the public HiveMQ REST API

    documentation at docs.hivemq.com/hivemq/latest/rest-api/.

    '
  version: '1.0'
  contact:
    name: HiveMQ Documentation
    url: https://docs.hivemq.com/hivemq/latest/rest-api/index.html
servers:
- url: http://127.0.0.1:8888/api/v1
  description: Default HiveMQ REST API listener
security:
- BearerAuth: []
tags:
- name: Mqtt
paths:
  /mqtt/clients:
    get:
      summary: List MQTT clients
      operationId: listMqttClients
      responses:
        '200':
          description: OK
      tags:
      - Mqtt
  /mqtt/clients/{clientId}:
    parameters:
    - name: clientId
      in: path
      required: true
      schema:
        type: string
    get:
      summary: Get details for a specific MQTT client
      operationId: getMqttClient
      responses:
        '200':
          description: OK
      tags:
      - Mqtt
    delete:
      summary: Disconnect an MQTT client
      operationId: disconnectMqttClient
      responses:
        '204':
          description: Disconnected
      tags:
      - Mqtt
  /mqtt/clients/{clientId}/connection:
    parameters:
    - name: clientId
      in: path
      required: true
      schema:
        type: string
    get:
      summary: Get connection status of an MQTT client
      operationId: getMqttClientConnection
      responses:
        '200':
          description: OK
      tags:
      - Mqtt
  /mqtt/clients/{clientId}/subscriptions:
    parameters:
    - name: clientId
      in: path
      required: true
      schema:
        type: string
    get:
      summary: List subscriptions for a client
      operationId: listMqttClientSubscriptions
      responses:
        '200':
          description: OK
      tags:
      - Mqtt
  /mqtt/clients/{clientId}/session:
    parameters:
    - name: clientId
      in: path
      required: true
      schema:
        type: string
    delete:
      summary: Invalidate the client session
      operationId: invalidateMqttClientSession
      responses:
        '204':
          description: Invalidated
      tags:
      - Mqtt
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Authentication is disabled by default. When enabled via the

        HiveMQ Enterprise Security Extension or Enterprise Extension SDK

        REST Service, a bearer token is required.

        '