---
title: "Generate visual test token"
method: GET
path: "/api/v1/auth/visual-test-token"
tags: ["Auth"]
---

# Generate visual test token

`GET /api/v1/auth/visual-test-token`

## Request

- Base URL: `https://api.proof.holdings`
- URL: `https://api.proof.holdings/api/v1/auth/visual-test-token`
- Auth: none declared

Generate a short-lived JWT for Playwright visual testing. Guarded by VISUAL_TEST_SECRET header.

## Response `200`

Visual test JWT

- ExchangeTokenResponse: Token exchange response
  - `success` boolean, required
  - `jwt` string, required: JWT token
  - `expiresAt` string, date-time, required

## Other responses

- `403`: Invalid test secret

---

[API](https://skmtc.dev/proof/apis/proof-holdings-api.md) · [All operations](https://skmtc.dev/proof/apis/proof-holdings-api/llms.txt) · [OpenAPI document](https://skmtc.dev/proof/apis/proof-holdings-api/revisions/b15f506de696?raw)
