> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ilyama.golain.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get MQTT broker connection details for a device

> Returns broker endpoints, topic filters, and certificate status for an MQTT fleet device.
Requires authorized read of device metadata (permission embedded in SQL).




## OpenAPI

````yaml /api-reference/ilyama.v1.json get /projects/{project_id}/fleets/{fleet_id}/devices/{device_id}/mqtt_connection_details
openapi: 3.1.0
info:
  description: >
    Generation-ready starter contract for ilyama's HTTP API.

    This is intentionally scoped to stable routes already mounted in
    services/apis

    so frontend clients can begin integrating against the rewrite immediately.
  title: ilyama Core API
  version: 0.1.0
servers:
  - url: /core/api/v1
security:
  - bearerAuth: []
tags:
  - name: Certificates (HTTP)
  - name: Device JITR
  - name: Device RPC
  - name: Devices
  - name: Edge replication
  - name: Fleets
  - name: Integrations
  - name: MDM
  - name: Notification Event Registry
  - name: Notifications
  - name: OTA
  - name: Observability & data
  - name: Organizations
  - name: Project settings
  - name: Projects
  - name: Projects — Email Templates
  - name: Projects — Notification Subscriptions
  - name: Projects — Status
  - name: System
  - name: Tickets & workflows
  - name: Webhooks
paths:
  /projects/{project_id}/fleets/{fleet_id}/devices/{device_id}/mqtt_connection_details:
    get:
      tags:
        - Fleets
      summary: Get MQTT broker connection details for a device
      description: >
        Returns broker endpoints, topic filters, and certificate status for an
        MQTT fleet device.

        Requires authorized read of device metadata (permission embedded in
        SQL).
      operationId: getDeviceMQTTConnectionDetails
      parameters:
        - in: path
          name: project_id
          required: true
          schema:
            format: uuid
            type: string
        - in: path
          name: fleet_id
          required: true
          schema:
            format: uuid
            type: string
        - in: path
          name: device_id
          required: true
          schema:
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceMQTTConnectionDetailsResponse'
          description: MQTT connection details
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Device is not MQTT-enabled
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Device not found
      security:
        - bearerAuth: []
          orgIdHeader: []
components:
  schemas:
    DeviceMQTTConnectionDetailsResponse:
      properties:
        data:
          $ref: '#/components/schemas/DeviceMQTTConnectionDetails'
        ok:
          enum:
            - 1
          type: integer
      required:
        - ok
        - data
      type: object
    ErrorEnvelope:
      properties:
        detail:
          type: string
        message:
          oneOf:
            - type: string
            - type: object
        ok:
          enum:
            - 0
          type: integer
      required:
        - ok
        - message
        - detail
      type: object
    DeviceMQTTConnectionDetails:
      properties:
        allowed_topics:
          items:
            $ref: '#/components/schemas/DeviceMQTTTopicAccess'
          type: array
        certificate_id:
          format: uuid
          type: string
        certificate_issued:
          type: boolean
        certificate_key_algorithm:
          enum:
            - rsa
            - ecdsa
          type: string
        client_id_hint:
          type: string
        client_id_source:
          type: string
        device_id:
          format: uuid
          type: string
        device_name:
          type: string
        mqtt:
          $ref: '#/components/schemas/DeviceMQTTTransportDetails'
        quic:
          $ref: '#/components/schemas/DeviceMQTTTransportDetails'
        topic_slug:
          type: string
        topics_by_kind:
          additionalProperties:
            properties:
              access:
                type: string
              topic_filter:
                type: string
              topic_prefix:
                type: string
            type: object
          type: object
      required:
        - device_id
        - device_name
        - topic_slug
        - certificate_issued
        - client_id_source
        - client_id_hint
        - mqtt
        - quic
        - allowed_topics
      type: object
    DeviceMQTTTopicAccess:
      properties:
        access:
          type: string
        kind:
          type: string
        topic_filter:
          type: string
        topic_prefix:
          type: string
      required:
        - kind
        - access
        - topic_prefix
        - topic_filter
      type: object
    DeviceMQTTTransportDetails:
      properties:
        ca_required:
          type: boolean
        certificate_required:
          type: boolean
        enabled:
          type: boolean
        host:
          type: string
        port:
          type: integer
        server_name:
          type: string
        transport:
          type: string
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
    orgIdHeader:
      in: header
      name: ORG-ID
      type: apiKey

````