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

# POST /token/v1/admin_tokens

`POST /token/v1/admin_tokens`

## Request

- Base URL: `https://developers.conduktor.io` (the document declares no server; this is the origin it was published from)
- URL: `https://developers.conduktor.io/token/v1/admin_tokens`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/conduktor/apis/conduktor-console-api/docs/token/v1/admin_tokens/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new admin API token for the organization. It can be called with an already existing admin API TOKEN or with a user token having admin permission.
You can obtain a user token with the following command:
`curl -s localhost:8080/api/login -d '{"username":"{{username}}","password":"{{password}}"}' | jq -r ".refresh_token"`

## Request body

- CreateTokenRequest
  - `name` string, required

## Response `201`

- TokenCreatedResponse
  - `id` string, uuid, required
  - `name` string, required
  - `token` string, required
  - `createdAt` string, date-time, required

## Other responses

- `400`: The request is not valid
- `401`: The user is not authenticated
- `403`: The user doesn't have sufficient privilege to do this operation
- `404`: The searched entity was not found
- `500`: An unexpected error occurred in the server

---

[API](https://skmtc.dev/conduktor/apis/conduktor-console-api.md) - [All operations](https://skmtc.dev/conduktor/apis/conduktor-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/conduktor/apis/conduktor-console-api/revisions/24750c294805?raw)
