Get the org-wide default connection for this integration

The cross-agent governance baseline: one default connection set per (space, integration) used by every consuming agent. enforce: true locks every member; enforce: false is overridable by a member pin. Either way the set binds whole: a member that is no longer reachable fails the run with pinned_connection_unavailable rather than falling through. Returns 204 when unset.

GET/api/integrations/{packageId}/default

Authorization

better-auth.session_token<token>

Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.

In: cookie

Path Parameters

packageId*string

Integration package id (e.g. @official/gmail).

Match^@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*$

Header Parameters

X-Org-Id?string

Organization ID. Required for cookie auth. Not needed for API key auth (org resolved from key).

Formatuuid
X-Space-Id?string

Space ID. Required for space-scoped routes (agents, runs, schedules, and space-scoped module routes). Not needed for API key auth (space resolved from key).

curl -X GET "https://your-instance/api/integrations/string/default"
{
  "integration_package_id": "string",
  "connection_ids": [
    "9093a418-aa3e-41a3-ae26-08ea1b46e535"
  ],
  "enforce": true,
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}
Empty
{
  "type": "https://docs.appstrate.dev/errors/forbidden",
  "title": "Forbidden",
  "status": 403,
  "detail": "Insufficient permissions",
  "code": "forbidden",
  "request_id": "req_abc123"
}