POST
/
api
/
v1
/
sources
/
add
/
snowflake
/
Add Snowflake connection
curl --request POST \
  --url https://api.camelai.com/api/v1/sources/add/snowflake/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "snowflake",
  "account": "myaccount.us-east-1",
  "user": "myuser",
  "password": "mypassword",
  "warehouse": "COMPUTE_WH"
}'
{
  "id": 123,
  "public_key_sql": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme

Body

application/json

Serializer for Snowflake connection configuration.

type
string
required

Connection type identifier. Must be SNOWFLAKE

Minimum length: 1
account
string
required

Snowflake account identifier (e.g., xy12345.us-east-1)

Required string length: 1 - 255
user
string
required

Snowflake username

Required string length: 1 - 255
account_name
string
default:Snowflake

Display name for the connection

Minimum length: 1
password
string

Password for authentication (optional - use either password or public_key)

public_key
string

Public key for key-pair authentication (optional - use either password or public_key)

warehouse
string

Snowflake warehouse to use (optional)

Response

id
integer

The ID of the created connection

public_key_sql
string

SQL command to add public key to Snowflake (only for key-pair auth)