POST
/2fa/verify-otp
curl \
--request POST 'http://localhost:8080/2fa/verify-otp' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"username":"string","otp":"string"}'
Request examples
{
"username": "string",
"otp": "string"
}
Response examples (200)
{
"code": 42,
"message": "string",
"data": {
"token": "string",
"expire": "2026-05-04T09:42:00Z"
}
}
Response examples (400)
{
"code": 42,
"message": "string",
"error": "string"
}
Response examples (401)
{
"code": 42,
"message": "string",
"error": "string"
}
Response examples (404)
{
"code": 42,
"message": "string",
"error": "string"
}
Response examples (500)
{
"code": 42,
"message": "string",
"error": "string"
}