# 인증

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

```
GET https://shopping-docs.toss.im/dev/api-2/auth.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
