> 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/api/auth.md).

# Authentication

This explains the authentication methods for the Mini App partner server API.

All APIs identify the caller (the mini app) using an mTLS (mutual TLS) client certificate.

Because mTLS authentication takes place during TLS connection establishment, it does not appear in the request headers. As in the code examples (cURL, Python, Node.js) in each API document, you must include the issued certificate and private key file with the request.

Operational information such as firewall IP allowlists, mTLS certificate issuance and management, and request limits can be found in [Using the Server API](/documentation/api-and-sdk-en/integration/server-api.md) Please refer to the documentation.

For user-level APIs, depending on the endpoint, you must send one of the values below as well.

* `x-toss-user-key` Header — user key issued through Toss Login ([You can obtain it through](/documentation/api-and-sdk-en/common/authentication/toss-login.md#id-4) obtained via the API)
* `x-anon-key` Header — anonymous user identification key (Mini App SDK [User.getAnonymousKey](/documentation/api-and-sdk-en/common/authentication/hash-key.md) issued through the function)
* `Authorization: Bearer {accessToken}` Header — Toss Login Access Token ([Get AccessToken](https://developers-apps-in-toss.toss.im/documentation/api-and-sdk-en/api/pages/561ad5d7d159382ba4b3119d2a1d83daa77dd44e#id-2.-accesstoken) issued via the API, for some login APIs)


---

# 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/api/auth.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.
