Verify an Attestation Token
POST/v1/organizations/:organization_slug/projects/:project_slug/verify-attestation
Send this request to https://api.nrfcloud.com, not the default Memfault API host.
Verify that an attestation token was produced by a genuine Nordic Semiconductor device.
Verification does not onboard, claim, or otherwise modify a Device. To onboard a device using its attestation token, use Create an nRF9x Device.
Requires an Organization Auth Token with the device:read permission.
To verify multiple tokens, send a separate request for each token.
Return Value
Returns 200 OK with isValid set to true if the token is valid, or false if any of the following apply:
- The token cannot be parsed.
- The device identified by the token is not a registered Nordic Semiconductor device.
- The token's signature does not match the registered device key.
Request
Responses
- 200
- 400
- 401
- 403
OK
Bad Request. The request body is missing attestationToken or otherwise fails validation.
Unauthorized. The Organization Auth Token is missing, malformed, or expired.
Forbidden. The Organization Auth Token lacks the device:read permission or is not authorized for the organization or project.