Agents

Set sharing, tool rules, and spending limits for agents

Changed on

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

put/v1/org/personal-agent-policy

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Request body

SetPersonalAgentOrgPolicy required
toolPolicy, PersonalAgentToolPolicy
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

Set sharing, tool rules, and spending limits for agents

PersonalAgentOrgPolicy required
toolPolicy, PersonalAgentToolPolicy required
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.

Changes