Upsert agent policy
Create or update a StableOps Agent policy for the current organization and environment, configuring tool permissions and approval controls for automation.
/v1/agent/policyAuthorization
bearerAuth Paste your API key from the dashboard.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/agent/policy" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "string",
"allowed_tools": [
"string"
],
"require_approval": true,
"created_at": "string",
"updated_at": "string"
}{
"statusCode": -9007199254740991,
"message": "string",
"error": "string"
}{
"statusCode": -9007199254740991,
"message": "string",
"error": "string"
}How is this guide?
Last updated
Get agent policy GET
Retrieve the StableOps Agent policy for your organization and environment, or its default policy, to inspect allowed tools and approval rules before acting.
Request an agent action POST
Request a StableOps Agent tool action, inspect automatic approval for permitted read-only tools, and handle pending approval before executing controlled writes.