---
title: "Flight Hub connection status"
method: GET
path: "/orgmng/fh-service-accounts/connection-status"
tags: ["Flight Hub Service Accounts"]
---

# Flight Hub connection status

`GET /orgmng/fh-service-accounts/connection-status`

## Request

- Base URL: `http://localhost:8486`
- URL: `http://localhost:8486/orgmng/fh-service-accounts/connection-status`
- Auth: API key in header `x-auth-token`

Returns whether Flight Hub MQTT clients are connected (per EMQX) for each service account in the current organization

## Query parameters

- `organizationId` integer

## Response `200`

Status retrieved successfully

- FlightHubConnectionStatusDTO
  - `flightHubConnected` boolean: True if any Flight Hub service account has an active MQTT connection
  - `serviceAccounts` ServiceAccountConnectionDTO[]: Per–service-account connection status
    - `id` integer: Service account ID
    - `username` string: MQTT username (fh_sa_<id>)
    - `connected` boolean: Whether at least one MQTT client is connected for this username

## Other responses

- `500`: Internal server error

---

[API](https://skmtc.dev/airdodge/apis/api-core.md) - [All operations](https://skmtc.dev/airdodge/apis/api-core/llms.txt) - [OpenAPI document](https://skmtc.dev/airdodge/apis/api-core/revisions/fb3c5a1055cc?raw)
