---
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

---

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