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

# Create Key

`POST /dashboard/api-keys`

## Request

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

Create a key; ``key`` is shown once (``key_notice``). With
``Idempotency-Key`` a replay creates nothing and answers ``key: null``.

## Headers

- `Idempotency-Key` string, nullable
- `Authorization` string, nullable
- `X-Tickwire-CSRF` string, nullable

## Request body

- CreateKey
  - `name` string, required
  - `kind` 'full' | 'readonly'
  - `scope` 'all' | 'selected'
  - `account_ids` string[]

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tickwire/apis/tickwire-control-plane.md) · [All operations](https://skmtc.dev/tickwire/apis/tickwire-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/tickwire/apis/tickwire-control-plane/revisions/a4d1386fa23e?raw)
