---
title: "Create token"
method: POST
path: "/api/v1/tokens"
tags: ["auth"]
---

# Create token

`POST /api/v1/tokens`

Create token

## Request body

- TokenCreateRequest
  - `name` string
  - `virtualUser` string
  - `expiresAt` string, date-time, nullable

## Response `200`

Token created successfully

- TokenCreateResponse
  - `id` string, required
  - `token` string, required
  - `name` string, required

## Other responses

- `default` — Internal server error

---

[API](https://skmtc.net/banzaicloud/apis/pipeline-api.md) · [All operations](https://skmtc.net/banzaicloud/apis/pipeline-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/banzaicloud/pipeline-api/versions/a2e35c430378/schema)
