Skip to content

Complete a password reset using a token

POST
/v1/auth/reset-password
curl --request POST \
--url https://api.aetherpush.com/v1/auth/reset-password \
--header 'Content-Type: application/json' \
--data '{ "token": "AbCdEf1234567890XyZ", "password": "a-new-strong-password-99" }'

Resets the account password using a token received via the password-reset email. The password change and the teardown of every session and CLI login commit in one transaction. The second factor is deliberately left untouched, so a stolen mailbox stops at the MFA challenge; mfa_setup_deadline is not cleared either.

Media typeapplication/json
object
token
required

Token received via the password-reset email link.

string
password
required
string format: password
>= 12 characters
Example
{
"token": "AbCdEf1234567890XyZ",
"password": "a-new-strong-password-99"
}

Password reset successful. Sessions and CLI logins signed out.

Media typeapplication/json
object
message
required
string
evicted
required

Always false. The reset signs out sessions and CLI logins but never removes a second factor: a stolen mailbox stops at the MFA challenge. Evicting a factor is a separate, step-up-gated action from an authenticated session. The field is kept so an older dashboard can localize from what the server did.

boolean
Example
{
"message": "Password reset successfully. All sessions and CLI logins have been signed out. Your other sign-in methods were not changed. Please log in again.",
"evicted": false
}

Token or password missing, weak password, or invalid/expired token.

Media typeapplication/json
One of:
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Examples

Missing token or password

{
"error": "Token and new password are required.",
"requestId": "req_abc123"
}

Too many password reset attempts from this IP.

Media typeapplication/json
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}

Internal server error.

Media typeapplication/json
object
error
required

Human-readable error message.

string
requestId

Unique identifier for the request, also exposed as the X-Request-Id response header.

string
Example
{
"error": "The requested resource was not found.",
"requestId": "req_abc123"
}