---
title: "Create an API key for the current account"
method: POST
path: "/v1/keys"
tags: ["Account"]
---

# Create an API key for the current account

`POST /v1/keys`

## Request

- Base URL: `https://api.fastaf.co`
- URL: `https://api.fastaf.co/v1/keys`
- Auth: HTTP bearer

At most five active keys are allowed. The full key is returned only in this response.

## Request body

- object
  - `name` string

## Response `201`

API key created. The full key is shown only once.

- CreatedApiKey
  - `id` string, required
  - `prefix` string, required
  - `name` string, required
  - `status` 'active', required
  - `created_at` string, required
  - `last_used_at` unknown, required
  - `key` string, required
  - `warning` string, required

## Other responses

- `400`: The JSON body or key name is invalid.
- `401`: A valid bearer API key is required.
- `403`: The account is suspended.
- `409`: The account already has five active API keys.
- `429`: A rate or concurrency limit was reached.
- `500`: The request failed unexpectedly.
- `503`: The service is temporarily unavailable.

---

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