Pterodactyldocs
Authentication

Reset password

Resets an account password using a password reset token. The response tells the frontend whether the user must return to the login form.

POST/auth/password/reset

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/auth/password/reset" \  -H "Content-Type: application/json" \  -d '{    "token": "b6e22f85d63c4d9db9739f9ab0a27a48f51f7ad38ef8c12fd157c4c6f4b2e51d",    "email": "[email protected]",    "password": "correct-horse-battery-staple",    "password_confirmation": "correct-horse-battery-staple"  }'
{  "success": true,  "redirect_to": "/",  "send_to_login": false}