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

# Create Key

`POST /api/keys`

## Request

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

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- CreateKeyRequest
  - `name` string, required
  - `kind` 'tq'

## Response `201`

Successful Response

- CreateKeyResponse
  - `id` string, required
  - `name` string, required
  - `key_prefix` string, required
  - `last_used_at` string, nullable, required
  - `created_at` string, required
  - `kind` 'tq', required
  - `raw_key` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thinqos/apis/thinqos-api.md) · [All operations](https://skmtc.dev/thinqos/apis/thinqos-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thinqos/apis/thinqos-api/revisions/ce2c2ce318b1?raw)
