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

# 인증

mTLS 인증서와 사용자 인증 헤더 안내

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

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

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

방화벽 IP 허용 목록, mTLS 인증서 발급·관리, 요청 한도 같은 운영 정보는 서버 API 이용하기 문서를 참고하세요.

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

* `x-toss-user-key` 헤더 — 토스 로그인으로 발급받은 사용자 키 (사용자 정보 받기 API로 획득해요)
* `x-anon-key` 헤더 — 비로그인 사용자 식별 키 (미니앱 SDK User.getAnonymousKey 함수로 발급받아요)
* `Authorization: Bearer {accessToken}` 헤더 — 토스 로그인 Access Token (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 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/api/auth.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.
