Agency
Update Client Workspace
Updates a client workspace: name, limits, external reference, or a mid-cycle credit reset
PATCH
Available on agency plans. The API token must belong to the agency owner.
Only the fields you send are changed. Common flows:
- Raise credits mid-cycle: send a higher
message_limit. The client keeps their usage and gains the difference. - Plan change with a credit reset: send the new
message_limittogether withreset_credits: true. The client’s usage counter restarts immediately, so their remaining credits become the full new limit, up to your agency plan’s remaining monthly credits. Nothing carries over. - Cap response length: send
response_token_limitto bound how long the client’s AI agents’ answers can be. The agents are instructed to write complete answers that fit the budget, with a hard token cut as the backstop. Enforcement is approximate: the model targets the limit and gets a small allowance to finish its last sentence, so treat the value as a strong target, not an exact cutoff.
Path Parameters
Headers
Body Parameters
Response
Returns the updated client workspace. After a credit reset,credits_reset_at holds the reset time and usage.messages starts again from 0.
- 200 Success
- 403 Not an agency account
- 404 Not found
- 422 Validation error
Last modified on August 3, 2026