---
title: "Create Ro Key"
method: POST
path: "/readonly-keys"
---

# Create Ro Key

`POST /readonly-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/readonly-keys`
- Auth: none declared

Create a read-only key. ``key`` is shown once and can't be shown again. With
``Idempotency-Key`` a replay creates nothing and answers ``key: null``
with a ``key_notice`` saying it was already shown.

## Headers

- `Idempotency-Key` string, nullable
- `X-API-Key` string, nullable
- `Authorization` string, nullable
- `auth-token` string, nullable

## Request body

- CreateReadonlyKey
  - `name` string, required
  - `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)
