POST
/
api
/
v1
/
sources
/
add
/
mongodb
/
Add MongoDB connection
curl --request POST \
  --url https://api.camelai.com/api/v1/sources/add/mongodb/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "mongodb",
  "account_name": "My MongoDB Database",
  "connection_string": "mongodb+srv://username:[email protected]/mydatabase"
}'
{
  "id": 123
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer scheme

Body

application/json

Serializer for MongoDB connection configuration.

type
string
required

Connection type identifier. Must be MONGODB

Minimum length: 1
connection_string
string
required

MongoDB connection string (e.g., mongodb://user:pass@host/db or mongodb+srv://user:[email protected]/db)

Minimum length: 1
account_name
string
default:MongoDB

Display name for the connection

Minimum length: 1

Response

id
integer

The ID of the created connection