---
title: "Introspect an OAuth token"
method: POST
path: "/oauth2/introspect"
tags: ["OAuth2"]
---

# Introspect an OAuth token

`POST /oauth2/introspect`

Introspect an OAuth token.

## Response `200`

OK

- object
  - `active` boolean — Whether the token is currently active
  - `scope` string — Space-separated list of scopes **Note** Conditionally returned
  - `client_id` string — The client that the token was issued to **Note** Conditionally returned
  - `username` string — The user associated with the token **Note** Conditionally returned
  - `token_type` string — Either 'bearer' or 'refresh_token' **Note** Conditionally returned
  - `exp` integer — Expiry timestamp **Note** Conditionally returned
  - `iat` integer — Issue timestamp **Note** Conditionally returned
  - `sub` string — Subject (user ID) **Note** Conditionally returned
  - `iss` string — Issuer (board URL) **Note** Conditionally returned

## 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)
