Password reset request. It sends an email or SMS (depends on login type) with pin code to reset password.
Users
POST request password reset
Endpoint
POST /api/v1/users/password
Parameters
Name | Description |
---|---|
user[login] required | Email or phone number |
Request
Route
POST /api/v1/users/password
Headers
Accept: application/json
Content-Type: application/json
Host: example.org
Cookie:
Body
{
"user": {
"login": "nan.olson+operator@example.com"
}
}
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"9961a377eea6c3b7a6a697af3064ac6b"
cache-control: max-age=0, private, must-revalidate
x-request-id: bcd80319-ea5e-41bb-9747-a127d51934d8
x-runtime: 0.019452
content-length: 261
Body
{
"user": {
"id": 1816,
"company": null,
"contact_phone_number": null,
"email": "nan.olson+operator@example.com",
"first_name": "Nan",
"job_position": null,
"last_name": "Olson",
"phone_number": null,
"pin_valid_to": "2025-01-22T13:18:13.555Z",
"profile_id": null,
"role": "operator"
}
}