For the complete documentation index, see llms.txt. This page is also available as Markdown.

GET /v2/connections

List Connections

get

List connections visible to the caller in their organization.

Visibility follows RBAC: a non-admin sees connections they created, shared with them (directly or via a group), or carrying an org-level role; an admin sees the whole organization. Degraded connections (rehydration failed) are included with status="needs_reconnection", not dropped.

How to use

Filter by a catalog provider_id and select a connection you may use. Non-admin results are access-filtered; missing entries may be unshared. needs_reconnection means repair is needed. This API has no connection-create route.

Authentication and permissions

Required permissions: connections.read. Resource and owner access checks also apply.

Authorizations
AuthorizationstringRequired

Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.

Query parameters
provider_idstring · nullableOptional

Filter by provider id

offsetintegerOptional

Number of items to skip

Default: 0
limitinteger · min: 1 · max: 100Optional

Number of items per page

Default: 50
Responses
200

Successful Response

application/json
response_codestring · nullableOptional

Machine-readable response code, when provided.

offsetintegerOptionalDefault: 0
limitintegerOptionalDefault: 50
totalintegerOptionalDefault: 0
get/v2/connections
curl
curl --fail-with-body -sS \
  "$STACKAI_BASE_URL/v2/connections" \
  -H "Authorization: Bearer $STACKAI_API_KEY"
{
  "response_code": "text",
  "meta": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "data": [
    {
      "connection_id": "123e4567-e89b-12d3-a456-426614174000",
      "provider_id": "text",
      "auth_method": "text",
      "name": "text",
      "status": "active",
      "expires_at": "2026-01-01T00:00:00.000Z",
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z"
    }
  ],
  "offset": 0,
  "limit": 50,
  "total": 0
}

Last updated

Was this helpful?