Request a code to reset a password
POSThttps://$CUSTOM-DOMAIN/v2/users/:userId/password_reset
Request a code to reset a password..
Request​
Path Parameters
userId stringrequired
- application/json
- application/grpc
- application/grpc-web+proto
Body
required
sendLink
object
returnCode object
Body
required
sendLink
object
returnCode object
Body
required
sendLink
object
returnCode object
Responses​
- 200
- 403
- 404
- default
OK
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
details
object
verificationCode in case the medium was set to return_code, the code will be returned (string)
{
"details": {
"sequence": "2",
"changeDate": "2025-03-05T21:29:22.155Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-05T21:29:22.155Z"
},
"verificationCode": "string"
}
- Schema
- Example (from schema)
Schema
details
object
verificationCode in case the medium was set to return_code, the code will be returned (string)
{
"details": {
"sequence": "2",
"changeDate": "2025-03-05T21:29:22.155Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-05T21:29:22.155Z"
},
"verificationCode": "string"
}
- Schema
- Example (from schema)
Schema
details
object
verificationCode in case the medium was set to return_code, the code will be returned (string)
{
"details": {
"sequence": "2",
"changeDate": "2025-03-05T21:29:22.156Z",
"resourceOwner": "69629023906488334",
"creationDate": "2025-03-05T21:29:22.156Z"
},
"verificationCode": "string"
}
Returned when the user does not have permission to access the resource.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- application/grpc
- application/grpc-web+proto
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
code int32
message string
details
object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://$CUSTOM-DOMAIN/v2/users/:userId/password_reset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"sendLink": {
"notificationType": "NOTIFICATION_TYPE_Unspecified",
"urlTemplate": "https://example.com/password/changey?userID={{.UserID}}&code={{.Code}}&orgID={{.OrgID}}"
},
"returnCode": {}
}'
ResponseClear