---
title: "Create API key for current user"
method: POST
path: "/api-keys/me"
tags: ["API keys"]
---

# Create API key for current user

`POST /api-keys/me`

Generates a new API key and returns the unencrypted key once

## Request body

- CreateApiKeyDto
  - `description` string

## Response `200`

OK

- ApiKeyDto
  - `id` integer
  - `userId` integer
  - `description` string
  - `key` string
  - `expires` string, date-time
  - `prefix` string
  - `suffix` string
  - `created` string, date-time
  - `updated` string, date-time

---

[API](https://skmtc.net/transferz/apis/authentication-api.md) · [All operations](https://skmtc.net/transferz/apis/authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/transferz/authentication-api/versions/73249fb480f2/schema)
