POST
/
api
/
v1
/
sources
/
add
/
postgres
/
curl --request POST \
--url https://api.camelai.com/api/v1/sources/add/postgres/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"type": "postgres",
"hostname": "localhost",
"port": 5432,
"username": "postgres",
"password": "password",
"database_name": "mydb",
"selected_schemas": [
"public",
"analytics"
]
}'
{
  "id": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Serializer for PostgreSQL connection configuration.

Response

200
application/json

The response is of type object.