---
title: "Generate a new opn_ API key"
method: POST
path: "/account/api-keys"
tags: ["Account"]
---

# Generate a new opn_ API key

`POST /account/api-keys`

## Request

- Base URL: `https://opnplatform.com/api`
- URL: `https://opnplatform.com/api/account/api-keys`
- Auth: HTTP bearer

Generates a new long-lived `opn_` API key. **Full key returned once only — store it securely.** Subsequent calls show `opn_abc123***` preview only. Maximum 5 active keys. Essential plan required.

## Request body

- object
  - `label` string

## Response `201`

API key created — full key shown once

- object
  - `api_key` string: Full key — store securely, shown once
  - `created_at` string, date-time
  - `key_preview` string
  - `label` string, nullable

## Other responses

- `403`: Essential plan required
- `429`: Maximum 5 keys per account

---

[API](https://skmtc.dev/opnplatform/apis/packindex-packiq-api-open-packaging-network.md) · [All operations](https://skmtc.dev/opnplatform/apis/packindex-packiq-api-open-packaging-network/llms.txt) · [OpenAPI document](https://skmtc.dev/opnplatform/apis/packindex-packiq-api-open-packaging-network/revisions/f427c0467bb2?raw)
