> ## Documentation Index
> Fetch the complete documentation index at: https://docs.requesty.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Key Management API

> Manage your API key via an API

# API Key Management

**Enterprise Feature**

<Note>
  **[Manage your API keys](https://app.requesty.ai/api-keys)** in the Requesty Console.
</Note>

Programmatically manage your organization's API keys using the Requesty API Key Management API. Create, monitor, configure, and delete API keys with code, just like you would from the Requesty console.

## What is API Key Management?

The API Key Management feature allows enterprise customers to automate their API key lifecycle management through a RESTful API. Instead of manually managing keys through the web console, you can integrate key management directly into your workflows and systems.

With this feature, you can:

* Create new API keys with custom permissions and spending limits
* Monitor API key usage and spending in real-time
* Update monthly spending limits programmatically
* Delete unused or compromised keys instantly
* Retrieve comprehensive usage analytics for any date range

## Benefits

* **Automation**: Integrate API key management into your CI/CD pipelines and infrastructure automation
* **Security**: Programmatically rotate keys and manage permissions at scale
* **Cost Control**: Set and update spending limits across all your API keys
* **Monitoring**: Track usage patterns and spending across your organization
* **Compliance**: Maintain audit trails and enforce governance policies

**Tip**: Use descriptive names for your API keys and standardize your naming convention to make management easier across teams.

## Prerequisites

To use the API Key Management endpoints, you need:

1. An enterprise Requesty account
2. An API key with **manage permissions** (read/write access)
3. The manage permission allows you to call all API key management endpoints

## API Reference

### Base URL

```
https://api.requesty.ai
```

### Endpoints

| Method   | Endpoint                       | Required Permission | Description          |
| -------- | ------------------------------ | ------------------- | -------------------- |
| `GET`    | `/v1/manage/apikey`            | READ                | List all API keys    |
| `POST`   | `/v1/manage/apikey`            | WRITE               | Create new API key   |
| `GET`    | `/v1/manage/apikey/{id}`       | READ                | Get API key usage    |
| `DELETE` | `/v1/manage/apikey/{id}`       | WRITE               | Delete API key       |
| `POST`   | `/v1/manage/apikey/{id}/limit` | WRITE               | Update monthly limit |
