Skip to content

Commit bebee93

Browse files
Add resend code api for add users with email verification
1 parent 6f0113a commit bebee93

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

en/asgardeo/docs/guides/users/manage-users.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
"username": "[email protected]",
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
499550
You can verify the email using the confirmation link, or enter the OTP using the following API.
500551

0 commit comments

Comments
 (0)