AlejandroA
ZITADELโ€ข4w agoโ€ข
17 replies
Alejandro

Generate recovery codes API

Hi, I have been trying the API to generate recovery codes for our users https://zitadel.com/docs/apis/resources/user_service_v2/user-service-generate-recovery-codes, and it doesn't work for me. No matter what I do, I get 404 errors. What's expected on this API to generate the codes? I made sure the user id exists, but I still get a 404 error.

curl --location 'https://<instance>/v2/users/<user-id>/recovery_codes' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token' \
--data '{
    "count": 1
}'
Was this page helpful?