---
title: "Introspect a token"
method: POST
path: "/api/v1/tokens/introspect"
tags: ["tokens"]
---

# Introspect a token

`POST /api/v1/tokens/introspect`

This can only be done by a logged in user who has the required privileges.

## Request body

- object
  - `token` string

## Response `200`

Id of created user

- UserObject
  - `id` string — User Id
  - `username` string, required — Username as an email address
  - `firstname` string, required — firstname
  - `lastname` string, required — lastname
  - `status` 'ACTIVE' | 'PENDING' | 'DISABLED'
  - `tenant` string
  - `roles` Role[]
    - `id` string
    - `name` string
    - `permissions` Permissions[]
    - `scope` string
    - `createdAt` string
    - `updatedAt` string
    - `isGlobal` boolean
    - `description` string
  - `permissions` Permissions[]
  - `confirmed` boolean — true, if the confirmation link/email has been triggered
  - `img` string — url to user image

## Changes

- **2021-09-17** `1134b4a506a5` — 3 warning, 3 info
  - added the new `ACTIVE` enum value to the `allOf[subschema #1: User information]/status` response property for the response status `200`
  - added the new `DISABLED` enum value to the `allOf[subschema #1: User information]/status` response property for the response status `200`
  - added the new `PENDING` enum value to the `allOf[subschema #1: User information]/status` response property for the response status `200`
  - removed the `active` enum value from the `allOf[subschema #1: User information]/status` response property for the response status `200`
  - …2 more
- **2021-08-09** `214f3986034a` — 4 info
  - added the optional property `allOf[subschema #1: User information]/roles/items/description` to the response with the `200` status
  - added the optional property `allOf[subschema #1: User information]/roles/items/isGlobal` to the response with the `200` status
  - added the optional property `currentContext/roles/description` to the response with the `200` status
  - added the optional property `currentContext/roles/isGlobal` to the response with the `200` status
- …earlier changes not shown

[Full history](https://skmtc.dev/openintegrationhub/apis/iam-api-for-oih/changes/api/v1/tokens/introspect/post.md)

---

[API](https://skmtc.dev/openintegrationhub/apis/iam-api-for-oih.md) · [All operations](https://skmtc.dev/openintegrationhub/apis/iam-api-for-oih/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintegrationhub/iam-api-for-oih/revisions/016871a170fd/schema)
