Identity recovery API
Base URL: https://localhost:9443/t/carbon.super/o/api/identity/recovery/v0.9
The Recovery API (version 0.9.0).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth/token, authorization URL https://localhost:9443/oauth/authorize
3 scopes
| Scope | Description |
|---|---|
read | Grants read access |
write | Grants write access |
admin | Grants read and write access to administrative information |
Password Recovery
Send recovery notification
POST /recover-password
This API is used to send password recovery confirmation over defined channels like email/SMS.
Scope(Permission) required: internal_org_recovery_create
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type | query | string | Notification Type | |
notify | query | boolean | If notify=true, notifications will be internally managed. |
Request body (required): application/json
Optional property parameters can be sent via email based on the email template.
Schema: RecoveryInitiatingRequest
Responses
| Code | Description | Schema |
|---|---|---|
202 | Successful response | string |
400 | Bad Request | Error |
500 | Server Error | Error |
Update password
POST /set-password
This API is used to reset the user password using the confirmation key received through the recovery process. You need to input the key and the new password.
Scope(Permission) required: internal_org_recovery_create
Request body (required): application/json
Key, password, and optional metadata properties.
Schema: ResetPasswordRequest
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | ||
password | string | ||
properties | array of Property |
Responses
| Code | Description | Schema |
|---|---|---|
202 | Successful response | |
400 | Bad Request | Error |
412 | Precondition Failed | RetryError |
500 | Server Error | Error |
Validate confirmation code
POST /validate-code
This API is used to validate confirmation codes sent in account recovery scenarios and self-signup. You need to input the confirmation code and recovery step as parameters.
Scope(Permission) required: internal_org_recovery_create
Request body (required): application/json
Code, recovery step, and optional parameters.
For recovery step, you can use one of the following according to the recovery scenario that you want to validate the code. UPDATE_PASSWORD CONFIRM_SIGN_UP VALIDATE_CHALLENGE_QUESTION VALIDATE_ALL_CHALLENGE_QUESTION
Schema: CodeValidationRequest
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
step | string | ||
properties | array of Property |
Responses
| Code | Description | Schema |
|---|---|---|
202 | Accepted | |
400 | Bad Request | Error |
500 | Server Error | Error |
Schemas
ResetPasswordRequest
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | ||
password | string | ||
properties | array of Property |
RetryError
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
message | string | ||
description | string | ||
key | string |
RecoveryInitiatingRequest
Type: object
Was this page helpful?