---
title: "Generate an API key"
method: POST
path: "/auth/generate/api-key"
tags: ["Authentication"]
---

# Generate an API key

`POST /auth/generate/api-key`

## Request

- Base URL: `https://api-staging.fanheroapi.com`
- URL: `https://api-staging.fanheroapi.com/auth/generate/api-key`
- Auth: API key in header `apiKey`

## Response `201`

Get a ResponseApiKey object.

- ResponseApiKey
  - `id` string, required
  - `api_key` string, required
  - `message` string, required
  - `created_at` string, date-time, required

---

[API](https://skmtc.dev/fanhero/apis/user-management-endpoints.md) - [All operations](https://skmtc.dev/fanhero/apis/user-management-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/fanhero/apis/user-management-endpoints/revisions/3f982670c057?raw)
