---
title: "Create API Key"
method: POST
path: "/account/apiKey"
tags: ["Account"]
---

# Create API Key

`POST /account/apiKey`

Creates a new API key.

## Request body

- CreateApiKeyInput
  - `name` string, nullable

## Response `200`

Success

- CreateApiKeyOutput
  - `id` string, nullable
  - `key` string, nullable
  - `name` string, nullable
  - `createdAt` string, date-time
  - `expiresAt` string, date-time

---

[API](https://skmtc.dev/closebot/apis/closebot-api.md) · [All operations](https://skmtc.dev/closebot/apis/closebot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/closebot/closebot-api/revisions/da5f5fb58534/schema)
