---
title: "Create API Key"
method: POST
path: "/v0/organizations/{organization-id}/api-keys"
tags: ["API keys"]
---

# Create API Key

`POST /v0/organizations/{organization-id}/api-keys`

Create a new API key. This is the only time `api-key-secret` is shown.

## Path parameters

- `organization-id` string, required

## Request body

- object
  - `api-key-name` unknown, required

## Response `201`

Created

- object
  - `api-key-url` union, required — The resource path for the API key
    - string
    - string
  - `api-key-name` string, required — The immutable display name for the API key
  - `api-key-live?` boolean, required
  - `organization-url` string, required — Link to the [organization](#tag/Organizations).
  - `user-url` string, required — Link to the user.
  - `created-at` string, date-time, required — ISO 8601 formatted date-time.
  - `api-key-secret` string, required — The API secret

## Other responses

- `400` — Bad Request
- `401` — Requires an API key to continue
- `404` — Not Found
- `409` — Conflict

---

[API](https://skmtc.net/griffin/apis/the-griffin-api.md) · [All operations](https://skmtc.net/griffin/apis/the-griffin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/griffin/the-griffin-api/revisions/7da510b95492/schema)
