> For the complete documentation index, see [llms.txt](https://shopping-docs.toss.im/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shopping-docs.toss.im/dev/api-2/auth.md).

# 인증

## OAuth2 Access Token 발급

> Client Credentials grant type으로 access token을 발급받습니다.

```json
{"openapi":"3.0.1","info":{"title":"ShoppingFep API","version":"local"},"servers":[{"url":"https://oauth2.cert.toss.im"}],"paths":{"/token":{"post":{"summary":"OAuth2 Access Token 발급","description":"Client Credentials grant type으로 access token을 발급받습니다.","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"required":["client_id","client_secret","grant_type","scope"],"type":"object","properties":{"grant_type":{"type":"string","description":"OAuth2 grant type, client_credentials 고정"},"client_id":{"type":"string","description":"어드민을 통해 발급받은 oauth_client_id, 어드민의 accessKey"},"client_secret":{"type":"string","description":"어드민을 통해 발급받은 secret key"},"scope":{"type":"string","description":"요청 scope, toss-shopping-fep:write 고정"}}}}},"required":true},"responses":{"200":{"description":"토큰 발급 성공","content":{"application/json":{"schema":{"required":["access_token","expires_in","scope","token_type"],"type":"object","properties":{"access_token":{"type":"string","description":"생성된 accessToken"},"scope":{"type":"string","description":"요청된 scope (toss-shopping-fep:write 고정)"},"token_type":{"type":"string","description":"토큰 타입"},"expires_in":{"type":"integer","description":"만료시간 (초단위)"}}}}}}}}}}}
```

> ### API 연동 중 문의사항이나 개선 제안이 있으신가요?

{% hint style="info" %}
토스쇼핑 API 연동에 대한 질문이나, 건의사항이 있다면 [연동/개발 문의](https://discord.gg/xPz6H9NZ3P)에 남겨주세요. 다른 유저의 문의를 참고하거나, 토스쇼핑 담당자와 질의를 주고 받을 수 있어요.
{% endhint %}


---

# 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://shopping-docs.toss.im/dev/api-2/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.
