Skip to main content
POST
Set agents' daily and monthly credit limits

Authorizations

Authorization
string
header
required

Workspace API key (wk_). GET endpoints require the Workspace read API scope, POST, PUT, PATCH and DELETE endpoints the Workspace write API scope.

Body

application/json
ids
string[]
required

Agent IDs to update.

Minimum array length: 1
dailyCreditLimit
number | null

Daily credit limit for each agent, or null to fall back to the workspace default.

Required range: x >= 0
monthlyCreditLimit
number | null

Monthly credit limit for each agent, or null to remove it. Unlike the daily one, it can't be reset.

Required range: x >= 0

Response

Success. Empty result sets are also 200.

Batch outcome. The request is 200 as long as it was well-formed; check per-id success for failures.

results
object[]
required
summary
object
required