---
title: "List the keys of a server"
method: GET
path: "/v1/servers/{id}/tokens"
tags: ["Servers"]
---

# List the keys of a server

`GET /v1/servers/{id}/tokens`

## Request

- Base URL: `https://api.sendora.se`
- URL: `https://api.sendora.se/v1/servers/{id}/tokens`
- Auth: HTTP bearer

Every key of the server, revoked ones included.

## Path parameters

- `id` string, uuid, required

## Response `200`

Every key of the server, revoked ones included.

- object: Every key of the server, revoked ones included.
  - `tokens` object[], required
    - `tokenId` string, uuid, required
    - `name` string, required: The name given at creation, for people to tell keys apart.
    - `prefix` string, required: The first characters of the key, to match it with a value in hand.
    - `createdAt` string, date-time, required
    - `revokedAt` string, date-time, nullable, required

## Other responses

- `401`: The key is missing, malformed or revoked.
- `403`: The key is of the other kind, or a connected app may not do this here: it is not for connections, the connection may only read here, or it is for test servers only.
- `404`: No such server of this account.

---

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