Hook Tool Parameter Restoration Authorization API
Use the organization-level API to manage which tools or MCP connectors can receive real parameter values restored by a Hook.
When you use a Hook to tokenize sensitive data, tools may initially receive only tokens. An organization can authorize specific tools or MCP connectors to receive the restored real values in tool parameters. This authorization does not globally unmask data or make all tools trusted.
For example, an organization may need its own order lookup tool to receive real query values while other tools continue to receive only tokens. The owner can authorize just the order lookup tool and revoke that authorization when it is no longer needed. The updated authorization takes effect when tools are assembled again for the next message.
Permissions and Scope
Active organization members can read the authorization list; only the organization owner can grant or revoke authorization.
You can authorize non-global API, Function, and MCP tools belonging to your organization, or your organization's MCP connectors. Authorizing a connector covers the child tools provided through that connector.
Global tools cannot be authorized through this API. You cannot authorize tools or connectors belonging to another organization.
The server fixes the authorization scope to
resolve_aliases. Do not setscopein the request.
This authorization applies to the organization, rather than to a specific Agent. Authorize only targets that actually need to receive real parameter values.
Read the Authorization List
GET /api/v1/organizations/<organization-id>/tool-trusts/
The response is an unpaginated array. Each entry contains:
id
Authorization ID; use this ID, rather than the tool ID, when revoking authorization
tool
Tool summary: id, name, displayName, and toolType; null for connector authorization
connector
Connector summary: id and displayName; null for tool authorization
scope
resolve_aliases
createdAt
Creation time
Authorize a Target
POST /api/v1/organizations/<organization-id>/tool-trusts/
Authorize a tool:
Authorize a connector:
Provide exactly one of tool or connector; do not provide both or omit both. A successful request returns 201, with the same response structure as a single authorization entry in the list.
Revocation and When Changes Take Effect
DELETE /api/v1/organizations/<organization-id>/tool-trusts/<trust-id>/
A successful request returns 204 and removes the authorization from the list. Existing authorizations also appear in the same list and can be revoked through the API. Each grant or revocation records the operator in the audit log.
Handle Access Denials and Input Errors
Requests to grant or revoke authorization from anyone other than the owner are denied. Requests using another organization's URL are also denied, and the revocation endpoint does not expose authorization IDs belonging to other organizations.
The following validation failures return 400. For the error response format, see API Conventions:
exactly_one_target
Provide only one of tool or connector
not_in_organization
Use a tool or connector belonging to your organization
global_tool_not_grantable
Do not authorize global tools through this API
tool_type_not_resolvable
Use an API, Function, or MCP tool that can receive restored parameters
already_trusted
The target is already authorized; read the existing list
unknown_field
Remove unsupported input fields, such as scope
For tool definitions and authentication methods, see the API Tool Engineering Guide.
Last updated
Was this helpful?