curl requests for each ClickPipe type.
Authentication
The ClickHouse Cloud API uses HTTP Basic authentication. You need an API key (key ID + key secret) with permissions on the target service. See Managing API keys for instructions on creating one. Set up the following environment variables before running any of the examples below:Base URL
Endpoints
All ClickPipes endpoints are scoped to a ClickHouse Cloud service:| Method | Path | Description |
|---|---|---|
GET | /organizations/{organizationId}/services/{serviceId}/clickpipes | List all ClickPipes |
POST | /organizations/{organizationId}/services/{serviceId}/clickpipes | Create a ClickPipe |
GET | /organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId} | Get a ClickPipe |
PATCH | /organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId} | Update a ClickPipe |
DELETE | /organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId} | Delete a ClickPipe |
GET | /organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}/settings | Get ClickPipe settings |
PUT | /organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}/settings | Update ClickPipe settings |
PATCH | /organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}/scaling | Update ClickPipe scaling |
PATCH | /organizations/{organizationId}/services/{serviceId}/clickpipes/{clickPipeId}/state | Update ClickPipe state (start/stop) |
| Method | Path | Description |
|---|---|---|
GET | /organizations/{organizationId}/clickpipes/cdcScaling | Get CDC ClickPipes scaling |
PATCH | /organizations/{organizationId}/clickpipes/cdcScaling | Update CDC ClickPipes scaling |
Examples
List ClickPipes
Get a ClickPipe
Stop or start a ClickPipe
Delete a ClickPipe
Creating ClickPipes
ThePOST /clickpipes request body varies by source type. The examples below show the structure for each supported ClickPipe type. For the authoritative JSON schemas, refer to the Swagger UI.
Kafka
Supported Kafka-compatible sources:kafka, confluent, msk, azureeventhub, redpanda, warpstream.
Amazon Kinesis
Amazon S3
Google Cloud Storage
serviceAccountKey must be the base64-encoded content of a GCP service account JSON key file.
Azure Blob Storage
Postgres CDC
MySQL CDC
MongoDB CDC
BigQuery
serviceAccountFile must be the base64-encoded content of a GCP service account JSON key file.