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

# Create token

`POST /tokens`

Creates an API access token with the details in the given request body.

## Request body

- CreateAccessTokenRequest
  - `name` string

## Response `200`

OK

- CreateAccessTokenResponse
  - `accessKey` string
  - `token` AccessToken
    - `basicAuth` string, nullable
    - `dateCreated` string, date-time
    - `id` integer
    - `lastUsed` string, date-time
    - `name` string, required

## Other responses

- `400` — Bad request
- `403` — Operation not allowed
- `409` — Duplicated element

## Changes

> 14 revisions in range; 1 not diffed.

- **2026-08-27** `97f7655d105a` — 1 breaking
  - the response property `token/basicAuth` became nullable for the status `200`

[Change history](https://skmtc.dev/seqeralabs/apis/seqera-api/changes/tokens/post.md)

---

[API](https://skmtc.dev/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.dev/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/97f7655d105a/schema)
