---
title: "Create API key"
method: POST
path: "/management/apikey"
tags: ["API Keys"]
---

# Create API key

`POST /management/apikey`

## Request

- Base URL: `https://localhost:8080`
- URL: `https://localhost:8080/management/apikey`
- Auth: API key in header `X-API-Key`

Creates a new API key

## Request body

- ApiKeyCreateRequest
  - `applicationId` string, required: ID of the application that will use the API key
  - `description` string, required: Description of the API key

## Response `200`

Successful operation

- ApiKeyCreateResponse
  - `apiKeyId` string, required: ID of the created API key
  - `apiKey` string, required: The API key value (only shown once at creation time)

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/blockdaemon/apis/sepior-threshold-security-module-tsm-management-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/sepior-threshold-security-module-tsm-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/sepior-threshold-security-module-tsm-management-api/revisions/2fbed80752d4?raw)
