Create a Recovery Code

POST {{baseUrl}}/admin/recovery/code

This endpoint creates a recovery code which should be given to the user in order for them to recover (or activate) their account.

Request Body

{"identity_id"=>"<uuid>", "expires_in"=>"46877490ms"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;recovery_link&quot;:&quot;\u003cstring\u003e&quot;,&quot;recovery_code&quot;:&quot;\u003cstring\u003e&quot;,&quot;expires_at&quot;:&quot;\u003cdateTime\u003e&quot;}