---
title: "Create API Key"
method: POST
path: "/v1/users/self/api-keys"
tags: ["User"]
---

# Create API Key

`POST /v1/users/self/api-keys`

## Request body

- RepoAPIKeyCreate
  - `expiresAt` string, nullable
  - `name` string, required

## Response `201`

Created

- RepoAPIKeyCreatedOut
  - `createdAt` string
  - `expiresAt` string, nullable
  - `id` string
  - `lastUsedAt` string, nullable
  - `name` string
  - `token` string
  - `userId` string

---

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