misc

Complete device enrollment by exchanging a one-shot enrollment_token for a registered device row with the device's age public key.

Complete device enrollment by exchanging a one-shot enrollment_token for a registered device row with the device's age public key.

post/api/mcp/tools/env_sync.device_enroll

Request

  • Base URL: https://api.ainote.dev
  • URL: https://api.ainote.dev/api/mcp/tools/env_sync.device_enroll
  • Auth: API key in header Authorization

Request body

aliasstring required
age_pubkeystring required
enrollment_tokenstring required
device_idstring

Optional calling device id for audit attribution. The X-Ainote-Device-Id header is the canonical source; this argument is the backwards-compatible fallback for clients that predate the header. If both are sent and disagree, the request is rejected (DEVICE_MISMATCH).

Response

Tool executed successfully

Changes

No recorded changes to this operation across all 1 revision of this API.