---
title: "Add Api Key"
method: POST
path: "/admin/add-api-key"
tags: ["Admin"]
---

# Add Api Key

`POST /admin/add-api-key`

Creates a new API key for the specified organization.

## Request body

- AddAPIKeyRequest
  - `organization_id` string, uuid, required — The organization ID to create the API key for.
  - `name` string, required — A descriptive name for this API key.
  - `permission` 'all' | 'read_only', required
  - `created_by` string, nullable — Who created this API key.

## Response `201`

Successful Response

- AddAPIKeyResponse
  - `api_key` string, required — The generated API key.

## Other responses

- `404` — Not Found
- `422` — Validation Error

## Changes

- **2026-01-21** `b5badb138367` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/zeroentropy-ai/apis/zeroentropy-api/changes/admin/add-api-key/post.md)

---

[API](https://skmtc.dev/zeroentropy-ai/apis/zeroentropy-api.md) · [All operations](https://skmtc.dev/zeroentropy-ai/apis/zeroentropy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zeroentropy-ai/zeroentropy-api/revisions/5ff1b24060b9/schema)
