---
title: "Create Api Key"
method: POST
path: "/api/v1/api-keys"
tags: ["API Keys"]
---

# Create Api Key

`POST /api/v1/api-keys`

## Request body

- CreateAPIKey
  - `api_key_id` string, uuid, required — The unique identifier of the API key
  - `api_key_name` string, required — The name of the API key
  - `expires_at` string, date-time, nullable, required
  - `api_key_type` 'GENERAL' | 'PROJECT'

## Response `201`

Successful Response

- CreateAPIKeyResponse
  - `api_key_id` string, uuid, required — The unique identifier of the API key
  - `api_key_name` string, required — The name of the API key
  - `owner_id` string, required — The ID of a signed up user in Rebolt.
  - `api_key_secret` string, required
  - `scopes` APIKeyScopes, required — A model representing the scopes of an API key.
  - `expires_at` string, date-time, nullable, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/rebolt/apis/fastapi.md) · [All operations](https://skmtc.dev/rebolt/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rebolt/fastapi/revisions/ee5884f323f3/schema)
