ClickHouse HTTP
Each cluster runs the ClickHouse HTTP query interface on port 8088. Use tunable disable_traefik_clickhouse_http_port to turn off the server.
Clients may authenticate with credentials or present an authorization token.
Present an authorization token⚓︎
Get the bearer token, which is good for the next 24 hours, to authenticate future API calls. This command assumes you've set the $HDX_HOSTNAME, $HDX_USER and $HDX_PASSWORD environment variables:
ClickHouse HTTP query example⚓︎
If the token is valid, the ClickHouse HTTP server returns an HTTP 200 and the response.
If the token is invalid, the ClickHouse HTTP server returns an HTTP 401 and the following error.
If the token is empty, the ClickHouse HTTP server returns an HTTP 401 and the following error.
Authenticate with credentials⚓︎
Local user accounts can authenticate with credentials.
If the credentials are valid, the ClickHouse HTTP server returns an HTTP 200 and the response.
If the credentials are invalid, the ClickHouse HTTP server returns an HTTP 400 and the following error.
Learn more on the Enable Query Authentication, User Authentication, and Configure IP Access pages.