---
title: "Issue toolkit key"
method: POST
path: "/toolkits/{toolkit_id}/keys"
tags: ["Toolkit Keys"]
---

# Issue toolkit key

`POST /toolkits/{toolkit_id}/keys`

Issue a new API key for a toolkit.

The plaintext value (`jntc_live_…`) is returned **once** in `api_key`. Issue
a fresh key, switch callers, then revoke the old one (do-and-then-revoke).

## Path parameters

- `toolkit_id` string, required

## Request body

- ToolkitKeyCreateRequest — Create a new key for a toolkit.
  - `allowed_ips` string[], nullable
  - `label` string, nullable

## Response `201`

Successful Response

- ToolkitKeyCreateResponse — Create response: key + plaintext shown once.
  - `api_key` string, required
  - `key` ToolkitKeyResponse, required — Toolkit key response.
    - `allowed_ips` string[], nullable
    - `created_at` string, date-time, required
    - `key_id` string, required
    - `key_preview` string, required
    - `label` string, nullable
    - `last_used_at` string, date-time, nullable
    - `revoked` boolean, required
    - `toolkit_id` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error
- `503` — Service Unavailable

## Changes

- **2026-07-01** `d65fcba0d25a` — 3 breaking, 5 warning, 28 info
  - the `detail` response's property type/format changed from `array`/`` to `string`/`` for status `422`
  - the `key` response's property type/format changed from `string`/`` to `object`/`` for status `201`
  - removed the required property `id` from the response with the `201` status
  - removed the optional property `allowed_ips` from the response with the `201` status
  - …32 more
- **2026-04-13** `76e8f6063728` — 11 breaking, 9 warning, 17 info
  - media type `application/problem+json` was changed to a more general media type `application/json` for the response status `422`
  - the response property `detail` became optional for the status `422`
  - the `detail` response property's maxLength was unset from `4096` for the response status `422`
  - the `detail` response's property type/format changed from `string`/`` to `array`/`` for status `422`
  - …33 more

[Change history](https://skmtc.dev/jentic/apis/jentic-control-plane-api/changes/toolkits/:toolkit_id/keys/post.md)

---

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