---
title: "Request an access token"
method: POST
path: "/oauth/token"
tags: ["Authentication"]
---

# Request an access token

`POST /oauth/token`

Exchanges client credentials for an OAuth 2.0 access token.

## Request body

- object
  - `client_id` string, required — The client ID of the application
  - `client_secret` string, required — The client secret of the application
  - `grant_type` unknown, required

## Response `200`

The response contains the access token, the token type, and the expiration time in seconds.

- object
  - `access_token` string, required
  - `token_type` string, required
  - `expires_in` integer, required

---

[API](https://skmtc.net/vectara/apis/vectara-rest-api-v2.md) · [All operations](https://skmtc.net/vectara/apis/vectara-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vectara/vectara-rest-api-v2/revisions/83554494d7f8/schema)
