---
title: "Enroll Device"
method: POST
path: "/v1/device/enroll"
---

# Enroll Device

`POST /v1/device/enroll`

## 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/device/enroll`
- Auth: HTTP bearer

Jednorázově uloží veřejný klíč lokálního seedu; seed se do API nikdy neposílá.

## Headers

- `X-Namailu-Enrollment` string, nullable

## Request body

- DeviceEnroll
  - `public_key` string, required: Ed25519 public key, base64url encoded

## 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)
