---
title: "List developer tokens"
method: GET
path: "/v1/tokens"
tags: ["Tokens"]
---

# List developer tokens

`GET /v1/tokens`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/tokens`
- Auth: HTTP bearer

Returns all tokens with masked prefixes. Raw tokens are never returned after creation.

## Response `200`

Array of masked tokens

- DevToken[]
  - `id` string, required
  - `label` string, required
  - `tokenPrefix` string, required: Masked prefix for display (e.g. `tp_a1b2c3d4...`). The raw token is returned exactly once at creation time and never echoed back; subsequent reads expose only this prefix.
  - `origins` string[], nullable
  - `endpointConfigId` string, nullable: Per-token Anthropic-proxy binding. When set, requests authenticated with this token route to this `EndpointConfig` regardless of the global setting. Takes precedence over the global setting; overridden only by `model: "toolpiper:tp-<id>"` prefix on the request body.
  - `createdAt` string, date-time, required

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
