curl -X POST https://api.dotlookup.dev/v1/auth/reset-password \
-H "Content-Type: application/json" \
-d '{"token": "a1b2c3...", "password": "a-new-strong-password"}'
{
"message": "password has been reset — you can now log in"
}
{
"error": {
"code": "INVALID_TOKEN",
"message": "invalid or expired reset token"
}
}
{
"error": {
"code": "INVALID_PARAM",
"message": "password must be at least 8 characters"
}
}
Account
Reset Password
Consume a reset token and set a new password
POST
/
v1
/
auth
/
reset-password
curl -X POST https://api.dotlookup.dev/v1/auth/reset-password \
-H "Content-Type: application/json" \
-d '{"token": "a1b2c3...", "password": "a-new-strong-password"}'
{
"message": "password has been reset — you can now log in"
}
{
"error": {
"code": "INVALID_TOKEN",
"message": "invalid or expired reset token"
}
}
{
"error": {
"code": "INVALID_PARAM",
"message": "password must be at least 8 characters"
}
}
Sets a new password using a token from
Once reset, log in with the new password to retrieve your API key.
POST /v1/auth/forgot-password. The token is single-use and expires after 1 hour.
string
required
The reset token from the email link (the
?token= query parameter on the reset URL)string
required
New password. Must be at least 8 characters.
curl -X POST https://api.dotlookup.dev/v1/auth/reset-password \
-H "Content-Type: application/json" \
-d '{"token": "a1b2c3...", "password": "a-new-strong-password"}'
{
"message": "password has been reset — you can now log in"
}
{
"error": {
"code": "INVALID_TOKEN",
"message": "invalid or expired reset token"
}
}
{
"error": {
"code": "INVALID_PARAM",
"message": "password must be at least 8 characters"
}
}