# API authenPlatform

* 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*
  * Method: *POST*
  * Request: Content-Type: *application/json*

**Request Parameter**

| Parameter      | Data Type | Required | Description                                                                |
| -------------- | --------- | -------- | -------------------------------------------------------------------------- |
| grant\_type    | String    | Y        | “client\_credentials” as default.                                          |
| client\_id     | String    | Y        | API integration information in the profile section on the Merchant Portal. |
| client\_secret | String    | Y        | API integration information in the profile section on the Merchant Portal. |
| scope          | String    | Y        | “virtual\_card” as default.                                                |

**Response Data**

| Parameter     | Data Type | Description                                  |
| ------------- | --------- | -------------------------------------------- |
| code          | Number    | Error code. Refer to table of error codes    |
| message       | String    | Error description.                           |
| access\_token | String    | To authenticate for all other APIs.          |
| token\_type   | String    | “bearer” as default.                         |
| expires\_in   | Number    | “access\_token” expiration time, in seconds. |


---

# 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://docs.neox.vn/docs/global/virtual-card/api-authenplatform.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.
