---
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
    - `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

---

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