How many recovery codes the caller has left
/v1/auth/mfa/recovery-codesReturns the authenticated administrator's recovery-code generation and how many of its ten codes are still unused, for the profile page's count. Never the codes themselves: those are shown once, when issued.
Authentication
Bearer Token
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
Responses
application/json
data *UserMfaRecoveryCodesSummaryDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X GET "https://auth.canopy-io.com/v1/auth/mfa/recovery-codes" \ -H "Authorization: Bearer $CANOPY_TOKEN"
{ "data": { "generation": 0, "remaining": 0 } }
Tell us how we can improve this guide.