---
title: "Validate access token"
method: POST
path: "/users/validate-access-token"
tags: ["Users"]
---

# Validate access token

`POST /users/validate-access-token`

## Request

- Base URL: `https://api.purplegrain.com/api/v1`
- URL: `https://api.purplegrain.com/api/v1/users/validate-access-token`
- Auth: none declared

Optional helper: checks whether an **opaque Doorkeeper access token** (the token string, not a JWT) is present,
not revoked, and not expired. Use the same value you would send in **`Authorization: Bearer`**. For new clients,
validating by calling a lightweight authenticated endpoint is often sufficient.

## Request body

- object
  - `token` string

## Response `200`

Success

- object
  - `valid` boolean
  - `user_id` string, uuid, nullable

---

[API](https://skmtc.dev/purplegrain/apis/purple-grain-api.md) · [All operations](https://skmtc.dev/purplegrain/apis/purple-grain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/purplegrain/apis/purple-grain-api/revisions/29c5c990d66e?raw)
