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

# Element 세션(레거시)

> 레거시 @whop/embedded-components 채팅 패키지와 대신 사용할 @whop/elements 대체 패키지.

레거시 `@whop/embedded-components-react-js` 및 `@whop/embedded-components-vanilla-js` 패키지는 자체 사이트에 Whop 채팅을 임베드합니다. `WhopElements` 인스턴스를 만들고, 백엔드에서 발급한 토큰으로 채팅 세션을 연 다음, 필요한 요소를 마운트합니다. 각 요소는 자체 테마와 현지화가 적용된 격리된 프레임에서 렌더링됩니다.

## 이 섹션에서 다루는 내용

* `WhopElements`, 해당 옵션, 채팅 세션으로 **시작하기**.
* **채팅 요소**: [커뮤니티 채팅](https://docs.whop.com/ko/sdk/elements/chat-element.md), [DM 목록](https://docs.whop.com/ko/sdk/elements/dms-list-element.md), [검색](https://docs.whop.com/ko/sdk/elements/search-element.md).
* **공유 타입** 및 `appearance.classes`에 대한 **스타일링 레퍼런스**.

> [!NOTE]
>
> 체크아웃, 결제, 지갑, 지급, 인증, 광고 화면은 [Whop Elements](https://docs.whop.com/ko/elements/latest/getting-started.md)에서 설명합니다.

## 다음 단계

> [card] [시작하기](https://docs.whop.com/ko/sdk/elements/whop-elements.md)
>
> 패키지를 설치하고 첫 번째 채팅 세션을 만드세요.

> [card] [채팅 세션](https://docs.whop.com/ko/sdk/elements/chat-session.md)
>
> 인증하고 채팅, DM, 검색 요소를 마운트하세요.


## Related topics

- [ChatElement(레거시)](https://docs.whop.com/ko/sdk/elements/chat-element.md)
- [SearchElement (레거시)](https://docs.whop.com/ko/sdk/elements/search-element.md)
- [DmsListElement(레거시)](https://docs.whop.com/ko/sdk/elements/dms-list-element.md)
