---
title: "Mint an organization API key (the secret is returned once)."
method: POST
path: "/v1/api_keys/create"
tags: ["resource-facade"]
---

# Mint an organization API key (the secret is returned once).

`POST /v1/api_keys/create`

## Headers

- `x-api-key` string, nullable

## Request body

- ApiKeyCreateInput
  - `name` string, required
  - `permissions` string[]
  - `rate_limit` integer, nullable
  - `expires_in_days` integer, nullable

## Response `200`

Successful Response

- ApiKeyCreateOutput
  - `id` string, required
  - `key` string, nullable
  - `prefix` string, required
  - `name` string, required
  - `permissions` string[], required
  - `expires_at` string, nullable
  - `created_at` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.dev/geopera/apis/geopera-data-platform.md) · [All operations](https://skmtc.dev/geopera/apis/geopera-data-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/geopera/geopera-data-platform/revisions/cb0130b2a40a/schema)
