What the install lets an agent do
const url = 'https://example.com/api/v1/auth/me/agent-policy';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/auth/me/agent-policyReturns the install’s resolved agent policy, always, ask or never for each operation class (read, write, destructive, credential_destination), and whether this request is an agent’s (an agent token, or any request over MCP) and so governed by it. Each class names the layer that set it (platform, role, or tool), and an overridden tool is listed with its own policy; the strictest layer wins. The server refuses an agent a never class on every route; ask is the client’s to confirm. Requires authentication; answers even when the policy refuses every read.
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
Whether this request is an agent’s (an agent token, or any request over MCP), so the policy governs it
The resolved policy for each operation class, for the caller’s roles
object
The operation class
Always runs; ask runs, and the client confirms with its person first; never is refused by the server
The role whose override set the policy, when the source is role
The layer that set the policy: the platform’s class value, a role’s override, or the tool’s own
The resolved policy for each tool the install overrides; every other tool takes its class’s
object
The tool’s operation class
Always runs; ask runs, and the client confirms with its person first; never is refused by the server
The role whose override set the policy, when the source is role
The layer that set the policy: the platform’s class value, a role’s override, or the tool’s own
The tool (operation ID) an override names
Example
{ "$schema": "/api/v1/schemas/AgentPolicyOutputBody.json", "classes": [ { "class": "read", "policy": "always", "source": "platform" } ], "tools": [ { "class": "read", "policy": "always", "source": "platform" } ]}default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{ "$schema": "/api/v1/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "about:blank"}