---
title: "Post Key"
method: POST
path: "/api/developer/keys"
tags: ["Developer"]
---

# Post Key

`POST /api/developer/keys`

## Request

- Base URL: `https://api.animgen.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.animgen.com/api/developer/keys`
- Auth: none declared

## Request body

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

## Response `201`

Successful Response

- APIKeyCreateResponse
  - `id` string, uuid, required
  - `name` string, required
  - `prefix` string, required
  - `lastFour` string, required
  - `scopes` string[], required
  - `createdAt` string, required
  - `expiresAt` string, nullable
  - `revokedAt` string, nullable
  - `lastUsedAt` string, nullable
  - `key` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/animgen/apis/aianimgenbackend.md) · [All operations](https://skmtc.dev/animgen/apis/aianimgenbackend/llms.txt) · [OpenAPI document](https://skmtc.dev/animgen/apis/aianimgenbackend/revisions/ac3744fbb14e?raw)
