Fuselage
Send 2fa code
URL
Requires Auth
HTTP Method
/api/v1/users.2fa.sendEmailCode
yes
POST

Example Call

1
curl -H 'X-Auth-Token: _2u_4MzRroRcnqc59GYUY_Kwgr9HgtZ9HCKn-2aIvMJ' \
2
-H 'X-User-Id: FL2fZL4ERhwA3gWiS' \
3
-H "Content-type: application/json" \
4
'http://localhost:3000/api/v1/users.2fa.sendEmailCode\
Copied!

Result

Success

1
{
2
"success": true
3
}
Copied!

Errors

The following error can occur upon the endpoint.‌
  • Valid Email or Username: Requires selector param for the request to be made.
Valid Email or Username
1
{
2
"success": false,
3
"error": "emailOrUsername is required [error-parameter-required]",
4
"errorType": "error-parameter-required"
5
}
Copied!
Last modified 2mo ago
Export as PDF
Copy link
Edit on GitHub