> For the complete documentation index, see [llms.txt](https://developers-apps-in-toss.toss.im/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api.md).

# Domains API

함수형(flat) API를 **도메인.동작** 형태로 묶은 공개 인터페이스예요. 함수형 API는 그대로 사용할 수 있고, 도메인 인터페이스는 같은 구현을 도메인 단위로 묶어 추가로 제공해요.

문서 구조는 이 디렉터리 구조를 그대로 따라요 — 도메인 디렉터리의 REFERENCE.md가 개요, `도메인/멤버/REFERENCE.md`가 멤버 상세예요.

### 도메인 목록

| 도메인                                                            | 설명                     |
| -------------------------------------------------------------- | ---------------------- |
| [Ads](/documentation/sdk/domains-api/ads.md)                   | 전면·AdMob·배너 광고         |
| [Analytics](/documentation/sdk/domains-api/analytics.md)       | 분석 로그·스크린 로깅           |
| [Clipboard](/documentation/sdk/domains-api/clipboard.md)       | 클립보드 읽기/쓰기             |
| [Device](/documentation/sdk/domains-api/device.md)             | 디바이스·권한·위치·미디어         |
| [Environment](/documentation/sdk/domains-api/environment.md)   | 실행 환경·버전·네트워크          |
| [File](/documentation/sdk/domains-api/file.md)                 | 파일 저장·PDF 뷰어           |
| [Game](/documentation/sdk/domains-api/game.md)                 | 게임센터 리더보드·프로필          |
| [IAP](/documentation/sdk/domains-api/iap.md)                   | 인앱결제                   |
| [Notification](/documentation/sdk/domains-api/notification.md) | 알림 동의                  |
| [Permissions](/documentation/sdk/domains-api/permissions.md)   | 디바이스 권한 조회·요청          |
| [Promotion](/documentation/sdk/domains-api/promotion.md)       | 프로모션 리워드·친구 초대         |
| [Review](/documentation/sdk/domains-api/review.md)             | 인앱 리뷰 요청               |
| [SafeArea](/documentation/sdk/domains-api/safearea.md)         | Safe Area insets 조회·구독 |
| [Screen](/documentation/sdk/domains-api/screen.md)             | 화면 제어                  |
| [Share](/documentation/sdk/domains-api/share.md)               | 공유 링크·공유 시트            |
| [Storage](/documentation/sdk/domains-api/storage.md)           | 로컬 저장소                 |
| [TossAuth](/documentation/sdk/domains-api/tossauth.md)         | 토스 로그인·서명              |
| [TossPay](/documentation/sdk/domains-api/tosspay.md)           | 토스페이 결제 인증             |
| [User](/documentation/sdk/domains-api/user.md)                 | 사용자 키·동의 데이터·연령        |

### 함수형 API와의 관계

```js
// 함수형(flat) API — v2와 동일
import { getAnonymousKey } from "@apps-in-toss/web-framework";
await getAnonymousKey();

// 도메인 인터페이스 — 같은 구현을 도메인.동작으로
import { User } from "@apps-in-toss/web-framework";
await User.getAnonymousKey();
```

미지원 토스앱 버전에서 도메인 멤버를 호출하면 `undefined`를 반환하지 않고 `UNSUPPORTED_APP_VERSION` 에러를 **throw**해요(함수형 API는 기존(v2) 동작을 그대로 유지해요). 해당 멤버는 `isSupported()`로 미리 확인할 수 있어요.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
