List integration packages across the organization's spaces

Read-only index of the integration packages of every space of the organization where the caller holds integrations:read: the rows of GET /api/packages/integrations, one row per package ACTIVE in at least one of those spaces, in the order of the single-space index (newest first, then by id). space_ids names those spaces (map them to names with GET /api/spaces), the package's home first when it is one of them, then in the order of GET /api/spaces. home_space_id and the home_* flags follow the caller's role in the package's home, as on the single-space index. A caller who reads this type in no space gets an empty list. An unknown query parameter is rejected with 400. A space the caller holds no role in (a closed space not joined, a private space they are not a member of) contributes nothing, and a credential pinned to a space (a space API key, a space-bound MCP token) reaches that space only. No X-Space-Id: the organization is the path's. An end-user is refused with 403.

GET/api/orgs/{orgId}/packages/integrations

Authorization

better-auth.session_token<token>

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

In: cookie

Path Parameters

orgId*string

Organization ID.

curl -X GET "https://your-instance/api/orgs/string/packages/integrations"
{
  "object": "list",
  "data": [
    {
      "id": "string",
      "space_ids": [
        "string"
      ],
      "orgId": "string",
      "name": "string",
      "description": "string",
      "icon": "string",
      "keywords": [
        "string"
      ],
      "source": "local",
      "created_by": "string",
      "created_by_name": "string",
      "used_by_agents": 0,
      "version": "string",
      "auto_installed": true,
      "forked_from": "string",
      "home_space_id": "string",
      "home_writable": true,
      "home_deletable": true,
      "home_shareable": true,
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "source_kind": "local",
      "server": {
        "type": "string",
        "entry_point": "string"
      },
      "authenticated": true
    }
  ],
  "hasMore": true
}

{
  "type": "https://docs.appstrate.dev/errors/validation-failed",
  "title": "Validation Failed",
  "status": 400,
  "detail": "name: Invalid input: expected string, received undefined (+2 more)",
  "code": "validation_failed",
  "request_id": "req_abc123",
  "errors": [
    {
      "field": "name",
      "code": "required",
      "message": "Invalid input: expected string, received undefined"
    },
    {
      "field": "email",
      "code": "invalid_format",
      "message": "Invalid email address"
    },
    {
      "field": "age",
      "code": "invalid_type",
      "message": "Invalid input: expected number, received string"
    }
  ]
}

{
  "type": "https://docs.appstrate.dev/errors/unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "detail": "Invalid or missing session",
  "code": "unauthorized",
  "request_id": "req_abc123"
}
{
  "type": "https://docs.appstrate.dev/errors/forbidden",
  "title": "Forbidden",
  "status": 403,
  "detail": "Insufficient permissions",
  "code": "forbidden",
  "request_id": "req_abc123"
}