Password Reset Step 1 . Request email
Description
This service initiates the password reset process for a party (e.g., a person, company, or physical location) that has forgotten their password.
When called, Thalamus sends an email to the party containing a unique link. This link includes a token that must be used in the subsequent "Reset Password" service to complete the process.
Request
Restrictions
This service can only be called when the party is not logged in.
Endpoint
This service can be called on a Person, Physical Location, or Company entity.
POST https://<server-url>/api/v4/person/password/requestreset
POST https://<server-url>/api/v4/physicallocation/password/requestreset
POST https://<server-url>/api/v4/company/password/requestresetParameters
touchpoint
Query / Header
The identifier for the touchpoint making the request. If sent as a header, the name must be Thalamus-Touchpoint.
token
Query / Header
The authentication token for the API. If sent as a header, the name must be Thalamus-Token.
activity
Query / Header
Optional. The activity to be used. If sent as a header, the name must be Thalamus-Activity.
Content-Type
Header
Specifies the content type of the request body. Must be application/json.
Full URL Example
https://<server-url>/api/v4/person/password/requestreset?touchpoint=test&token=testtesttesttesttesttesttesttesttesttesttesttesttesttesttesttestRequest Body
The body of the request must be a JSON object containing the party's principal identifier.
principal
String
The primary identifier for the party.
JSON
{
"principal": "1:27658923"
}Response
✅ Successful Response: 200 OK
200 OKThe request was successful and the password reset email has been sent. The token in the response body is the password reset token.
JSON
{
"context": {
"links": [
{
"ref": "home",
"href": "http://localhost:8080/thalamus/api/v4/people/home"
},
{
"ref": "profile",
"href": "http://localhost:8080/thalamus/api/v4/people/profile"
},
{
"ref": "consumer",
"href": "http://localhost:8080/thalamus/api/v4/people/consumer"
}
],
"activities": [],
"simpleProfile": null
},
"token-development": {
"credentialId": 1,
"configurationId": 1,
"expiredDate": 1362840510000,
"token": "8d9e09346e50b4400ebdfeb33bd10da7"
}
}❌ Unsuccessful Response: 400 Bad Request
400 Bad RequestReturned if the party is already logged in.
JSON
{
"errors": {
"execution": "PartyAlreadyLoggedin"
}
}❌ Unsuccessful Response: 404 Not Found
404 Not FoundReturned when no party can be found with a principal that matches the one provided in the request.
JSON
{
"errors": {
"execution": "InvalidPrincipal"
}
}Last updated
Was this helpful?
