---
title: "Create an API key (plaintext shown once)"
method: POST
path: "/api/keys"
tags: ["Keys"]
---

# Create an API key (plaintext shown once)

`POST /api/keys`

## Request

- Base URL: `https://app.flipletters.com`
- URL: `https://app.flipletters.com/api/keys`
- Auth: HTTP bearer

## Request body

- object
  - `name` string
  - `workspaceId` string: Optional: scope the key to one project

## Response `200`

{ key, plaintext } — store plaintext immediately

## Other responses

- `400`: Structured FlipLetters API error
- `401`: Structured FlipLetters API error

---

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