Complete Password Reset
POST
/api/v1/password/reset/complete
const url = 'https://api.spartanauth.com/api/v1/password/reset/complete';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"example","code":"example","newPassword":"example","sectorID":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Request Body
Section titled “Request Body ” Media type application/json
object
email
string
code
string
newPassword
string
sectorID
string
Example generated
{ "email": "example", "code": "example", "newPassword": "example", "sectorID": "example"}Responses
Section titled “ Responses ”A successful response.
Media type application/json
object
success
boolean
message
string
Example generated
{ "success": true, "message": "example"}default
Section titled “default ”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" } ]}