AHUER.COM API Service
  1. TOTP Recipe
AHUER.COM API Service
  • Authentication
    • User Sign In
      POST
    • User Sign Out
      GET
    • Get Current Token Info
      GET
    • Get Current User Info
      GET
    • User Sign Up
      POST
    • SuperTokens SignIn
      POST
    • SuperTokens SignUp
      POST
    • SuperTokens SignOut
      POST
    • Test Rbac Permissions
      POST
  • User
    • Get Me Info
      GET
    • Update Description
      POST
    • Add Contact Info
      POST
    • Get Contact Info
      GET
    • Remove Contact Info
      DELETE
    • Remove All Contact Info
      DELETE
    • Remove User
      DELETE
  • Item
    • Get Items Of User
    • Get Items Of User
    • Get Item Detailed Info
    • Add Item
    • Update Item
    • Remove All Items
    • Remove Items
    • Add Question
    • Get Questions Of Item
    • Answer Question
    • Delete Question
  • Favourite
    • Get Fav Items
    • Add Fav Item
    • Remove Favourite Items
    • Remove All Favourite Items
  • Trade
    • Start Transaction
    • Accept Transaction
    • Get Transactions
    • Cancel Transaction
    • Confirm Transaction
  • Notification
    • Send Notifications
    • Get User Notifications
    • Get User Notification By Id
    • Mark Notification Read
    • Read All Notifications
  • SuperToken
    • EmailPassword Recipe
      • signIn
      • signUp
      • emailExistsDepr
      • emailExists
      • passwordResetToken
      • passwordReset
    • TOTP Recipe
      • listTOTPdevices
        GET
      • createTOTPDevice
        POST
      • removeTOTPDevice
        POST
      • verifyTOTPDevice
        POST
      • verifyTOTP
        POST
    • MultiFactorAuth Recipe
      • getMFAInfo
    • Passwordless Recipe
      • passwordlessSignInUpStart
      • passwordlessSignInUpResend
      • passwordlessSignInUpConsume
      • passwordlessEmailExistsDepr
      • passwordlessEmailExists
      • passwordlessPhoneNumberExistsDepr
      • passwordlessPhoneNumberExists
    • Session Recipe
      • signout
      • refresh
    • ThirdParty Recipe
      • signInUp
      • authorisationUrl
      • thirdPartyCallbackApple
    • Multitenancy Recipe
      • loginmethods
    • EmailVerification Recipe
      • verifyEmailToken
      • verifyEmail
      • getVerifyEmail
    • JWT Recipe
      • getJWKS
    • OpenId Recipe
      • getOpenIdDiscoveryConfiguration
    • App API
      • exampleAppAPI
  • Search
    • Search Items By Name
    • Search Items By Tags
  1. TOTP Recipe

createTOTPDevice

Develop Env
http://localhost:8000
Develop Env
http://localhost:8000
POST
/{apiBasePath}/totp/device
Creates an unverified totp device

Request

Path Params

Header Params

Body Params application/json

Example
{
    "deviceName": "asdf123"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8000//totp/device' \
--header 'Content-Type: application/json' \
--data-raw '{
    "deviceName": "asdf123"
}'

Responses

🟢200OK
application/json
Information about the created (unverified) device. Based on the this,
the user can add the device to their TOTP app and verify it.
Body

Example
{
    "status": "OK",
    "deviceName": "asfd123",
    "qrCodeString": "otpauth://totp/Supertokens:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Supertokens",
    "secret": "JBSWY3DPEHPK3PXP"
}
🟠403Forbidden
🟠404Record Not Found
🔴500Server Error
Modified at 2024-10-01 07:35:40
Previous
listTOTPdevices
Next
removeTOTPDevice
Built with