---
title: "POST /api-keys"
method: POST
path: "/api-keys"
---

# POST /api-keys

`POST /api-keys`

## Request body

- CreateClientKeyDTO
  - `name` string, required
  - `projectId` string
  - `key` string
  - `customMetaData` object
  - `customAccountId` string
  - `rateLimitConfigs` RateLimitConfiguration
  - `customUserId` string
  - `expiry` string, date-time
  - `clientIP` string
  - `clientUserAgent` string

## Response `201`

## Changes

- **2024-05-21** `008934224314` — 1 info
  - endpoint added
- **2024-05-20** `a2d864f3a8db` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/thatapicompany/apis/auth-api/changes/api-keys/post.md)

---

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