cURL
PostgreSQL
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 }
Create a new PostgreSQL database connection.
JWT or API key authentication using Bearer scheme
Serializer for PostgreSQL connection configuration.
The response is of type object.
object
Was this page helpful?