---
title: "Get Nonce"
method: GET
path: "/servers/nonce"
tags: ["Servers"]
---

# Get Nonce

`GET /servers/nonce`

Generate a nonce for boot attestation.

This endpoint is called by VMs during boot before any registration.
No authentication required as the VM doesn't exist in the system yet.

miner_hotkey is OPTIONAL for backwards compatibility: older VM initramfs fetch the nonce
without it. When supplied it is bound into the nonce, and boot attestation enforces that
args.miner_hotkey matches the value stored here (preventing cross-miner nonce reuse). VMs
that omit it get an unbound nonce and the binding check is skipped.

TODO: make miner_hotkey required when all VMs >= 1.4.0

## Query parameters

- `miner_hotkey` string, nullable

## Response `200`

Successful Response

- NonceResponse — Response model for nonce generation.
  - `nonce` string, required
  - `expires_at` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/chutes/apis/fastapi.md) · [All operations](https://skmtc.net/chutes/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chutes/fastapi/revisions/352418d4e3a2/schema)
