# AuthApi

All URIs are relative to *https://openapi.tossinvest.com*

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**issueOAuth2Token**](https://openapi.tossinvest.com/openapi-docs/latest/api-reference/Apis/AuthApi.md#issueOAuth2Token) | **POST** /oauth2/token | OAuth2 액세스 토큰 발급 |


<a name="issueOAuth2Token"></a>
# **issueOAuth2Token**
> OAuth2TokenResponse issueOAuth2Token(grant\_type, client\_id, client\_secret)

OAuth2 액세스 토큰 발급

    OAuth 2.0 Client Credentials Grant 로 access token 을 발급합니다.  - 요청 본문은 `application/x-www-form-urlencoded` 으로 전송합니다. - 발급된 token 은 다른 모든 API 의 `Authorization: Bearer {access_token}` 헤더에 사용합니다. - 응답 형식은 BFF 공통 envelope 이 아닌 OAuth2 표준 형식을 따릅니다. - refresh token 은 제공되지 않습니다. 만료 시 동일 엔드포인트로 재발급합니다. - client 당 유효한 access token 은 1 개입니다. 재발급 시 이전에 발급된 token 은 즉시 무효화됩니다.  **Rate Limits Group**: `AUTH` 

### Parameters

|Name | Type | Description  | Notes |
|------------- | ------------- | ------------- | -------------|
| **grant\_type** | **String**| 인증 방식. `client_credentials` 만 지원합니다. | [default to null] [enum: client_credentials] |
| **client\_id** | **String**| 발급받은 클라이언트 ID | [default to null] |
| **client\_secret** | **String**| 발급받은 클라이언트 시크릿. 노출되지 않도록 서버 측에서만 사용합니다. | [default to null] |

### Return type

[**OAuth2TokenResponse**](https://openapi.tossinvest.com/openapi-docs/latest/api-reference/Models/OAuth2TokenResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/json

