> 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

a public interface grouped in the form of a function-based (flat) API **domain.action** It is a public interface grouped in the form of a function-based API. You can keep using the function-based API as is, and the domain interface additionally provides the same implementation grouped by domain.

The document structure follows this directory structure as is — 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, and banner ads     |
| [Analytics](/documentation/api-and-sdk-en/sdk/domains-api/analytics.md)       | Analytics logs and 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                        |
| [Notification](/documentation/api-and-sdk-en/sdk/domains-api/notification.md) | Notification consent                    |
| [Permissions](/documentation/api-and-sdk-en/sdk/domains-api/permissions.md)   | Check/request device permissions        |
| [Promotion](/documentation/api-and-sdk-en/sdk/domains-api/promotion.md)       | Promotional rewards, friend invitations |
| [Review](/documentation/api-and-sdk-en/sdk/domains-api/review.md)             | Request in-app review                   |
| [SafeArea](/documentation/api-and-sdk-en/sdk/domains-api/safearea.md)         | Get/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 function-based API

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

// Domain interface — the same implementation as domain.actions
import { User } from "@apps-in-toss/web-framework";
await User.getAnonymousKey();
```

If you call a domain member on an unsupported Toss app version `undefined`does not return `UNSUPPORTED_APP_VERSION` an error **throw**it throws it (the function-based API keeps the existing (v2) behavior as is). That member `isSupported()`can be checked in advance with


---

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