---
title: "Create Key"
method: POST
path: "/keys"
tags: ["portal"]
---

# Create Key

`POST /keys`

## Request

- Base URL: `https://api.relayxapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.relayxapi.com/keys`
- Auth: none declared

Issue a new API key. The full secret is returned once in this response and cannot be retrieved again — store it immediately.

## Headers

- `authorization` string, nullable

## Request body

- KeyCreate
  - `label` string
  - `kind` string
  - `credits` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/relayxapi/apis/relayx-x-data-api.md) · [All operations](https://skmtc.dev/relayxapi/apis/relayx-x-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/relayxapi/apis/relayx-x-data-api/revisions/6c9acb520594?raw)
