curl -X POST https://api.gosentrix.io/api/v1/recovery/complete \
-H "Content-Type: application/json" \
-d '{
"reset_token": "RESET_TOKEN_FROM_VERIFY",
"new_password": "NewSecurePassword123!"
}'
{
"message": "Password reset successfully",
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Authentication API
Complete Recovery
Complete password recovery with new password
POST
/
api
/
v1
/
recovery
/
complete
curl -X POST https://api.gosentrix.io/api/v1/recovery/complete \
-H "Content-Type: application/json" \
-d '{
"reset_token": "RESET_TOKEN_FROM_VERIFY",
"new_password": "NewSecurePassword123!"
}'
{
"message": "Password reset successfully",
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Complete the password recovery process by setting a new password.
curl -X POST https://api.gosentrix.io/api/v1/recovery/complete \
-H "Content-Type: application/json" \
-d '{
"reset_token": "RESET_TOKEN_FROM_VERIFY",
"new_password": "NewSecurePassword123!"
}'
{
"message": "Password reset successfully",
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}
Request Body
string
required
Reset token from recovery verify step
string
required
New password (min 12 characters, must include uppercase, lowercase, number, and special character)
Response
string
Success message
string
New access token (user is automatically logged in)
string
New refresh token
Errors
object
Invalid token or weak password
object
Token not found
Notes
- User is automatically logged in after password reset
- All existing sessions are invalidated
- MFA must be re-verified if enabled