Connections

Get Available Connections

get

List all available connections that can be configured.

Returns a list of available connection types with their configuration parameters.

Responses
200

Successful Response

application/json
get
/connections/available
200

Successful Response

Get Connections

get

List all available connections for the user in his current organization.

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
connection_providerany ofOptional
stringOptional
or
nullOptional
limitintegerOptionalDefault: 1000
offsetintegerOptionalDefault: 0
Responses
200

Successful Response

application/json
get
/connections

Create Connection

post

Create a new connection. The connection will be created in the user's current organization.

Authorizations
OAuth2passwordRequired
Token URL:
Body

Request model for creating/updating a connection.

namestringOptionalDefault: Unnamed connection
provider_idstringRequired
connection_type_idstringRequired
connection_provider_dataobject · BaseConnectionDataModelRequired

Base data model for all connections.

Responses
post
/connections

Get Connection By Id

get
Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Query parameters
refresh_oauth_tokensbooleanOptionalDefault: false
Responses
200

Successful Response

application/json
get
/connections/{connection_id}

Update Connection

put

Update the connection with the given id.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Body

Request model for creating/updating a connection.

namestringOptionalDefault: Unnamed connection
provider_idstringRequired
connection_type_idstringRequired
connection_provider_dataobject · BaseConnectionDataModelRequired

Base data model for all connections.

Responses
200

Successful Response

application/json
put
/connections/{connection_id}

Delete Connection

delete

Delete a connection given its ID.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Responses
delete
/connections/{connection_id}

No content

Patch Connection

patch

Patch a connection to update specific fields like name.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Body

Request model for partially updating a connection (e.g., renaming).

namestringRequired

New name for the connection

Responses
200

Successful Response

application/json
patch
/connections/{connection_id}

Get Connection Health

get

Check the health of a connection.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Responses
200

Successful Response

application/json
get
/connections/{connection_id}/health

Get Oauth Url

post

Return the OAuth URL for a connection provider.

Authorizations
OAuth2passwordRequired
Token URL:
Body

Request model for creating/updating a connection.

namestringOptionalDefault: Unnamed connection
provider_idstringRequired
connection_type_idstringRequired
connection_provider_dataobject · BaseConnectionDataModelRequired

Base data model for all connections.

Responses
200

Successful Response

application/json
Responsestring
post
/connections/oauth/start

Create Connection From Callback

post

Create a new connection from an OAuth callback.

This endpoint is used to create a new connection for providers that use the OAuth protocol. The OAuth flow is initialized by the stack frontend, where the user is redirected to the provider's authorization page. Once the user authorizes the application, they are redirected back to the stack frontend with a code parameter. This code is then sent to this endpoint, which uses it to create a new connection for said provider completing the OAuth flow.

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
codestringRequired
Body

Request model for creating/updating a connection.

namestringOptionalDefault: Unnamed connection
provider_idstringRequired
connection_type_idstringRequired
connection_provider_dataobject · BaseConnectionDataModelRequired

Base data model for all connections.

Responses
post
/connections/oauth/callback

Update Connection From Callback

put

Update an existing connection from an OAuth callback.

Mirrors the creation flow but updates the specified connection with new OAuth credentials. Path chosen for consistency with POST /oauth/callback and REST semantics.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Query parameters
codestringRequired
Body

Request model for creating/updating a connection.

namestringOptionalDefault: Unnamed connection
provider_idstringRequired
connection_type_idstringRequired
connection_provider_dataobject · BaseConnectionDataModelRequired

Base data model for all connections.

Responses
200

Successful Response

application/json
put
/connections/oauth/callback/{connection_id}

Get Connection Resources

get

Get the resources associated with a connection.

This endpoint returns the information for the selected resource in the connection.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Query parameters
resource_idsstring[]Optional
refresh_oauth_tokensbooleanOptionalDefault: false
Responses
200

Successful Response

application/json
get
/connections/{connection_id}/resources

Get Children Resources

get

Get the children of a resource associated with a connection.

This endpoint can be used to navigate the resources in the connection. If no resource_id is provided, it will return the list of resources at the root of the connection. If a resource_id is provided, it will return the children of that resource. If the resource_id corresponds to a file, an empty list will be returned.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Query parameters
resource_idany ofOptional
stringOptional
or
nullOptional
cursorany ofOptional

Optional identifier for the page that should be returned. If it is not provided, the first page will be returned.

Example: ZXhhbXBsZV9jdXJzb3I=
stringOptional
or
nullOptional
page_sizeinteger · min: 1 · max: 1000Optional

Number of items to be returned in the page.

Default: 50
refresh_oauth_tokensbooleanOptionalDefault: false
Responses
200

Successful Response

application/json
get
/connections/{connection_id}/resources/children
get

Search for resources in the connection that match the query.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Query parameters
querystringRequired

Search query string

cursorany ofOptional

Optional identifier for the page that should be returned. If it is not provided, the first page will be returned.

Example: ZXhhbXBsZV9jdXJzb3I=
stringOptional
or
nullOptional
page_sizeinteger · min: 1 · max: 1000Optional

Number of items to be returned in the page.

Default: 50
refresh_oauth_tokensbooleanOptionalDefault: false
Responses
200

Successful Response

application/json
get
/connections/{connection_id}/resources/search

Get Paginated Connections

get

List all available connections for the user in his current organization.

Supports dynamic field__operator filters.

Authorizations
OAuth2passwordRequired
Token URL:
Query parameters
limitintegerOptionalDefault: 10
offsetintegerOptionalDefault: 0
sort_bystring · enumOptionalDefault: created_atPossible values:
sort_dirstring · enumOptionalDefault: descPossible values:
Responses
200

Successful Response

application/json
get
/api/v1/connections

Get Connection Rbac

get

Get the RBA info for a connection.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Responses
200

Successful Response

application/json
get
/api/v1/connections/{connection_id}/rbac

Update Connection Rbac

put

Update the RBAC info for a connection.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Body
subject_typestring · enumRequired

RBAC subject types for access control.

Possible values:
rolestringRequired
subject_idstring · uuidRequired
Responses
200

Successful Response

application/json
Responseany
put
/api/v1/connections/{connection_id}/rbac

No content

Delete Connection Rbac

delete

Delete RBA info for the connection.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Query parameters
subject_typestring · enumRequired

RBAC subject types for access control.

Possible values:
subject_idstring · uuidRequired
Responses
delete
/api/v1/connections/{connection_id}/rbac

No content

Update Connection Organization Role

patch

Update the organization-level role for a connection.

Authorizations
OAuth2passwordRequired
Token URL:
Path parameters
connection_idstring · uuidRequired
Body

Request model for updating connection organization-level role.

roleany ofRequired

Organization-level role for the connection. Set to null to remove org-level access.

stringOptional
or
nullOptional
Responses
200

Successful Response

application/json
Responseany
patch
/api/v1/connections/{connection_id}/organization-role

No content

Last updated

Was this helpful?