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

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# API 키 레퍼런스

> API 키는 계정 또는 앱이 소유하는 프로그래밍 방식의 자격 증명입니다.

각 키는 자체 권한 정책(명시적인 권한 구문 또는 상속된 시스템 역할)을 가지며, 만료일과 IP 허용 목록으로 제한할 수 있습니다.

API Keys API를 사용하면 계정 또는 앱의 키를 나열하고, 키를 생성하고(전체 시크릿은 생성 시 한 번만 반환됨), 키의 유효 권한을 확인하고, 이름이나 제한 사항을 업데이트하고, 시크릿을 교체하고, 키를 폐기할 수 있습니다. 이 엔드포인트는 사용자 세션이 필요하며 API 키로는 호출할 수 없습니다.

## 버전 고정

각 API 키는 `api_version_date`를 저장합니다. 키로 인증된 요청이 `Api-Version-Date` 헤더를 생략하면 해당 버전이 사용됩니다. 명시적인 헤더가 우선합니다. 새 키는 기본적으로 최신 릴리스 버전을 사용하며, 저장된 고정 버전이 없는 레거시 키는 `2025-01-01`을 사용합니다.

## 엔드포인트

| 엔드포인트 | 요청 |
| - | - |
| [API 키 목록 조회](https://docs.whop.com/ko/api-reference/api-keys/list-api-keys.md) | GET `/api_keys` |
| [API 키 조회](https://docs.whop.com/ko/api-reference/api-keys/retrieve-api-key.md) | GET `/api_keys/{id}` |
| [권한 카탈로그 목록 조회](https://docs.whop.com/ko/api-reference/api-keys/list-the-permission-catalog.md) | GET `/api_keys/permissions` |
| [API 키 생성](https://docs.whop.com/ko/api-reference/api-keys/create-api-key.md) | POST `/api_keys` |
| [API 키 교체](https://docs.whop.com/ko/api-reference/api-keys/rotate-api-key.md) | POST `/api_keys/{id}/rotate` |
| [API 키 업데이트](https://docs.whop.com/ko/api-reference/api-keys/update-api-key.md) | PATCH `/api_keys/{id}` |
| [API 키 삭제](https://docs.whop.com/ko/api-reference/api-keys/delete-api-key.md) | DELETE `/api_keys/{id}` |
