API reference
ClickStack exposes a REST API for programmatically managing dashboards, alerts, and data sources. The API is available for both Managed ClickStack (ClickHouse Cloud) and ClickStack Open Source deployments, though the endpoints and authentication differ between the two.
API reference documentation
- Managed ClickStack
- Open Source ClickStack
For Managed ClickStack, the API is accessed through the ClickHouse Cloud API. The ClickStack endpoints are available in the Cloud API specification.
The following endpoints are available:
| Resource | Operations |
|---|---|
| Dashboards | Create, list, get, update, and delete dashboards |
| Alerts | Create, list, get, update, and delete alerts |
| Sources | List data sources |
For ClickStack Open Source, the full API specification is maintained in the HyperDX repository and can be viewed interactively or downloaded as an OpenAPI spec:
The following endpoints are available:
| Resource | Operations |
|---|---|
| Dashboards | Create, list, get, update, and delete dashboards |
| Alerts | Create, list, get, update, and delete alerts |
| Charts | Query time series data (POST only) |
| Sources | List data sources |
| Webhooks | List webhooks |
Authentication
- Managed ClickStack
- Open Source ClickStack
Managed ClickStack uses the ClickHouse Cloud API key for authentication via HTTP Basic Authentication. To create and manage API keys, see Managing API keys.
Include the key ID and secret using HTTP Basic Authentication:
ClickStack Open Source uses a Bearer token for authentication via a Personal API Access Key.
To obtain an API key:
- Open HyperDX at your ClickStack URL (e.g., http://localhost:8080)
- Create an account or log in if needed
- Navigate to Team Settings → API Keys
- Copy your Personal API Access Key
This is different from the Ingestion API Key found in Team Settings, which is used to authenticate telemetry data sent to the OpenTelemetry collector.
The API server runs on port 8000 by default (separate from the UI on port 8080). When using the all-in-one Docker image, ensure you map this port explicitly:
Include the key in the Authorization header:
Base URL and request format
- Managed ClickStack
- Open Source ClickStack
All Managed ClickStack API requests are sent to the ClickHouse Cloud API:
You can find your Organization ID in the ClickHouse Cloud console under Organization → Organization details. Your Service ID is visible in the service URL or on the service details page.