---
title: "Create Inbox Key"
method: POST
path: "/v1/inboxes/{inbox_id}/keys"
---

# Create Inbox Key

`POST /v1/inboxes/{inbox_id}/keys`

## Request

- Base URL: `https://api.namailu.cz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.namailu.cz/v1/inboxes/{inbox_id}/keys`
- Auth: HTTP bearer

Provisioning token jednou vydá schránkový Bearer token; plaintext se neukládá ani nevrací znovu.

## Path parameters

- `inbox_id` string, required

## Request body

- InboxKeyCreate
  - `label` string
  - `scopes` string[]
  - `device_lock` boolean

## Response `201`

Successful Response

- object

## Other responses

- `401`: Missing, invalid or unproved API credential.
- `403`: Credential lacks the required scope or policy permission.
- `422`: Stable validation or policy rejection.
- `500`: Sanitized internal error.

---

[API](https://skmtc.dev/namailu/apis/domovnik-agent-api.md) · [All operations](https://skmtc.dev/namailu/apis/domovnik-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/namailu/apis/domovnik-agent-api/revisions/6342d1e31643?raw)
