---
title: "Create Key"
method: POST
path: "/api-keys/"
tags: ["api-keys"]
---

# Create Key

`POST /api-keys/`

## Request body

- ApiKeyCreate
  - `name` string, required
  - `org_id` string, nullable
  - `project_id` string, nullable

## Response `200`

Successful Response

- ApiKeyCreated
  - `id` string, required
  - `name` string, required
  - `raw_key` string, required
  - `prefix` string, required
  - `last4` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/reasonblocks/apis/reasonblocks-control-plane-api.md) · [All operations](https://skmtc.dev/reasonblocks/apis/reasonblocks-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/reasonblocks/reasonblocks-control-plane-api/revisions/cf3dce6ffb6f/schema)
