> 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는 그대로 사용할 수 있고, 도메인 인터페이스는 같은 구현을 도메인 단위로 묶어 추가로 제공해요.

### 도메인 목록

| 도메인                                                                                                     | 설명                     |
| ------------------------------------------------------------------------------------------------------- | ---------------------- |
| [Ads](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/ads.md)                     | 전면·AdMob·배너 광고         |
| [Analytics](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/analytics.md)         | 분석 로그·스크린 로깅           |
| [Clipboard](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/clipboard.md)         | 클립보드 읽기/쓰기             |
| [Device](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/device.md)               | 디바이스·권한·위치·미디어         |
| [Environment](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/environment.md)     | 실행 환경·버전·네트워크          |
| [File](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/file.md)                   | 파일 저장·PDF 뷰어           |
| [Game](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/game.md)                   | 게임센터 리더보드·프로필          |
| [IAP](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/iap.md)                     | 인앱결제                   |
| [Migration](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/migration.md)         | 웹 origin 저장소 마이그레이션    |
| [NavigationBar](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/navigationbar.md) | 네비게이션 바 버튼·외형          |
| [Notification](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/notification.md)   | 알림 동의                  |
| [Permissions](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/permissions.md)     | 디바이스 권한 조회·요청          |
| [Promotion](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/promotion.md)         | 프로모션 리워드·친구 초대         |
| [Review](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/review.md)               | 인앱 리뷰 요청               |
| [SafeArea](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/safearea.md)           | Safe Area insets 조회·구독 |
| [Screen](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/screen.md)               | 화면 제어                  |
| [Share](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/share.md)                 | 공유 링크·공유 시트            |
| [Storage](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/storage.md)             | 로컬 저장소                 |
| [TossAuth](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/tossauth.md)           | 토스 로그인·서명              |
| [TossPay](https://developers-apps-in-toss.toss.im/documentation/sdk/domains-api/tosspay.md)             | 토스페이 결제 인증             |
| [User](https://developers-apps-in-toss.toss.im/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
