Verification Code Management API
Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/api/identity/user/v1.0
The Verification Code Management API (version 1.0.0).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://api.asgardeo.io/t/{organization-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{organization-name}/oauth2/authorize
1 scopes
| Scope | Description |
|---|---|
internal_user_code_mgt_create | Grants create access to user code management in the organization (root) |
Verification Code
Validate code
POST /validate-code
This API is used to validate the code generated during the verification process associated with a user.
Scope(Permission) required: internal_user_code_mgt_create
Request body (required): application/json
The validation code retrieved for the verification scenario, and optional property parameters.
Schema: CodeValidationRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
properties | array of Property |
Responses
| Code | Description | Schema |
|---|---|---|
202 | Accepted | |
400 | Bad Request | Error |
401 | Unauthorized | Error |
500 | Server Error | Error |
Resend code
POST /resend-code
This API is used to resend the confirmation code if it is missing.
Scope(Permission) required: internal_user_code_mgt_create
Request body (required): application/json
User information and optional property parameters to resend the verification code.
Schema: ResendCodeRequest
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | |
400 | Bad Request | Error |
401 | Unauthorized | Error |
500 | Server Error | Error |
Schemas
CodeValidationRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
properties | array of Property |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
message | string | ||
description | string | ||
traceId | string |
ResendCodeRequest
Type: object
Was this page helpful?