cURL
PostgreSQLExample
curl --request POST \ --url https://api.camelai.com/api/v1/sources/ \ --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" ]}'
200
{ "type": "POSTGRES", "hostname": "localhost", "port": 5432, "username": "postgres", "password": "password", "database_name": "mydb", "selected_schemas": [ "public", "analytics" ]}
Create a new connection of any supported type. The type field determines which connection type to create.
API key authentication using Bearer scheme
Serializer for PostgreSQL connection configuration.
Response serializer for add connection endpoint.
Was this page helpful?