A secure, reliable API service for handling user account recovery. Send recovery emails, manage secure tokens, and receive webhook notifications when users complete the recovery process.
Call our API with user email and redirect URL. We generate a secure token and send the recovery email.
When the user clicks the recovery link, we validate the token and immediately webhook your app.
User is redirected to your success page. You handle the password reset in your app.
// Initialize account recovery
const response = await fetch('/api/v1/recovery/initiate', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'user@example.com',
redirect_url: 'https://yourapp.com/reset-success'
})
});
const { request_id, expires_at } = await response.json();