narrow-hospital-35452
04/28/2025, 6:55 AMbrief-egg-61061
04/28/2025, 6:55 AMbrief-egg-61061
04/28/2025, 6:55 AMcurl --request POST -sL \ --header "Authorization: Bearer {ORY_API_KEY}" \ --header "Content-Type: application/json" \ --data '{ "expires_in": "12h", "identity_id": "$ACCOUNT_ID" }' https://{project-slug}.<http://projects.oryapis.com/admin/recovery/link|projects.oryapis.com/admin/recovery/link>
This endpoint creates a new recovery link that you can send to the user, effectively "resending" the invitation [Invite users](https://www.ory.sh/docs/kratos/manage-identities/invite-users). For other flows like recovery and verification, Kratos does support resending codes through the resend
parameter: 1. For login flows, there's a resend
parameter in the code method: 'resend': {'description': 'Resend is set when the user wants to resend the code', 'type': 'string'}
2. For registration flows, there's also a resend
parameter: 'resend': {'description': 'Resend restarts the flow with a new code', 'type': 'string'}
The UI typically shows a "Resend code" button (message ID 1070008) for these flows. If you're specifically dealing with expired invitations in Ory Cloud, there was a reported issue about infinite redirect loops with expired invites, which has been addressed, but the solution was to request a new invite rather than resending the expired one.