---
title: "POST /api/admin/api-keys/"
method: POST
path: "/api/admin/api-keys/"
tags: ["Administration/API-Keys"]
---

# POST /api/admin/api-keys/

`POST /api/admin/api-keys/`

Mint an API key for the company in the body, as a Retraced operator. The raw key is returned once, here. A label that company already uses returns 409 (api_key-with_the_same_label_exists); a company with no IAM tenant returns 404 (role_not_found) and nothing is written.

## Request body

- object
  - `companyId` string, required
  - `label` string, required

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `label` string, required
    - `companyApiKey` string, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `409` — Default Response

## Changes

> 56 revisions in range; 1 not diffed.

- **2026-10-01** `a47da1ffffd9` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/admin/api-keys/post.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) · [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/retraced/apis/api-reference/revisions/43a47823848e?raw)
