POST
/
api
/
v1
/
sources
/
add
/
motherduck
/
Add MotherDuck connection
curl --request POST \
  --url https://api.camelai.com/api/v1/sources/add/motherduck/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "motherduck",
  "database_name": "my_database",
  "token": "motherduck_token_12345"
}'
{
  "id": 123
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme

Body

application/json

Serializer for MotherDuck connection configuration.

type
string
required

Connection type identifier. Must be MOTHERDUCK

Minimum length: 1
database_name
string
required

Database name

Required string length: 1 - 255
token
string
required

MotherDuck authentication token

Minimum length: 1
account_name
string
default:MotherDuck

Display name for the connection

Minimum length: 1

Response

id
integer

The ID of the created connection