---
title: "Get information about an OAuth token"
method: GET
path: "/oauth2/token"
tags: ["OAuth2"]
---

# Get information about an OAuth token

`GET /oauth2/token`

Get information about an OAuth token.

## Query parameters

- `client_id` string, required
- `client_secret` string, required
- `token` string, required

## Response `200`

OK

- object
  - `user_id` integer
  - `scope` object — Key-value pairs of granted scopes
  - `expires_in` integer — Remaining lifetime in seconds
  - `issue_date` integer

## Other responses

- `default` — Error

## Changes

- **2026-03-18** `e271d0e41f6d` — 3 info
  - api operation id `get_oauth2_token` removed and replaced with `getOauth2Token`
  - added the new optional `header` request parameter `XF-Api-User` to all path's operations
  - added the new optional `query` request parameter `api_bypass_permissions` to all path's operations
- **2026-03-06** `61b60b0c0d52` — 3 breaking, 3 info
  - added the new required `query` request parameter `client_id`
  - added the new required `query` request parameter `client_secret`
  - added the new required `query` request parameter `token`
  - api tag `OAuth2` added
  - …2 more
- **2026-02-03** `fc0a40f3b859` — 1 breaking, 7 warning, 3 info
  - removed the media type `application/json` for the response with the status `200`
  - the optional response header `XF-Latest-Api-Version` removed for the status `200`
  - the optional response header `XF-Request-User` removed for the status `200`
  - the optional response header `XF-Request-User-Extras` removed for the status `200`
  - …7 more

[Change history](https://skmtc.dev/xenforo-ltd/apis/xenforo-api/changes/oauth2/token/get.md)

---

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