---
title: "POST /api/v1/api-keys"
method: POST
path: "/api/v1/api-keys"
tags: ["ApiKeys"]
---

# POST /api/v1/api-keys

`POST /api/v1/api-keys`

## Request

- Base URL: `https://send21.io`
- URL: `https://send21.io/api/v1/api-keys`
- Auth: HTTP bearer

## Request body

- CreateApiKeyRequest
  - `name` string, nullable
  - `scopes` string[], nullable
  - `expiresAt` string, date-time, nullable

## Response `200`

OK

- ApiKeyCreatedResponse
  - `id` string, uuid
  - `key` string, nullable
  - `keyPrefix` string, nullable
  - `scopes` string[], nullable
  - `expiresAt` string, date-time, nullable
  - `warning` string, nullable

---

[API](https://skmtc.dev/send21/apis/send21-api.md) · [All operations](https://skmtc.dev/send21/apis/send21-api/llms.txt) · [OpenAPI document](https://skmtc.dev/send21/apis/send21-api/revisions/d61e1fc21a3e?raw)
