Skip to main content
PUT
Set sharing, tool rules, and spending limits for agents

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Body

application/json
toolPolicy
object
monthlyBudgetMicros
integer | null

Monthly spending limit in millionths of a US dollar. Recorded now; not enforced yet.

Required range: 0 <= x <= 1000000000000
shareMode
enum<string>
Available options:
everyone,
admins
sharedLogins
boolean
rules
string
Maximum string length: 4000
maxAgentsPerMember
integer | null
Required range: 1 <= x <= 1000

Response

Set sharing, tool rules, and spending limits for agents

toolPolicy
object
required
monthlyBudgetMicros
integer | null
required

The most one agent may spend in a month, whatever its owner chose.

Required range: 0 <= x <= 1000000000000
shareMode
enum<string>
Available options:
everyone,
admins
sharedLogins
boolean
default:false

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
default:""

Rules every run of every agent is told to follow, in the admin's words.

Maximum string length: 4000
maxAgentsPerMember
integer | null

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.

Required range: 1 <= x <= 1000