---
title: "Set sharing, tool rules, and spending limits for agents"
method: PUT
path: "/v1/org/personal-agent-policy"
tags: ["Agents"]
---

# Set sharing, tool rules, and spending limits for agents

`PUT /v1/org/personal-agent-policy`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/org/personal-agent-policy`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Admins only. Send only the fields that change. New tool rules and limits apply to every agent in the organization from its next run.

## Request body

- SetPersonalAgentOrgPolicy
  - `toolPolicy` PersonalAgentToolPolicy
    - `connections` object
    - `tools` object
  - `monthlyBudgetMicros` integer, nullable: Monthly spending limit in millionths of a US dollar. Recorded now; not enforced yet.
  - `shareMode` 'everyone' | 'admins'
  - `sharedLogins` boolean
  - `rules` string
  - `maxAgentsPerMember` integer, nullable

## Response `200`

Set sharing, tool rules, and spending limits for agents

- PersonalAgentOrgPolicy
  - `toolPolicy` PersonalAgentToolPolicy, required
    - `connections` object
    - `tools` object
  - `monthlyBudgetMicros` integer, nullable, required: Monthly spending limit in millionths of a US dollar. Recorded now; not enforced yet.
  - `shareMode` 'everyone' | 'admins'
  - `sharedLogins` boolean: Whether an owner or manager may lend their own account on a connection to an agent so everyone who runs it acts through that account.
  - `rules` string: Rules every run of every agent is told to follow, in the admin's words.
  - `maxAgentsPerMember` integer, nullable: The most active agents one member may own, or null for no limit. A member at the limit cannot create or duplicate another until they archive one. Agents they already have are kept when the limit is lowered, and an admin can still transfer an agent to them.

## Other responses

- `400`: Invalid request.
- `404`: Not found.

## Changes

- **2026-12-01** `a641cc63ad9e`: 2 info
  - added the new optional request property `maxAgentsPerMember`
  - added the optional property `maxAgentsPerMember` to the response with the `200` status
- **2026-11-26** `bc0092687a7b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/personal-agent-policy/put.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
