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

# Files API

> File은 업로드된 문서 또는 미디어 객체이며, `file_` ID로 식별됩니다.

파일을 생성하면 미리 서명된(presigned) 업로드 대상이 반환됩니다. 해당 위치에 바이트를 업로드하면 파일이 `ready` 상태가 됩니다.

Files API를 사용하여 파일을 생성하고, 콘텐츠를 스토리지에 직접 업로드하고(한 번의 PUT으로, 또는 대용량 파일의 경우 여러 파트로), 준비 상태를 폴링하면서 파일을 조회할 수 있습니다. 준비된 파일의 ID는 Whop이 파일을 허용하는 모든 곳에 첨부할 수 있습니다.

## 엔드포인트

| 엔드포인트 | 요청 |
| - | - |
| [파일 목록 조회](https://docs.whop.com/ko/api-reference/files/list-files.md) | GET `/files` |
| [파일 조회](https://docs.whop.com/ko/api-reference/files/retrieve-file.md) | GET `/files/{id}` |
| [파일 생성](https://docs.whop.com/ko/api-reference/files/create-file.md) | POST `/files` |
| [파일 멀티파트 업로드 완료](https://docs.whop.com/ko/api-reference/files/complete-file-multipart-upload.md) | POST `/files/{id}/complete` |

## 속성

**id** `string` *required*

파일의 ID이며, `file_` 접두사로 시작합니다.

**blurhash** `string | null` *required*

이미지 또는 동영상의 BlurHash 플레이스홀더입니다. 사용할 수 없거나 모더레이션으로 제거된 경우 Null입니다.

**content\_type** `string | null` *required*

원본 파일의 MIME 유형입니다(예: `application/pdf`). 모더레이션으로 파일이 제거되어도 유지됩니다.

**created\_at** `string` *required*

파일이 생성된 시각이며, ISO 8601 타임스탬프입니다.

**duration\_seconds** `number | null` *required*

오디오 또는 동영상의 재생 시간(초)입니다. 사용할 수 없거나 모더레이션으로 제거된 경우 Null입니다.

**filename** `string | null` *required*

확장자를 포함한 원본 파일 이름입니다.

**height** `integer | null` *required*

이미지 또는 동영상의 높이(픽셀)입니다. 사용할 수 없거나 모더레이션으로 제거된 경우 Null입니다.

**multipart\_chunk\_size** `integer | null`

각 파트(마지막 파트 제외)가 가져야 하는 바이트 크기입니다. 생성 시에만, 그리고 멀티파트 업로드에서만 포함됩니다.

**multipart\_upload\_id** `string | null`

멀티파트 업로드의 ID이며, `complete`에 다시 전달합니다. 생성 시에만, 그리고 멀티파트 업로드에서만 포함됩니다.

**multipart\_upload\_urls** `object[] | null`

각 파트의 미리 서명된 URL입니다. 생성 시에만, 그리고 멀티파트 업로드에서만 포함됩니다.

> [accordion] 속성
>
> **part\_number** `integer` *required*
>
> 멀티파트 업로드 내에서 이 파트의 인덱스(1부터 시작)입니다.
>
> **url** `string` *required*
>
> 이 파트의 바이트를 PUT할 미리 서명된 URL입니다.

**object** `string` *required*

이 객체의 유형이며, 항상 `file`입니다.

**removed\_by\_moderation** `boolean` *required*

모더레이션으로 파일이 제거되었는지 여부입니다. `true`이면 `url`은 대체 이미지를 제공합니다. `filename`, `size`, `content_type`은 여전히 원본 파일을 설명합니다.

**size** `integer | null` *required*

파일 크기(바이트)입니다. 업로드가 완료될 때까지 `null`입니다.

**upload\_headers** `object`

업로드 PUT 요청과 함께 보낼 헤더입니다. 생성 시에만 포함됩니다.

**upload\_status** `string` *required*

파일의 업로드 수명 주기상 현재 위치입니다.

사용 가능한 옵션: `pending`, `processing`, `ready`, `failed`

**upload\_url** `string | null`

파일의 바이트를 PUT할 미리 서명된 URL입니다. 생성 시에만, 그리고 단일 파트 업로드에서만 포함됩니다.

**url** `string | null` *required*

파일을 다운로드할 URL입니다. 공개 파일은 영구 CDN URL을, 비공개 파일은 만료되는 서명된 URL을 받습니다. 업로드가 완료될 때까지 `null`입니다. 모더레이션으로 파일이 제거된 경우 대체 이미지 URL입니다.

**visibility** `string` *required*

`public` 파일은 서명되지 않은 CDN URL에서 제공됩니다. `private` 파일은 만료되는 서명된 URL에서 제공됩니다.

사용 가능한 옵션: `public`, `private`

**waveform\_url** `string | null` *required*

오디오 파형 URL입니다. 사용할 수 없거나 모더레이션으로 제거된 경우 Null입니다.

**width** `integer | null` *required*

이미지 또는 동영상의 너비(픽셀)입니다. 사용할 수 없거나 모더레이션으로 제거된 경우 Null입니다.

```json File theme={null}
{
	"id": "file_xxxxxxxxxxxxxx",
	"object": "file",
	"filename": "evidence.pdf",
	"content_type": "application/pdf",
	"size": 9670,
	"width": null,
	"height": null,
	"blurhash": null,
	"duration_seconds": null,
	"waveform_url": null,
	"visibility": "private",
	"upload_status": "ready",
	"url": "https://whop-assets-example.s3.amazonaws.com/uploads/2026-09-15/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/evidence.pdf",
	"created_at": "2026-09-15T14:30:00.000Z",
	"removed_by_moderation": false
}
```


## Related topics

- [API 버전](https://docs.whop.com/ko/developer/api/versioning.md)
- [Chat API](https://docs.whop.com/ko/developer/guides/chat.md)
- [Update Account](https://docs.whop.com/ko/api-reference/accounts/update-account.md)
