1. Authentication
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
    • Get Items Of User
      POST
    • Get Item Detailed Info
      GET
    • Add Item
      POST
    • Update Item
      POST
    • Remove All Items
      DELETE
    • Remove Items
      DELETE
    • Add Question
      POST
    • Get Questions Of Item
      GET
    • Answer Question
      POST
    • Delete Question
      DELETE
  • 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
      • createTOTPDevice
      • removeTOTPDevice
      • verifyTOTPDevice
      • verifyTOTP
    • 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
  • Schemas
    • Schemas
      • Body_login_for_token_from_json_auth_token_post
      • BaseErrorOut
      • statusOK
      • Body_update_user_description_user_description_post
      • BaseErrorOutForOpenApi
      • generalErrorResponse
      • ContactInfoIn
      • BlukOpeartionInfo
      • token
      • ContactInfoType
      • Body_answer_question_item_question_answer_post
      • Body_add_item_item_add_post
      • Body_start_transaction_trade_start_post
      • Body_get_transactions_trade_get_get
      • Body_cancel_transaction_trade_cancel_post
      • cookie
      • HTTPValidationError
      • Body_update_description_user_description_post
      • id
      • Body_get_received_notification_get_get
      • Body_get_items_of_user_item_post
      • ItemOut
      • Body_user_sign_in_auth_token_post
      • BulkOpeartionInfo
      • userId
      • Body_send_notifications_notification_send_post
      • Body_get_user_notifications_notification_get_get
      • ItemState
      • user
      • Body_mark_notification_read_notification_read_post
      • TokenData
      • email
      • Body_test_rbac_permissions_auth_test_rbac_post
      • TokenOut
      • ItemIn
      • phoneNumber
      • UserIn
      • GetTransactionsFilters
      • deviceId
      • UserOut
      • ItemInWithId
      • preAuthSessionId
      • ValidationError
      • QuestionOut
      • QuestionIn
      • thirdPartyId
      • exists
      • method
      • GetNotificationIn
      • code
      • ContactInfoOut
      • TagOut
      • authCodeResponse
      • PaginationConfig
      • redirectURI
      • clientType
      • MarkDownNotificationContentOut
      • TradeCancelReason
      • oAuthTokens
      • NotificationContentOut
      • TradeRecordOut
      • formFields
      • NotificationOut
      • TradeState
      • signInResponse
      • ItemDetailedOut
      • signInNotAllowedResponse
      • signupResponse
      • TradesFilterTypeIn
      • signUpNotAllowedResponse
      • passwordResetTokenResponse
      • passwordResetNotAllowedResponse
      • PaginationedResultOut[list[NotificationOut]]
      • signinupResponse
      • PaginatedResultOut[list[NotificationOut]]
      • passwordResetErrorResponse
      • passwordResetResponse
      • PaginatedResultOut[List[ItemOut]]
      • fieldErrorResponse
      • URLAction
      • wrongCredentialsResponse
      • URLActionNotificationContentOut
      • signinupErrorResponse
      • internalError
      • badRequest
      • notFound
      • inline_response_200
      • inline_response_200_1
      • totp_device_body
      • inline_response_200_2
      • inline_response_403
      • device_remove_body
      • inline_response_200_3
      • device_verify_body
      • inline_response_200_4
      • totp_verify_body
      • inline_response_200_5
      • signinup_code_body
      • inline_response_200_6
      • code_resend_body
      • inline_response_200_7
      • code_consume_body
      • inline_response_200_8
      • inline_response_200_9
      • inline_response_200_10
      • tenantId_signin_body
      • inline_response_200_11
      • tenantId_signup_body
      • inline_response_200_12
      • reset_token_body
      • inline_response_200_13
      • password_reset_body
      • inline_response_200_14
      • apiBasePathtenantIdsigninup_redirectURIInfo
      • tenantId_signinup_body
      • inline_response_200_15
      • inline_response_200_16
      • inline_response_200_17
      • callback_apple_body
      • inline_response_200_18
      • email_verify_body
      • inline_response_200_19
      • inline_response_200_20
      • inline_response_200_21
      • inline_response_200_22
      • inline_response_401
      • inline_response_403_1
      • user_thirdParty
      • user_loginMethods
      • formFields_inner
      • fieldErrorResponse_formFields
      • inline_response_200_factors
      • inline_response_200_emails
      • inline_response_200_phoneNumbers
      • inline_response_200_1_devices
      • inline_response_403_claimValidationErrors
      • inline_response_403_claimValidationErrors_1
      • inline_response_200_17_recipes_emailPassword
      • inline_response_200_17_recipes_thirdParty_providers
      • inline_response_200_17_recipes_thirdParty
      • inline_response_200_17_recipes
      • inline_response_200_21_keys
      • inline_response_403_1_claimValidationErrors
    • Response
      • 403-factor-setup
  1. Authentication

SuperTokens SignUp

Develop Env
http://localhost:8000
Develop Env
http://localhost:8000
POST
/auth/signup
Signup a user with email ID and password

Request

Header Params

Body Params application/json

Example
{
    "formFields": [
        {
            "id": "email",
            "value": "johndoe@gmail.com"
        },
        {
            "id": "password",
            "value": "testPass123"
        }
    ]
}

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/auth/signup' \
--header 'rid: emailpassword' \
--header 'Content-Type: application/json' \
--data-raw '{
    "formFields": [
        {
            "id": "email",
            "value": "johndoe@gmail.com"
        },
        {
            "id": "password",
            "value": "testPass123"
        }
    ]
}'

Responses

🟢200OK
application/json
Sign up Response
Headers

Body

Example
{
    "status": "OK",
    "user": {
        "id": "fa7a0841-b533-4478-95533-0fde890c3483",
        "timeJoined": 1638433545183,
        "isPrimaryUser": true,
        "tenantIds": [
            "public"
        ],
        "emails": [
            "johndoe@gmail.com"
        ],
        "phoneNumbers": [
            "36201234123"
        ],
        "thirdParty": [
            {
                "id": "google",
                "userId": "rq238mrq2389rvq123213"
            }
        ],
        "loginMethods": [
            {
                "recipeId": "emailpassword",
                "recipeUserId": "fa7a0841-b533-4478-95533-0fde890c3483",
                "verified": true,
                "tenantIds": [
                    "public"
                ],
                "timeJoined": 1638433545183,
                "email": "johndoe@gmail.com",
                "phoneNumber": "36201234123",
                "thirdParty": {
                    "id": "google",
                    "userId": "rq238mrq2389rvq123213"
                }
            }
        ]
    }
}
🟠403Forbidden
🟠404Record Not Found
🔴500Server Error
Modified at 2024-10-01 07:43:34
Previous
SuperTokens SignIn
Next
SuperTokens SignOut
Built with