---
title: "Register device"
method: POST
path: "/api/chat/devices"
tags: ["chat"]
---

# Register device

`POST /api/chat/devices`

Register a new device for the current user with encryption keys.

## Request body

- DeviceRegistrationRequest — Request to register a new device.
  - `device_name` string, required — Device name (e.g., 'iPhone 13', 'Chrome Desktop')
  - `device_type` string, nullable — Device type: 'mobile', 'desktop', 'tablet', 'browser'
  - `device_fingerprint` string, required — Unique device fingerprint/hash
  - `public_key` string, required — RSA public key in PEM format
  - `key_type` string — Key type: 'RSA-2048', 'RSA-4096', 'ECC-P256'

## Response `201`

Successful Response

- DeviceRegistrationResponse — Response after device registration.
  - `device_id` string, required — Registered device UUID
  - `title` string — Success title
  - `message` string — Success message

## Other responses

- `409` — The fingerprint is already bound to another public key.
- `422` — Validation Error

---

[API](https://skmtc.dev/corabea/apis/corabea-api.md) · [All operations](https://skmtc.dev/corabea/apis/corabea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corabea/corabea-api/revisions/13c1bce1bdc4/schema)
