---
title: "Get details for a specific API token"
method: GET
path: "/api/v1/tokens/{tokenId}"
tags: ["tokens"]
---

# Get details for a specific API token

`GET /api/v1/tokens/{tokenId}`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/tokens/{tokenId}`
- Auth: HTTP bearer

Get details for a specific API token

## Path parameters

- `tokenId` string, required

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `tokenId` string: Token ID
    - `tokenPrefix` string: Token prefix (first 8 chars)
    - `name` string: Token name
    - `tokenType` 'USER_API_TOKEN' | 'BOT_TOKEN' | 'SERVICE_TOKEN' | 'WEBHOOK_TOKEN': Token type
    - `scopes` string[]: Token scopes
    - `isRevoked` boolean: Revocation status
    - `createdAt` string, date-time: Creation timestamp
    - `expiresAt` string, date-time, nullable: Expiration timestamp
  - `meta` object, required
    - `timestamp` number, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/farmersonly/apis/farmersonly-club-api.md) - [All operations](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/llms.txt) - [OpenAPI document](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/revisions/b4fa9123ba90?raw)
