> 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/api-and-sdk-en/sdk/domains-api.md).

# Domains API

functional (flat) API **Domain.Action** This is a public interface grouped in this form. You can use the functional API as is, and the domain interface additionally provides the same implementation grouped by domain.

The document structure follows this directory structure exactly — the REFERENCE.md in the domain directory is the overview, `domain/member/REFERENCE.md`is the member details.

### Domain list

| Domain                                                                          | Description                             |
| ------------------------------------------------------------------------------- | --------------------------------------- |
| [Ads](/documentation/api-and-sdk-en/sdk/domains-api/ads.md)                     | Interstitial · AdMob · banner ads       |
| [Analytics](/documentation/api-and-sdk-en/sdk/domains-api/analytics.md)         | Analytics logs · screen logging         |
| [Clipboard](/documentation/api-and-sdk-en/sdk/domains-api/clipboard.md)         | Clipboard read/write                    |
| [Device](/documentation/api-and-sdk-en/sdk/domains-api/device.md)               | Device · permissions · location · media |
| [Environment](/documentation/api-and-sdk-en/sdk/domains-api/environment.md)     | Runtime environment · version · network |
| [File](/documentation/api-and-sdk-en/sdk/domains-api/file.md)                   | File saving · PDF viewer                |
| [Game](/documentation/api-and-sdk-en/sdk/domains-api/game.md)                   | Game Center leaderboard · profile       |
| [IAP](/documentation/api-and-sdk-en/sdk/domains-api/iap.md)                     | In-app purchases                        |
| [Migration](/documentation/api-and-sdk-en/sdk/domains-api/migration.md)         | Web origin storage migration            |
| [NavigationBar](/documentation/api-and-sdk-en/sdk/domains-api/navigationbar.md) | Navigation bar buttons · appearance     |
| [Notification](/documentation/api-and-sdk-en/sdk/domains-api/notification.md)   | Notification consent                    |
| [Permissions](/documentation/api-and-sdk-en/sdk/domains-api/permissions.md)     | Query/request device permissions        |
| [Promotion](/documentation/api-and-sdk-en/sdk/domains-api/promotion.md)         | Promotion rewards · invite friends      |
| [Review](/documentation/api-and-sdk-en/sdk/domains-api/review.md)               | Request in-app reviews                  |
| [SafeArea](/documentation/api-and-sdk-en/sdk/domains-api/safearea.md)           | Query and subscribe to Safe Area insets |
| [Screen](/documentation/api-and-sdk-en/sdk/domains-api/screen.md)               | Screen control                          |
| [Share](/documentation/api-and-sdk-en/sdk/domains-api/share.md)                 | Share links · share sheet               |
| [Storage](/documentation/api-and-sdk-en/sdk/domains-api/storage.md)             | Local storage                           |
| [TossAuth](/documentation/api-and-sdk-en/sdk/domains-api/tossauth.md)           | Toss Login · signing                    |
| [TossPay](/documentation/api-and-sdk-en/sdk/domains-api/tosspay.md)             | Toss Pay payment authentication         |
| [User](/documentation/api-and-sdk-en/sdk/domains-api/user.md)                   | User key · consent data · age           |

### Relationship with the functional API

```js
// functional (flat) API — same as v2
import { getAnonymousKey } from "@apps-in-toss/web-framework";
await getAnonymousKey();

// domain interface — same implementation grouped by domain.action
import { User } from "@apps-in-toss/web-framework";
await User.getAnonymousKey();
```

If you call a domain member on an unsupported Toss app version, `it does not return`undefined and `UNSUPPORTED_APP_VERSION` throws an **error**does so (the functional API preserves the existing (v2) behavior). You can check that member `with isSupported()`in advance.


---

# 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/api-and-sdk-en/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.
