Skip to content

What the install lets an agent do

GET
/auth/me/agent-policy
curl --request GET \
--url https://example.com/api/v1/auth/me/agent-policy

Returns 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.

OK

Media type application/json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
applies
required

Whether this request is an agent’s (an agent token, or any request over MCP), so the policy governs it

boolean
classes
required

The resolved policy for each operation class, for the caller’s roles

Array<object> | null
object
class
required

The operation class

string
Allowed values: read write destructive credential_destination
policy
required

Always runs; ask runs, and the client confirms with its person first; never is refused by the server

string
Allowed values: always ask never
role

The role whose override set the policy, when the source is role

string
source
required

The layer that set the policy: the platform’s class value, a role’s override, or the tool’s own

string
Allowed values: platform role tool
tools
required

The resolved policy for each tool the install overrides; every other tool takes its class’s

Array<object> | null
object
class
required

The tool’s operation class

string
Allowed values: read write destructive credential_destination
policy
required

Always runs; ask runs, and the client confirms with its person first; never is refused by the server

string
Allowed values: always ask never
role

The role whose override set the policy, when the source is role

string
source
required

The layer that set the policy: the platform’s class value, a role’s override, or the tool’s own

string
Allowed values: platform role tool
tool
required

The tool (operation ID) an override names

string

Example

{
"$schema": "/api/v1/schemas/AgentPolicyOutputBody.json",
"classes": [
{
"class": "read",
"policy": "always",
"source": "platform"
}
],
"tools": [
{
"class": "read",
"policy": "always",
"source": "platform"
}
]
}

Error

Media type application/problem+json
object
$schema

A URL to the JSON Schema for this object.

string format: uri
detail

A human-readable explanation specific to this occurrence of the problem.

string
errors

Optional list of individual error details

Array<object> | null
object
location

Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’

string
message

Error message text

string
value

The value at the given location

instance

A URI reference that identifies the specific occurrence of the problem.

string format: uri
status

HTTP status code

integer format: int64
title

A short, human-readable summary of the problem type. This value should not change between occurrences of the error.

string
type

A URI reference to human-readable documentation for the error.

string format: uri
default: about:blank

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"
}