---
title: "Generate a new API key"
method: POST
path: "/api/v1/platform/developers/keys"
tags: ["Developers", "Developers"]
---

# Generate a new API key

`POST /api/v1/platform/developers/keys`

## Request

- Base URL: `https://kokofinance.net` (the document declares no server; this is the origin it was published from)
- URL: `https://kokofinance.net/api/v1/platform/developers/keys`
- Auth: none declared

Create a new API key with specified tier (free or paid).

Free keys: Created immediately, 250 calls lifetime.
Paid keys: If no active Stripe subscription, redirects to Checkout.
           If subscription exists, key is created immediately (billing
           is org-scoped, not per-key -- no subscription quantity to update).

## Headers

- `authorization` string, nullable

## Request body

- CreateKeyRequest
  - `name` string, required
  - `tier` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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