File tree Expand file tree Collapse file tree 1 file changed +52
-1
lines changed
en/asgardeo/docs/guides/users Expand file tree Collapse file tree 1 file changed +52
-1
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,58 @@ To filter users by account status:
494494 "HTTP/1.1 201 Created"
495495 ```
496496
497- 4: Confirm email or validate OTP (One-Time Password)
497+ 4: Resend email verification code (Optional)
498+
499+ !!! abstract ""
500+
501+ === "Request format"
502+
503+ ```curl
504+ curl -X 'POST' \
505+ 'https://api.asgardeo.io/t/<org_name>/api/identity/user/v1.0/resend-code' \
506+ -H 'accept: application/json' \
507+ -H 'Content-Type: application/json' \
508+ -d '{
509+ "user": {
510+ "username": "<username>",
511+ "realm": "DEFAULT"
512+ },
513+ "properties": [
514+ {
515+ "key": "RecoveryScenario",
516+ "value": "EMAIL_VERIFICATION_OTP"
517+ }
518+ ]
519+ }'
520+ ```
521+ === "Sample request"
522+
523+ ```
524+ curl -X 'POST' \
525+ 'https://api.asgardeo.io/t/<org_name>/api/identity/user/v1.0/resend-code' \
526+ -H 'accept: application/json' \
527+ -H 'Content-Type: application/json' \
528+ -d '{
529+ "user": {
530+ 531+ "realm": "DEFAULT"
532+ },
533+ "properties": [
534+ {
535+ "key": "RecoveryScenario",
536+ "value": "EMAIL_VERIFICATION_OTP"
537+ }
538+ ]
539+ }'
540+ ```
541+
542+ ---
543+ **Response**
544+ ```
545+ "HTTP/1.1 201 Created"
546+ ```
547+
548+ 5: Confirm email or validate OTP (One-Time Password)
498549
499550You can verify the email using the confirmation link, or enter the OTP using the following API.
500551
You can’t perform that action at this time.
0 commit comments