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

# 인증

미니앱 파트너 서버 API의 인증 방식을 안내해요.

모든 API는 mTLS(상호 TLS) 클라이언트 인증서로 호출 주체(미니앱)를 식별해요.

mTLS 인증은 TLS 연결 수립 단계에서 이루어지므로 요청 헤더에는 나타나지 않아요. 각 API 문서의 코드 예시(cURL·Python·Node.js)처럼 발급받은 인증서와 개인 키 파일을 요청에 함께 설정해야 해요.

방화벽 IP 허용 목록, mTLS 인증서 발급·관리, 요청 한도 같은 운영 정보는 [서버 API 이용하기](/documentation/integration/server-api.md) 문서를 참고하세요.

사용자 단위 API는 엔드포인트에 따라 아래 값 중 하나를 함께 보내야 해요.

* `x-toss-user-key` 헤더 — 토스 로그인으로 발급받은 사용자 키 ([사용자 정보 받기](/documentation/common/authentication/toss-login.md#id-4) API로 획득해요)
* `x-anon-key` 헤더 — 비로그인 사용자 식별 키 (미니앱 SDK [User.getAnonymousKey](/documentation/common/authentication/hash-key.md) 함수로 발급받아요)
* `Authorization: Bearer {accessToken}` 헤더 — 토스 로그인 Access Token ([AccessToken 받기](https://developers-apps-in-toss.toss.im/documentation/api/pages/FCUMTd5EgKJiIdAljx5H#id-2.-accesstoken) API로 발급받아요, 일부 로그인 API)


---

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