---
title: "Create API key"
method: POST
path: "/api/v1/keys"
tags: ["api-keys"]
---

# Create API key

`POST /api/v1/keys`

Requires admin scope or master key.

## Request body

- object
  - `scope` 'admin' | 'read' | 'write', required
  - `label` string

## Response `201`

Default Response

- object
  - `data` object, required
    - `key` string, required
    - `keyId` string, required
    - `scope` 'admin' | 'read' | 'write', required
    - `label` string
    - `createdAt` string, required

## Other responses

- `401` — Default Response
- `403` — Default Response
- `422` — Default Response
- `500` — Default Response

---

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