# API authenPlatform

* &#x20;PLATFORM should call this API to get Bearer token to use in all other APIs.
* Authentication mechanism: OAuth 2.0
* API:
  * Path:  */v2/auth/oauth2/token*&#x20;
  * Method: *POST*&#x20;
  * Request: Content-Type: *application/json*&#x20;

**Request Parameter**

<table><thead><tr><th width="169">Parameter</th><th width="123">Data Type </th><th width="106">Required</th><th>Description</th></tr></thead><tbody><tr><td>grant_type</td><td>String</td><td>Y</td><td>“<em>client_credentials</em>” as default.</td></tr><tr><td>client_id</td><td>String</td><td>Y</td><td>API integration information in the profile section on the Merchant Portal.</td></tr><tr><td>client_secret</td><td>String</td><td>Y</td><td>API integration information in the profile section on the Merchant Portal.</td></tr><tr><td>scope</td><td>String</td><td>Y</td><td>“<em>collection</em>” as default.</td></tr></tbody></table>

**Response Data**

<table><thead><tr><th width="188.33333333333331">Parameter</th><th width="171">Data Type </th><th>Description</th></tr></thead><tbody><tr><td>code </td><td>Number </td><td>Error code.  Refer to <a href="error-codes">table of error codes</a></td></tr><tr><td>message </td><td>String </td><td>Error description. </td></tr><tr><td>access_token </td><td>String </td><td>To authenticate for all other APIs. </td></tr><tr><td>token_type </td><td>String </td><td>“bearer” as default. </td></tr><tr><td>expires_in </td><td>Number </td><td>“access_token” expiration time, in seconds. </td></tr></tbody></table>
