---
title: "Exchange a token grant"
method: POST
path: "/oauth2/token"
tags: ["OAuth2"]
---

# Exchange a token grant

`POST /oauth2/token`

Exchange a token grant.

## Response `200`

OK

- object
  - `access_token` string
  - `refresh_token` string
  - `token_type` string — Always 'bearer'
  - `expires_in` integer — Token lifetime in seconds
  - `scope` string — Space-separated list of granted scopes
  - `issue_date` integer

## Other responses

- `default` — Error

---

[API](https://skmtc.net/xenforo-ltd/apis/xenforo-api.md) · [All operations](https://skmtc.net/xenforo-ltd/apis/xenforo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xenforo-ltd/xenforo-api/revisions/b15eba33657a/schema)
