Read what the space decided about the integration's tools

What a space can review about a remote integration's tools: listed, every distinct (name, fingerprint) the caller's connections last listed (definition is null for a tool past the snapshot's size cap), the approvals (pinned definitions, several fingerprints per tool may coexist) and the blocks holding in the space: its own and the organization's, each row's level saying which. Requires integrations:read.

GET/api/integrations/{packageId}/tool-policy

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/tool-policy"
{
  "listed": [
    {
      "name": "string",
      "fingerprint": "string",
      "definition": {}
    }
  ],
  "approvals": [
    {
      "tool_name": "string",
      "fingerprint": "string",
      "definition": {},
      "approved_by": "string",
      "approved_at": "2019-08-24T14:15:22Z",
      "level": "space"
    }
  ],
  "blocks": [
    {
      "tool_name": "string",
      "blocked_by": "string",
      "blocked_at": "2019-08-24T14:15:22Z",
      "level": "space"
    }
  ]
}
{
  "type": "https://docs.appstrate.dev/errors/forbidden",
  "title": "Forbidden",
  "status": 403,
  "detail": "Insufficient permissions",
  "code": "forbidden",
  "request_id": "req_abc123"
}
{
  "type": "https://docs.appstrate.dev/errors/not-found",
  "title": "Not Found",
  "status": 404,
  "detail": "Resource not found",
  "code": "not_found",
  "request_id": "req_abc123"
}