---
title: "Create Api Key"
method: POST
path: "/api/v1/auth/keys"
tags: ["Auth"]
---

# Create Api Key

`POST /api/v1/auth/keys`

Create a new API key for the current user.

Requires JWT Bearer authentication with the token received from the login endpoint.

## Request body

- APIKeyCreate — Schema for API key creation request.
  - `name` string

## Response `200`

Successful Response

- APIKeyResponse — Schema for API key response.
  - `key` string, required
  - `key_prefix` string, required
  - `name` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/morpheusais/apis/morpheus-api-gateway.md) · [All operations](https://skmtc.net/morpheusais/apis/morpheus-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morpheusais/morpheus-api-gateway/versions/061297d1593b/schema)
