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

# Create Api Key

`POST /api/v1/api-keys`

## Request

- Base URL: `https://api.rebolt.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rebolt.ai/api/v1/api-keys`
- Auth: HTTP bearer

## 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

## Changes

- **2026-10-14** `6e68f3c2611b`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Operation history](https://skmtc.dev/rebolt/apis/rebolt-api/changes/api/v1/api-keys/post.md)

---

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