API ReferenceAuthentication APIPOST /auth/reset-password

POST /auth/reset-password

Set a new password using the token from the password reset email. The token is typically passed in the request body or as a query parameter (see your project’s reset link format).

Endpoint

POST /api/v1/public/projects/:projectSlug/auth/reset-password

Request Parameters

Path Parameters

ParameterTypeRequiredDescription
projectSlugstringYour project’s unique slug

Request Body

FieldTypeRequiredDescription
tokenstringReset token from the email link
passwordstringNew password (must meet project’s password policy)

Example Request Body

{
  "token": "reset-token-from-email",
  "password": "NewSecurePassword123!"
}

Response

Success (200 OK)

{
  "status": "ok"
}

After success, the user can log in with the new password via POST /auth/login. The reset token is invalidated.

Error Responses

Status CodeError CodeDescription
400INVALID_REQUESTInvalid token or password (e.g. too weak)
401INVALID_TOKENToken expired or already used
429RATE_LIMIT_EXCEEDEDToo many attempts
500INTERNAL_SERVER_ERRORServer error

Available Hooks

  • Event: auth.password.reset.completed
    • When: After password is successfully reset
    • Can do: Security logging, notify user, revoke other sessions

Configure in Project → Hooks. Learn more about hooks →

Try It Now

POSThttps://api.aerocall.app/api/v1/public/projects/your-project/auth/reset-password