Verify 2FA Setup with Authenticator App

Verify the 2FA setup by using a verification code generated by an authenticator app.

Request URL

POST {base_url}/uc-auth/api/v1/mfa/authenticator/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 verification code generated by the authenticator app.

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.
  • 200: Request succeeded.
  • Non-200 value: Request failed.
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 authenticator-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/authenticator/verify HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxMDAwQGNvbG9ydGVzdDIiLCJncmFudF90eXBlIjoicGFzc3dvcmQiLCJ1c2VyX25hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwiY2xpZW50X2V4dCI6eyJkZXNjcmlwdGlvbiI6IueuoeeQhuWQjuWPsFdlYuW6lOeUqCIsInBsYXRmb3JtIjoid2ViIn0sImV4cCI6MTc5MTg4NDc1NSwiaWF0IjoxNzkxODYzMTU1LCJqdGkiOiJiZTI3MWJlMC05NzdhLTQxYmItOTM4My0zMTcwMDQxYmQyOGIiLCJjbGllbnRfaWQiOiJub3ZvLWFkbWluLXdlYiIsInNpZCI6IjM4N2MzMGFiLTMyZTQtNDA5OS1hYWQ2LTZhMTc0MDZjOWQ2NyIsInVzZXJfZXh0Ijp7InJvbGVJZHMiOlsxMDJdLCJwdWlkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJ0ZW5hbnRJZCI6MjA3OTUwNDIwNTMwOTE5NDI0MSwicGFyZW50VWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5NiwidGVuYW50Q29kZSI6ImNvbG9ydGVzdDIiLCJ0eXBlIjoiVF9VU0VSIiwidXNlcklkIjoyMDc5NzQ2OTE1Mzg4MDc2MDMzLCJlbWFpbCI6Imxlb0BzYW1wbGUuY29tIiwidXNlcm5hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJ1Y0lkIjozMDc2OTEzNjQ0ODkwODMyODk2fX0.OECMIAzAvXeOjt5hAQNJJqOvQMIAlISSYQI50oy-nsYMSz-gCcnIza1sfs6h84-SiGm84NSSbn5qWAfIsi-pATDstMsqsltgmqaxuwszc1hlBZqEVv1Wfoa11ez2TS_gjUFR7vpMv1qSbeBVoVSMqgF6D86jbLOBLrhvVOR-PvTp1QnPrj8l0f2jPFlOIr8ecaRazcDuODB6Hnf7QYSjMaKD60vIVuIEKCYnmpYeInMAroFETCDzS53IJu-FBQucETpb-4LLzzuSnx8Iw_3esDPLfCpqeJVpxst1cleijSIkksEILmSHNivnpHDmXI8vjEkHCqYBs0ie4XY7cHIAqw
Content-Type: application/json
{
  "code": "295270"
}

Response example

HTTP/1.1 200 OK
{
  "result": {},
  "requestId": "f85576af571375341f6fb9afd7598fcc",
  "code": "200",
  "message": "SUCCESS"
}