v1

latestOpenAPI 3.1.02026-07-13154170539.0 KB
Organizations

Set Member Spending Limit

Set the monthly spending limit for a member within an organization.

This limit controls how much the member can spend when using the org's API key. It is separate from the user's personal spending limit (which applies to their personal API key).

The member limit cannot exceed the organization's limit. When the limit is lowered, assistant limits owned by this member that exceed the new limit will be automatically capped.

put/v0/organizations/{organization_id}/members/{member_user_id}/spending-limit

Path parameters

organization_idinteger required
member_user_idstring required

Request body

monthly_spending_capnumber nullable required

Monthly spending limit in dollars for this member. Set to null for no limit.

Example request

{
  "monthly_spending_cap": 100
}

Response

Member spending limit set successfully

organization_idinteger required

Organization ID.

user_idstring required

User ID.

monthly_spending_capnumber nullable

The set monthly spending limit for this member.

assistants_cappedinteger

Number of assistants that had their limits reduced due to this change.

Example response

{
  "monthly_spending_cap": 100
}