POST/auth/device-pairing
Open a public-key device pairing rendezvous
Operation auth.devicePairing.create
Description
Registers a short-lived, single-use rendezvous record holding a new device's self-signed ML-DSA-87 and ML-KEM-1024 public keys. The server verifies the device's self-signature and returns a pairing id and a secret status token that only the initiating device uses to poll or cancel the session.
Authentication
No session is required.
Request body
application/jsonCreateDevicePairingRequest
A new device's self-signed public keys for opening a public-key pairing rendezvous.
4 fields
deviceIdstringrequired- lowercase UUID v4
Random UUIDv4 identifying the new device.
encapsulationPublicKeystringrequired- exactly 2,092 characters
- base64, pattern
^(?:[A-Za-z0-9+/]{4}){522}[A-Za-z0-9+/]{2}[AEIMQUYcgkosw048]=$
Base64 ML-KEM-1024 public key of the new device.
selfSignaturestringrequired- exactly 6,172 characters
- base64, pattern
^(?:[A-Za-z0-9+/]{4}){1542}[A-Za-z0-9+/][AQgw]==$
Base64 ML-DSA-87 signature by the new device proving possession of its signing private key.
signingPublicKeystringrequired- exactly 3,456 characters
- base64, pattern
^(?:[A-Za-z0-9+/]{4}){864}$
Base64 ML-DSA-87 public key of the new device.
Other fields are allowed.
Responses
200 OK
application/jsonCreateDevicePairingResponse
Identifiers for a newly opened pairing rendezvous.
3 fields
expiresAtstringrequired- 1 to 64 characters
ISO-8601 UTC timestamp after which the rendezvous expires.
pairingIdstringrequired- exactly 32 characters
- pattern
^[0-9a-f]{32}$
128-bit hex identifier shared out-of-band with the approving device.
statusTokenstringrequired- exactly 64 characters
- lowercase hexadecimal
Secret 256-bit hex bearer token used only by the new device to poll or cancel this rendezvous.
Other fields are allowed.
Other responses
| Status | Meaning | Body |
|---|---|---|
| 400 | Bad Request |
|
| 429 | Too Many Requests |
|
| 500 | Internal Server Error |
|
| 503 | Service Unavailable |
|