Verify 2FA Setup with Email
Verify the 2FA setup using the verification code sent to the user's email address, and return the other platforms on which the user has not enabled 2FA.
Note: Before calling this API, call the Send an Email Verification Code for 2FA Setup interface to obtain the verification
code.
Request URL
POST {base_url}/uc-auth/api/v1/mfa/email/verify
Request parameters
- Headers
-
Parameter Required Type Description Authorization Yes String The access token used for authentication. Format: Bearer
{access_token}. - Body parameters
-
Parameter Required Type Description code Yes String The 6-digit verification code sent to the user's email address.
Response parameters
| Parameter | Type | Description |
|---|---|---|
| requestId | String | The unique ID of the request, which can be used to quickly locate the request. |
| code | String | The HTTP status code of the request.
|
| message | String | The status message of the request. |
| detailMessage | String | The detailed error information. When the request is successful, this parameter returns empty. |
| result | Object<Verification_Result> | The verification result of the email-based 2FA setup. |
- Verification_Result
-
Parameter Type Description crossPlatformPrompts Array<Disabled_Platform> The platforms on which 2FA is not enabled.
- Disabled_Platform
-
Parameter Type Description target String The platforms on which 2FA is not enabled.
PP: Yeastar Partner Portal.WEBCLIENT: NovoOne Web Client.PLATFORM: NovoOne Platform Portal.
Example
Request example
POST /uc-auth/api/v1/mfa/email/verify HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxMDAwQGNvbG9ydGVzdDIiLCJncmFudF90eXBlIjoicGFzc3dvcmQiLCJ1c2VyX25hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwiY2xpZW50X2V4dCI6eyJkZXNjcmlwdGlvbiI6IueuoeeQhuWQjuWPsFdlYuW6lOeUqCIsInBsYXRmb3JtIjoid2ViIn0sImV4cCI6MTc5MzAwMTIzOCwiaWF0IjoxNzkyOTc5NjM4LCJqdGkiOiJlMTE4YjgwNC1iYmVmLTRjMTUtOGExNC00YzIxMTE1Mjc2ODciLCJjbGllbnRfaWQiOiJub3ZvLWFkbWluLXdlYiIsInNpZCI6IjE1MDMxZWE2LWE5ZTctNGFjZS04NmE1LTNhMDY0MmUwOTliYSIsInVzZXJfZXh0Ijp7InJvbGVJZHMiOlsxMDJdLCJwdWlkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJ0ZW5hbnRJZCI6MjA3OTUwNDIwNTMwOTE5NDI0MSwicGFyZW50VWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5NiwidGVuYW50Q29kZSI6ImNvbG9ydGVzdDIiLCJ0eXBlIjoiVF9VU0VSIiwidXNlcklkIjoyMDc5NzQ2OTE1Mzg4MDc2MDMzLCJlbWFpbCI6Imxlb0BzYW1wbGUuY29tIiwidXNlcm5hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJ1Y0lkIjozMDc2OTEzNjQ0ODkwODMyODk2fX0.ze7SI8PFr3KQMR9Ib7kOYBsbew0VqmlTdQvmcI2kaLlXwpiARYI6LHssaNe_wO4AnWNopOQLKsEtfLDEVVDR3xcE7-Qu5YK_TDET29NmzpQVz-9Gth7xmf-UZc9ZO1n1U3ZQX6p-PXnOGu5rHKOBQBHvoVOkzL9U7-NpYGx0HGnPHe8M9TQ0bCPC7v2NGqY8rGsvI0XWxUsmZNPAEQMqKkdjewmm3V_Z4lmRlSjQBRppu-wvmabRLBq-h8FKnCm-2mEshic9TYYjsxJM-WFoXMfoNtcoxPPnSa7hzH0jPDPS4GUpnVFldi_x6raOkl8AmOVE15XYY2W9ycydijlNNQ
Content-Type: application/json
{
"code":"234108"
}
Response example
HTTP/1.1 200 OK
{
"requestId": "dd325b5583f1a1e1515ba64579af0295",
"code": "200",
"message": "SUCCESS"
}