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.
type
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.
name
string
required
Human-readable name unique within the project or workspace (per your policy).
type
string
required
Connector type identifier.
config
object
required
Connector-specific configuration (host, database, bucket, region, and so on).
credentialId
string
Existing credential that stores secrets for this connection.

GET /api/connections/{id}

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

PUT /api/connections/{id}

Update name, config, or linked credentialId.
id
string
required
Connection identifier.
name
string
New display name.
config
object
Replacement or merged config (behavior depends on connector; send full object when in doubt).
credentialId
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).
id
string
required
Connection identifier.

Test and introspection

POST /api/connections/test

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

GET /api/connections/{id}/tables

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

GET /api/connections/{id}/columns

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

GET /api/connections/{id}/schemas

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

GET /api/connections/{id}/catalogs

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

GET /api/connections/{id}/preview

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

GET /api/connections/{id}/files

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

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

Infer or load schema for files in cloud storage (for example Parquet/CSV headers).
id
string
required
Connection identifier.
path
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.
connectionId
string
required
Connection to introspect.
schema
string
Optional schema filter.

GET /api/connections/columns

Column metadata with connectionId (and table identifiers) in the query string.
connectionId
string
required
Connection to introspect.
schema
string
Schema name.
table
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).
connectionId
string
required
Target connection.
sql
string
required
SQL to execute (typically SELECT only).
limit
integer
Row cap for the result set.

POST /api/connections/databricks/discover

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

Credentials

Store secrets separately from connection config.