Connections
Every source and destination connects to an external system. That connection is either written inline in the spec (settings + auth) or saved once as a connection and referenced by name with settings.connection_name. Saved connections keep credentials out of specs, can be reused across pipelines, and can be validated and explored before anything runs.
At a glance
- Two ways to connect - inline
settings+auth, or a saved connection referenced byconnection_name. - Credentials stay out of specs - saved connections are reused across pipelines.
- Validate and explore first - confirm reachability and browse the structure before a run.
- Permission-gated -
connection:list,connection:view,connection:create,connection:edit,connection:delete.
Inline vs saved
Code
Code
Both forms work for all six source and destination types. When connection_name is set, the app resolves the saved parameters and credentials at run time; the inline fields are not needed.
What a connection holds
| Field | Notes |
|---|---|
name | Unique - this is what settings.connection_name points at |
description | Optional |
type / provider | Same taxonomy as sources and destinations |
connParameters | Non-secret connection fields (URL, database, bucket, ...) |
auth | Credentials (user/password, keys, tokens, ...) |
List and get responses include the connection's parameters (flattened into the response body) but not its credentials. GET /api/connections/{id}/with-auth is the only read that returns the auth block.
The API
Base path /api/connections. All calls are permission-checked.
| Endpoint | Permission | Purpose |
|---|---|---|
GET /api/connections | connection:list | Paged list; filter by name, type, provider, deleted, creator, dates |
GET /api/connections/{id} | connection:view | One connection, without credentials |
GET /api/connections/{id}/with-auth | connection:view | Includes the auth block |
POST /api/connections | connection:create | Create |
PUT /api/connections/{id} | connection:edit | Update |
DELETE /api/connections/{id} | connection:delete | Soft delete |
POST /api/connections/validate | connection:create / connection:edit | Validate without saving |
GET /api/connections/{id}/explore | connection:view | Discover the next level (see below) |
POST /api/connections/explore | connection:view | Explore an unsaved definition |
GET /api/connections/{id}/preview | connection:view | Bounded row preview |
Validate, explore, preview
- Validate (
POST /api/connections/validate) checks a connection definition without saving it - the fastest way to confirm credentials and reachability before applying a pipeline. - Explore (
.../explore) lists the next level of the connection's hierarchy via provider-specific discovery - databases, schemas, tables, buckets, or folders - one paginated level at a time (items,hasMore). Use it to build assets from real names instead of guessing. - Preview (
.../preview) returns a bounded set of rows (columns,rows,limit,truncated) for a JDBC table/view or a supported local file.
Permissions
| Action | Permission |
|---|---|
| List | connection:list |
| View / explore / preview | connection:view |
| Create | connection:create |
| Edit | connection:edit |
| Delete | connection:delete |
Related pages
- Sources - reading with a connection
- Destinations - writing with a connection
- Auth Troubleshooting - 401/403 in depth
- Environment Variables - connection resolver configuration