Tearleads

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

NameInTypeDetails
pairingIdpathstringrequired
  • exactly 32 characters
  • pattern ^[0-9a-f]{32}$

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.

Other fields are allowed.

Other responses

StatusMeaningBody
400Bad Request

application/jsonErrorResponse

401Unauthorized

application/jsonSessionFailureResponse

403Forbidden

application/jsonErrorResponse

404Not Found

application/jsonErrorResponse

409Conflict

application/jsonErrorResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse