---
title: "OAuth Token"
method: POST
path: "/v2/token"
tags: ["Authentication"]
---

# OAuth Token

`POST /v2/token`

Step to access API credentials

1. **Login:** Visit [https://app2.expent.ai](https://app2.expent.ai) and log in.

2. **Navigate to Settings -> API:** Click "Settings" and select "API."

3. **Add New API:** Create a new API by clicking "Add New."
 
4. **Retrieve Credentials:** Edit the API to find your Client ID and Client Secret.


The generated response serves as the key to authorize other APIs. To authenticate an API, include a header variable named "authorization" with the value "Bearer &nbsp;&nbsp; `access_token`" (excluding the quotes). For example: `Bearer MZA1YJMYZDKTZTFMMI0ZYZG1LTLMMDGTYTG4NJG2YZC3NJGY`.

## Request body

- RequestAccessToken
  - `client_id` string, required
  - `client_secret` string, required

## Response `201`

Successful Response

- TokenResponse
  - `access_token` string, required
  - `token_type` string, required

## Other responses

- `403` — Forbidden
- `422` — Validation Error

---

[API](https://skmtc.dev/expent/apis/expent-apis.md) · [All operations](https://skmtc.dev/expent/apis/expent-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/expent/expent-apis/revisions/ce1d50af5e2c/schema)
