---
title: "Set User Spending Limit"
method: PUT
path: "/v0/user/spending-limit"
tags: ["User"]
---

# Set User Spending Limit

`PUT /v0/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.

## Request body

- UserSpendingLimitRequest — Request body for setting user's personal spending limit.
  - `monthly_spending_cap` number, nullable, required — Monthly spending limit in dollars for personal usage. Set to null for no limit.

## Response `200`

Successful Response

- UserSpendingLimitResponse — Response for user's personal spending limit.
  - `user_id` string, required — User ID.
  - `monthly_spending_cap` number, nullable — The monthly spending limit for personal usage.
  - `assistants_capped` integer — Number of personal assistants that had their limits reduced.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/unify/apis/unifyai-http-api-reference.md) · [All operations](https://skmtc.net/unify/apis/unifyai-http-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unify/unifyai-http-api-reference/revisions/900377f918b6/schema)
