You are viewing an old version of this page. View the current version.

Compare with Current Restore this Version View Page History

« Previous Version 2 Next »

Token API

Token API is a special API for requesting and getting one-time tokens for different operations regarding user's profile.

Unauthorized user

Operations:

  • Login
    • get email/phone number OTT (MFA) – "api/v1/token/login/email", "api/v1/token/login/mobile" or "api/v1/token/login/email"

  • Change password
    • get OTT (email by default, if there is no email, then phone number) – "api/v1/token/password"

  • Reset password
    • get OTT (email or phone number, depending on which option has been chosen by user) – "api/v1/token/recovery/password"

  • Reset user key (security)
    • get email OTT for verification 
    • get phone number OTT for verification
    • get email OTT for changing email – "api/v1/token/recovery/security/email"
    • get phone number OTT for changing phone number – "api/v1/token/recovery/security/mobile"

  • Registration
    • registration OTT (email or phone number, depending on which option has been chosen by user) – "api/v1/token/registration"

Authorized user

Operations:

  • Email managment
    • get OTT passing required operation: change/remove email, change/remove anti-phishing code – "api/v1/token/email"

  • Phone number management
    • get OTT passing required operation: change/remove phone number – "api/v1/token/mobile"

  • Add email
    • get OTT – "api/v1/token/emailAdding"

  • Add phone number
    • get OTT – "api/v1/token/mobileAdding"

  • Disable MFA
    • get email OTT – "api/v1/token/mfa/email"
    • get phone number OTT – "api/v1/token/mfa/mobile"