---
title: "Set or remove this key's monthly spend cap on live sessions (resets on the 1st, UTC)"
method: PUT
path: "/api/keys/{keyId}/spend-cap"
---

# Set or remove this key's monthly spend cap on live sessions (resets on the 1st, UTC)

`PUT /api/keys/{keyId}/spend-cap`

## Request

- Base URL: `https://api.askingahuman.com`
- URL: `https://api.askingahuman.com/api/keys/{keyId}/spend-cap`
- Auth: HTTP bearer

## Path parameters

- `keyId` string, required

## Request body

- object
  - `monthlySpendCapCents` integer, nullable, required: null removes the cap; 0 pauses paid sessions

## Response `200`

Saved

- object
  - `keyId` string
  - `monthlySpendCapCents` integer, nullable
  - `spentThisMonthCents` integer

## Other responses

- `400`: Invalid cap
- `401`: Missing or invalid API key

---

[API](https://skmtc.dev/askingahuman/apis/askingahuman-api.md) · [All operations](https://skmtc.dev/askingahuman/apis/askingahuman-api/llms.txt) · [OpenAPI document](https://skmtc.dev/askingahuman/apis/askingahuman-api/revisions/dbb2a1a46257?raw)
