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": "lilly.donnelly+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/"459a47e33f127560c0e257bd2352bb60"
cache-control: max-age=0, private, must-revalidate
x-request-id: 61973261-9f38-46d1-889d-c9840ff1cd53
x-runtime: 0.020070
content-length: 271
Body
{
"user": {
"id": 1871,
"company": null,
"contact_phone_number": null,
"email": "lilly.donnelly+operator@example.com",
"first_name": "Lilly",
"job_position": null,
"last_name": "Donnelly",
"phone_number": null,
"pin_valid_to": "2025-05-29T11:07:20.593Z",
"profile_id": null,
"role": "operator"
}
}