---
title: "Reset Key Spend Fn"
method: POST
path: "/key/{key}/reset_spend"
tags: ["key management"]
---

# Reset Key Spend Fn

`POST /key/{key}/reset_spend`

## Path parameters

- `key` string, required

## Headers

- `litellm-changed-by` string, nullable — The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability

## Request body

- ResetSpendRequest
  - `reset_to` number, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.net/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sea-lion/litellm-api/revisions/1e929292ddd5/schema)
