Reset password
POST
/password/reset
const url = 'https://auth.timetonic.com/api/password/reset';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"example","email":"hello@example.com","password":"example","password_confirmation":"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://auth.timetonic.com/api/password/reset \ --header 'Content-Type: application/json' \ --data '{ "token": "example", "email": "hello@example.com", "password": "example", "password_confirmation": "example" }'Reset password using token from email
Request Bodyrequired
Section intitulée « Request Bodyrequired »Media typeapplication/json
object
token
required
string
email
required
string format: email
password
required
string format: password
password_confirmation
required
string format: password
Examplegenerated
{ "token": "example", "email": "hello@example.com", "password": "example", "password_confirmation": "example"}Responses
Section intitulée « Responses »Password reset successful
Media typeapplication/json
object
success
boolean
message
string
Example
{ "success": true}Bad request
Media typeapplication/json
object
success
boolean
error
string
message
string
Example
{ "success": false, "error": "bad_request", "message": "Invalid request"}Validation error
Media typeapplication/json
object
success
boolean
error
string
message
string
errors
object
key
additional properties
Array<string>
Example
{ "success": false, "error": "validation_error", "message": "The given data was invalid", "errors": { "email": [ "The email field is required." ] }}