ClickHouse
Analytics database: SQL queries, databases and tables
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- HTTP interface URL (https://…:8443)RequiredHTTPS URL
- UsernameOptional
- PasswordSecretOptional
Where to find them
- In ClickHouse Cloud, open your service → “Connect” and choose “HTTPS”: the address (ending in :8443) and the user are listed there. On a self-hosted server, use its https address with port 8443.
- Create a read-only user for this connection (recommended) and enter its password.
- If the service restricts access by IP, allow the IP addresses requests come from. The connection uses the database's HTTP interface, not the ClickHouse Cloud administration API.
Tools (2)
ClickHouse API request
CLICKHOUSE_SEND_REQUESTAuthenticated call to the ClickHouse API ({url}). Any endpoint of the API is allowed. The SQL goes in the query parameter and GET requests are read-only (the server rejects the ones that modify data). Examples: GET /?query=SHOW DATABASES&default_format=JSON, GET /?query=SELECT * FROM system.tables LIMIT 20&default_format=JSON, GET /?database=my_db&query=DESCRIBE TABLE my_table&default_format=JSON. For INSERT or DDL: POST / with the SQL as a text body (body_base64 and content_type text/plain). GET /ping does not require authentication.
Required scopes
No scopes required
Input
ClickHouse API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Read-only SQL query
CLICKHOUSE_RUN_QUERYRuns a read-only SQL query (SELECT, SHOW, DESCRIBE, EXPLAIN…) and returns columns and rows. The server rejects queries that modify data.
Required scopes
No scopes required
Input
Read-only SQL query input Name Type Description sqlrequiredstringSQL query, without a FORMAT clause max_rowsintegerMaximum number of rows returnedDefault: 100

