---
title: "Register a device and receive a signed license token"
method: POST
path: "/v1/device/register"
tags: ["devices"]
---

# Register a device and receive a signed license token

`POST /v1/device/register`

## Request

- Base URL: `https://api.sqai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sqai.com/v1/device/register`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Called by `algenta login`. Registers the calling machine under the API key, checks the plan's device limit, and returns a signed JWT device license stored locally by the SDK. Re-registering the same device (same device_id) refreshes the license.

## Request body

- RegisterRequest
  - `device` DeviceInfo, required
    - `device_id` string, required
    - `platform` string
    - `platform_version` string
    - `hostname_hash` string
    - `sdk_version` string
    - `device_pubkey_thumbprint` string
    - `virtualization` string
    - `container` boolean, nullable

## Response `200`

Successful Response

- RegisterResponse
  - `license_token` string, required
  - `device_id` string, required
  - `plan` string, required
  - `device_limit` integer, required
  - `device_count` integer, required
  - `api_key_prefix` string, required
  - `message` string, required
  - `device_pubkey_thumbprint` string
  - `credits_granted` integer
  - `credits_expires_at` number
  - `credits_billing_period` string
  - `server_time` number

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sqai/apis/algenta-control-plane.md) · [All operations](https://skmtc.dev/sqai/apis/algenta-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/sqai/apis/algenta-control-plane/revisions/f30391a81130?raw)
