POST/auth/device-pairing/{pairingId}/complete
Complete a pending device pairing rendezvous
Operation auth.devicePairing.complete
Description
Atomically consumes a pending pairing rendezvous after the approving device has added the new device to the user's device chain, storing the caller's root public keys, committed head hash, and HMAC approval tag for the new device to retrieve.
Authentication
Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
pairingId | path | string | required
|
Request body
application/jsonCompleteDevicePairingRequest
Approval payload stored once the approving device has added the new device to the user's device chain.
5 fields
approvalTagstringrequired- exactly 64 characters
- lowercase hexadecimal
HMAC-SHA-256 hex tag keyed by the out-of-band pairing nonce authenticating the root keys and head state hash.
headStateHashstringrequired- exactly 64 characters
- lowercase hexadecimal
SHA-256 hex hash of the committed user device state that includes the newly paired device.
rootRecoveryPublicKeystringrequired- exactly 2,092 characters
- base64, pattern
^(?:[A-Za-z0-9+/]{4}){522}[A-Za-z0-9+/]{2}[AEIMQUYcgkosw048]=$
Base64 ML-KEM-1024 root recovery public key of the approving user.
rootSigningPublicKeystringrequired- exactly 3,456 characters
- base64, pattern
^(?:[A-Za-z0-9+/]{4}){864}$
Base64 ML-DSA-87 root signing public key of the approving user.
userIdstringrequired- lowercase UUID v4
UUIDv4 of the approving user.
Other fields are allowed.
Responses
200 OK
application/jsonCompleteDevicePairingResponse
Confirmation that the pairing rendezvous was consumed and marked completed.
2 fields
pairingIdstringrequired- exactly 32 characters
- pattern
^[0-9a-f]{32}$
128-bit hex identifier of the completed rendezvous.
statusstringrequired- always
completed
Always
completed.- always
Other fields are allowed.
Other responses
| Status | Meaning | Body |
|---|---|---|
| 400 | Bad Request |
|
| 401 | Unauthorized |
|
| 403 | Forbidden |
|
| 404 | Not Found |
|
| 409 | Conflict |
|
| 500 | Internal Server Error |
|
| 503 | Service Unavailable |
|