POST
/
api
/
v1
/
sources
/
add
/
clickhouse
/
Add ClickHouse connection
curl --request POST \
  --url https://api.camelai.com/api/v1/sources/add/clickhouse/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "clickhouse",
  "host": "localhost",
  "port": 8443,
  "username": "default",
  "password": "password",
  "database": "default"
}'
{
  "id": 123
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme

Body

application/json

Serializer for ClickHouse connection configuration.

type
string
required

Connection type identifier. Must be CLICKHOUSE

Minimum length: 1
host
string
required

ClickHouse server hostname

Required string length: 1 - 255
username
string
required

Database username

Required string length: 1 - 255
password
string
required

Database password

Minimum length: 1
account_name
string
default:ClickHouse

Display name for the connection

Minimum length: 1
port
integer
default:8443

Port number

database
string

Database name (optional)

Maximum length: 255

Response

id
integer

The ID of the created connection