---
title: "Verify Access Token"
method: POST
path: "/v1/token/verify"
tags: ["Portfolio Connect"]
---

# Verify Access Token

`POST /v1/token/verify`

## Request

- Base URL: `https://api.casparser.in`
- URL: `https://api.casparser.in/v1/token/verify`
- Auth: API key in header `x-api-key`

Verify an access token and check if it's still valid.
Useful for debugging token issues.

## Response `200`

Token verification result

- object
  - `valid` boolean: Whether the token is valid
  - `masked_api_key` string: Masked API key (only shown if valid)
  - `error` string: Error message (only shown if invalid)

## Other responses

- `401`: Unauthorized. This can happen if the `x-api-key` header is missing.

## Changes

- **2026-09-13** `cf1b57c0f2f7`: 1 warning
  - the optional response header `X-Request-ID` removed for the status `401`
- **2026-07-12** `c74b9ecd5b53`: 1 warning
  - added the new `failed` enum value to the `status` response property for the response status `401`
- **2026-02-22** `be3ca0403f2f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2/changes/v1/token/verify/post.md)

---

[API](https://skmtc.dev/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2.md) - [All operations](https://skmtc.dev/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2/llms.txt) - [OpenAPI document](https://skmtc.dev/casparser/apis/cas-parser-track-portfolios-from-cdsl-nsdl-cams-kfintech-2/revisions/9d8f1445bad3?raw)
