> ## 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.

# OpenAPI Spec

> Download the Requesty Management API OpenAPI specification

Download the OpenAPI 3.0 specification for the Requesty Management API. Use it with your favorite API client, code generator, or testing tool.

<Card title="Management API Spec" icon="download" href="/api-reference/requesty_management-openapi.json">
  OpenAPI spec for management endpoints (API keys, groups, members, organization).
</Card>

## What's included

The Management API spec covers all endpoints on `api-v2.requesty.ai`:

| Endpoint                        | Method            | Description            |
| ------------------------------- | ----------------- | ---------------------- |
| `/v1/manage/apikey`             | GET               | List API keys          |
| `/v1/manage/apikey`             | POST              | Create API key         |
| `/v1/manage/apikey/{id}`        | GET               | Get API key details    |
| `/v1/manage/apikey/{id}`        | DELETE            | Delete API key         |
| `/v1/manage/apikey/{id}/usage`  | GET               | Get API key usage      |
| `/v1/manage/apikey/{id}/limit`  | POST              | Update spending limit  |
| `/v1/manage/apikey/{id}/label`  | POST              | Update labels          |
| `/v1/manage/apikey/{id}/expiry` | POST              | Update expiry          |
| `/v1/manage/group`              | GET, POST         | List or create groups  |
| `/v1/manage/group/{id}`         | GET, DELETE       | Get or delete group    |
| `/v1/manage/group/{id}/member`  | POST, PUT, DELETE | Manage group members   |
| `/v1/manage/org`                | GET               | Get organization       |
| `/v1/manage/org/usage`          | GET               | Get organization usage |

## Usage examples

Import the spec into popular tools:

* **Postman**: Import > Link > paste the spec URL
* **Insomnia**: Application > Import > From URL
* **OpenAPI Generator**: `openapi-generator-cli generate -i <spec-url> -g <language>`
* **Swagger UI**: Paste the spec URL into the explore bar
