Skip to content

Complete Password Reset

POST
/api/v1/password/reset/complete
curl --request POST \
--url https://api.spartanauth.com/api/v1/password/reset/complete \
--header 'Content-Type: application/json' \
--data '{ "email": "example", "code": "example", "newPassword": "example", "sectorID": "example" }'

Validates the reset code sent to the user’s email and sets a new password for the matching account. Public endpoint; also marks the email as verified because the caller proved access to the inbox.

Media type application/json
object
email
string
code
string
newPassword
string
sectorID
string
Example generated
{
"email": "example",
"code": "example",
"newPassword": "example",
"sectorID": "example"
}

A successful response.

Media type application/json
object
success
boolean
message
string
Example generated
{
"success": true,
"message": "example"
}

An unexpected error response.

Media type application/json
object
code
integer format: int32
message
string
details
Array<object>
object
@type
string
key
additional properties
Example generated
{
"code": 1,
"message": "example",
"details": [
{
"@type": "example"
}
]
}