---
title: "Create API key (JWT only)"
method: POST
path: "/v1/keys"
tags: ["Keys"]
---

# Create API key (JWT only)

`POST /v1/keys`

## Request

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

## Request body

- object
  - `name` string
  - `expires_at` string, date-time, nullable

## Response `201`

Created

- CreateKeyResponse
  - `data` object
  - `meta` BillingMeta: Plan and quota snapshot (shape may evolve)

## Other responses

- `400`: Invalid input
- `401`: Missing or invalid bearer token
- `409`: Conflict (e.g. API key limit)
- `429`: Rate limit exceeded. Responses include the current IETF `RateLimit` and `RateLimit-Policy` structured fields, compatibility `RateLimit-*` and `X-RateLimit-*` fields, and `Retry-After` on 429.
- `500`: Server error
- `default`: Any documented or unexpected 4xx or 5xx response uses the same typed error envelope.

---

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