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

# Create API key

`POST /api/v1/apikeys`

Creation of a new API key.

## Request body

- ApiKeyCreationRequest
  - `label` string, required
  - `organizationId` string, required
  - `secret` string, required

## Response `200`

OK

- ApiKeyPresentation
  - `active` boolean, required — Whether this API key is active
  - `createdAt` integer, required — The UTC unix timestamp of when this api key has been created
  - `createdBy` string, required
  - `key` string, required — The api key identifier
  - `label` string, required — The label / name of the api key
  - `organizationId` string, required — The organization namespace this api key belongs to

## Other responses

- `201` — Created
- `202` — Accepted
- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `405` — Method not allowed
- `406` — Not Acceptable
- `409` — Conflict
- `415` — Unsupported Media Type
- `500` — Internal Server Error

---

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