Skip to main content
Connections represent credentials and configuration for databases, warehouses, APIs, and cloud storage. All endpoints below require authentication unless noted. Base URL: https://api.planasonix.com
Auth: Authorization: Bearer plus your API key or JWT access token.

List and CRUD

GET /api/connections

List connections in your workspace.
string
Filter by connector type (for example postgres, snowflake, s3).
Case-insensitive match on connection name.

POST /api/connections

Create a connection. Secret values belong in a credential; config holds non-secret settings.
string
required
Human-readable name unique within the project or workspace (per your policy).
string
required
Connector type identifier.
object
required
Connector-specific configuration (host, database, bucket, region, and so on).
string
Existing credential that stores secrets for this connection.

GET /api/connections/{id}

Return one connection, including metadata and non-secret config.
string
required
Connection identifier.
string
Connection ID.
object
Resolved configuration; secrets are never returned in plain text.

PUT /api/connections/{id}

Update name, config, or linked credentialId.
string
required
Connection identifier.
string
New display name.
object
Replacement or merged config (behavior depends on connector; send full object when in doubt).
string
New credential to attach.

DELETE /api/connections/{id}

Remove a connection. Fails if active pipelines still reference it (unless your API version allows force delete).
string
required
Connection identifier.

Test and introspection

POST /api/connections/test

Validate settings without persisting a connection.
string
required
Connector type.
object
required
Connection configuration to test.
string
Optional credential for secret resolution.

GET /api/connections/{id}/tables

List tables available through the connection.
string
required
Connection identifier.
string
Limit to a schema (when applicable).

GET /api/connections/{id}/columns

Return columns for a specific table.
string
required
Connection identifier.
string
Schema name.
string
required
Table name.

GET /api/connections/{id}/schemas

List schemas (databases that support multiple schemas).
string
required
Connection identifier.

GET /api/connections/{id}/catalogs

List catalogs (Iceberg, Unity Catalog, Hive-metastore style sources).
string
required
Connection identifier.

GET /api/connections/{id}/preview

Sample rows from a table or object.
string
required
Connection identifier.
string
Schema or namespace.
string
Table or object name.
integer
Max rows (default bounded by server policy, often 100–1000).

GET /api/connections/{id}/files

Browse objects in cloud storage connections.
string
required
Connection identifier.
string
Path prefix inside the bucket or container.
string
Directory delimiter (often /).

GET /api/connections/{id}/cloud-schema

Infer or load schema for files in cloud storage (for example Parquet/CSV headers).
string
required
Connection identifier.
string
required
Object key or path to inspect.

Query-parameter variants

GET /api/connections/tables

Same as listing tables, but connectionId is passed as a query parameter instead of a path segment.
string
required
Connection to introspect.
string
Optional schema filter.

GET /api/connections/columns

Column metadata with connectionId (and table identifiers) in the query string.
string
required
Connection to introspect.
string
Schema name.
string
required
Table name.

POST /api/connections/test-query

Run a read-only SQL statement to validate syntax and permissions (subject to row/timeout limits).
string
required
Target connection.
string
required
SQL to execute (typically SELECT only).
integer
Row cap for the result set.

POST /api/connections/databricks/discover

Discover catalogs and schemas for Databricks-backed connections.
string
required
Databricks connection ID.
string
When set, list schemas inside this catalog only.

Credentials

Store secrets separately from connection config.