---
title: "Create Api Key"
method: POST
path: "/v1/organization/projects/{project_id}/api_keys"
tags: ["Organization"]
---

# Create Api Key

`POST /v1/organization/projects/{project_id}/api_keys`

Create a new API key for a given project.

## Path parameters

- `project_id` integer, required

## Request body

- CreateApiKeyRequest — Request model for creating a new API key using management API key credentials.
  - `name` string, nullable — Name of the API key
  - `expires_at` integer — Expiration timestamp (Unix timestamp)
  - `total_tokens_limit` integer — Total tokens limit
  - `total_searches_limit` integer — Total searches limit

## Response `201`

Successful Response

- CreateApiKeyResponse — Response model for created API key.
  - `id` string, required — API key ID
  - `api_key` string, required — Plaintext API key (shown only once)
  - `redacted_value` string, required — Redacted API key value
  - `expires_at` integer, required — Expiration timestamp

## Other responses

- `422` — Validation Error

---

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