Request password reset​
Request a code to be able to set a new password.
Path Parameters
unique identifier of the user.
Request Body required
sendEmail object
Let ZITADEL send the link to the user via SMS.
Get the code back to provide it to the user in your preferred mechanism.
Request Body required
sendEmail object
Let ZITADEL send the link to the user via SMS.
Get the code back to provide it to the user in your preferred mechanism.
Request Body required
sendEmail object
Let ZITADEL send the link to the user via SMS.
Get the code back to provide it to the user in your preferred mechanism.
- 200
- 403
- 404
- default
Password reset successfully requested
Schema
details object
In case the medium was set to return_code, the code will be returned.
{
"details": {
"sequence": "2",
"changeDate": "2024-06-17T11:37:09.734Z",
"resourceOwner": "69629023906488334"
},
"verificationCode": "SKJd342k"
}
Schema
details object
In case the medium was set to return_code, the code will be returned.
{
"details": {
"sequence": "2",
"changeDate": "2024-06-17T11:37:09.734Z",
"resourceOwner": "69629023906488334"
},
"verificationCode": "SKJd342k"
}
Schema
details object
In case the medium was set to return_code, the code will be returned.
{
"details": {
"sequence": "2",
"changeDate": "2024-06-17T11:37:09.734Z",
"resourceOwner": "69629023906488334"
},
"verificationCode": "SKJd342k"
}
Returned when the user does not have permission to access the resource.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Returned when the resource does not exist.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
POST /v2beta/users/:userId/password/reset
Authorization
name: OAuth2type: oauth2scopes:openid,urn:zitadel:iam:org:project:id:zitadel:aud
flows: { "authorizationCode": { "authorizationUrl": "$CUSTOM-DOMAIN/oauth/v2/authorize", "tokenUrl": "$CUSTOM-DOMAIN/oauth/v2/token", "scopes": { "openid": "openid", "urn:zitadel:iam:org:project:id:zitadel:aud": "urn:zitadel:iam:org:project:id:zitadel:aud" } } }
Request
Request
curl -L -X POST 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/password/reset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sendEmail": {
"urlTemplate": "https://example.com/password/changey?userID={{.UserID}}&code={{.Code}}&orgID={{.OrgID}}"
},
"sendSms": {},
"returnCode": {}
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/password/reset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sendEmail": {
"urlTemplate": "https://example.com/password/changey?userID={{.UserID}}&code={{.Code}}&orgID={{.OrgID}}"
},
"sendSms": {},
"returnCode": {}
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/password/reset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sendEmail": {
"urlTemplate": "https://example.com/password/changey?userID={{.UserID}}&code={{.Code}}&orgID={{.OrgID}}"
},
"sendSms": {},
"returnCode": {}
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/password/reset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sendEmail": {
"urlTemplate": "https://example.com/password/changey?userID={{.UserID}}&code={{.Code}}&orgID={{.OrgID}}"
},
"sendSms": {},
"returnCode": {}
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/password/reset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sendEmail": {
"urlTemplate": "https://example.com/password/changey?userID={{.UserID}}&code={{.Code}}&orgID={{.OrgID}}"
},
"sendSms": {},
"returnCode": {}
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/password/reset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sendEmail": {
"urlTemplate": "https://example.com/password/changey?userID={{.UserID}}&code={{.Code}}&orgID={{.OrgID}}"
},
"sendSms": {},
"returnCode": {}
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/password/reset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sendEmail": {
"urlTemplate": "https://example.com/password/changey?userID={{.UserID}}&code={{.Code}}&orgID={{.OrgID}}"
},
"sendSms": {},
"returnCode": {}
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/password/reset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sendEmail": {
"urlTemplate": "https://example.com/password/changey?userID={{.UserID}}&code={{.Code}}&orgID={{.OrgID}}"
},
"sendSms": {},
"returnCode": {}
}'
curl -L -X POST 'https://$CUSTOM-DOMAIN/v2beta/users/:userId/password/reset' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"sendEmail": {
"urlTemplate": "https://example.com/password/changey?userID={{.UserID}}&code={{.Code}}&orgID={{.OrgID}}"
},
"sendSms": {},
"returnCode": {}
}'