---
title: "POST /organization/api-keys"
method: POST
path: "/organization/api-keys"
tags: ["Organization API Keys"]
---

# POST /organization/api-keys

`POST /organization/api-keys`

## Request body

- PortalCreateApiKeyRequest
  - `expires_at` integer, nullable — Expiration timestamp (optional)
  - `name` string, nullable — Name/description for the API key
  - `scopes` string[], nullable — Permissions or scopes for the API key

## Response `200`

API key created successfully

- ApiKeyCreatedResponse
  - `api_key` ApiKey, required
    - `active` boolean, required — Whether the API key is active
    - `api_key` string, required — Unique API key identifier
    - `created_at` integer, required — Timestamp when the API key was created
    - `expires_at` integer, nullable — Expiration timestamp (optional)
    - `last_used_at` integer, nullable — Timestamp when the API key was last used
    - `name` string, nullable — Name/description for the API key
    - `organization_id` string, required — Organization identifier
    - `scopes` string[], required — Permissions or scopes for the API key
  - `message` string, required — Success message

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.net/breeze-baby/apis/breeze-api.md) · [All operations](https://skmtc.net/breeze-baby/apis/breeze-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/breeze-baby/breeze-api/versions/d0a18846aa92/schema)
