List available integrations

List every AFPS integration PLACED in the current space — homed there, holding a row there, or shipped with the deployment — enriched with active + block_user_connections flags for that same space. Placement, not activation: an integration placed here and switched off is listed, with active: false. An integration homed in another space of the organization and placed nowhere else is NOT listed, whatever the caller's organization role: the home is the only authority there is, and a personal space is read by nobody else (RBAC spec §3.6). Rows are sorted by id, so offset pagination (limit/offset) walks a stable order. Supports a fields projection selector — request ?fields=id,source to drop the heavy per-row manifest and fetch only what you need.

GET/api/integrations

Authorization

better-auth.session_token<token>

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

In: cookie

Query Parameters

limit?integer
Default100
Range1 <= value <= 100
offset?integer

Number of items to skip before the first returned item. A value that is not a non-negative integer is refused with 400 (param: offset).

Default0
Range0 <= value
fields?string

Comma-separated allowlist of fields to return per item (id is always included). Allowed: id, manifest, orgId, source, active, block_user_connections. An unknown field is a 400.

q?string

Free-text filter, combined with every other filter: a case-insensitive substring of the package id, the manifest's display_name or its description, % and _ taken as typed. Longer than 200 characters is rejected with 400.

Lengthlength <= 200
id?array<string>

Only these integrations, by package id, comma-separated on the wire (id=@acme/gmail,@acme/slack). An id not placed in this space is absent from the answer, never an error. At most 100 ids. Omit (or send an empty value) for every integration.

Itemsitems <= 100

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"
{
  "object": "list",
  "data": [
    {
      "id": "string",
      "manifest": {},
      "orgId": "string",
      "source": "local",
      "active": true,
      "block_user_connections": true
    }
  ],
  "total": 0,
  "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"
}