---
title: "Get OAuth2 token"
method: POST
path: "/api/v1/oauth/token"
tags: ["OAuth"]
---

# Get OAuth2 token

`POST /api/v1/oauth/token`

Gets a new short-lived token using the specified client credentials

## Headers

- `Authorization` string, required

## Request body

- object
  - `grant_type` 'client_credentials', required — The type of grant being requested
  - `client_id` string — The client identifier
  - `client_secret` string, password — The client secret

## Response `200`

Access token response

- OauthGetTokenResponse200
  - `access_token` string, required — The access token
  - `token_type` string, required — The type of token (typically "Bearer")
  - `expires_in` integer — Lifetime of the access token in seconds
  - `refresh_expires_in` integer — Lifetime of the refresh token
  - `not-before-policy` integer — Enforce that a token cannot be used before a specific unixtime
  - `scope` string — The scope of the access token

## Other responses

- `400` — Bad request or invalid request
- `401` — Unauthorized - client authentication failed

---

[API](https://skmtc.net/anduril/apis/rest.md) · [All operations](https://skmtc.net/anduril/apis/rest/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anduril/rest/versions/c2a841b48ac6/schema)
