v1

latestOpenAPI 3.1.02026-07-13154170539.0 KB
User

Set User Spending Limit

Set the monthly spending limit for the current user's personal usage.

This limit applies when using the user's personal API key (not org API keys). When the limit is lowered, personal assistant limits that exceed the new limit will be automatically capped.

put/v0/user/spending-limit

Request body

monthly_spending_capnumber nullable required

Monthly spending limit in dollars for personal usage. Set to null for no limit.

Example request

{
  "monthly_spending_cap": 200
}

Response

Successful Response

user_idstring required

User ID.

monthly_spending_capnumber nullable

The monthly spending limit for personal usage.

assistants_cappedinteger

Number of personal assistants that had their limits reduced.

Example response

{
  "monthly_spending_cap": 200
}