Edge Mender

Preauthorize a recorder device with Mender

Called by recorder/scripts/preauthorize-mender-device.sh during bench provisioning, before the Mender client is started. Registers the device's MAC and public key with Mender so it is accepted on first contact instead of waiting in "pending". Also records the device on the backend as "preauthorized". Authenticated as a recorder_provisioning partner integration; no user session.

post/v1/edge/mender/device-preauthorizations

Request

  • Base URL
    https://api.hify.club
  • Auth
    API key in header X-Access-Key-Id and API key in header X-Signature

Request body

macstring required

Device MAC, exactly as the Mender identity script reports it

pubkeystring required

PEM-encoded RSA public key derived from /var/lib/mender/mender-agent.pem

Example request

{
  "mac": "b8:27:eb:12:34:56",
  "pubkey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBg...\n-----END PUBLIC KEY-----\n"
}

Response

Device preauthorized with Mender

statusstring

Example response

{
  "status": "success"
}

Changes

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