---
title: "Get all api tokens of the current user"
method: GET
path: "/tokens"
tags: ["api"]
---

# Get all api tokens of the current user

`GET /tokens`

Returns all api tokens the current user has created.

## Query parameters

- `page` integer
- `per_page` integer
- `s` string

## Response `200`

The list of all tokens

- ModelsAPIToken[]
  - `created` string — A timestamp when this api key was created. You cannot change this value.
  - `expires_at` string — The date when this key expires.
  - `id` integer — The unique, numeric id of this api key.
  - `owner_id` integer — The user ID of the token owner. When creating a token for a bot user, set this to the bot's ID. If omitted, defaults to the authenticated user.
  - `permissions` ModelsAPIPermissions
  - `title` string — A human-readable name for this token
  - `token` string — The actual api key. Only visible after creation.

## Other responses

- `500` — Internal server error

---

[API](https://skmtc.net/go-vikunja/apis/vikunja-api.md) · [All operations](https://skmtc.net/go-vikunja/apis/vikunja-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/go-vikunja/vikunja-api/revisions/feb3f68bbdf1/schema)
