@xfloor-memory-sdk
  1. Registration
@xfloor-memory-sdk
  • Get Started
    • Overview
    • Quick Start
    • Authentication and Identification
    • Core Concepts (5-Minute Read)
    • What to Use First (API Map)
  • SDK
    • Overview
    • SDK Installation & Setup
    • Python SDK
    • JavaScript SDK
    • Typescript SDK
    • Java SDK
    • FAQ & Troubleshooting
    • Copy-Paste Debug Checklists
  • Core FloorMemory
    • Query (Primary API)
      POST
    • Create Event (Post Content)
      POST
    • Recent Events
      GET
    • Basic information of a floor
      GET
  • Floor Management
    • Edit floor
    • Make floor Private
    • Make floor public
    • Rename floor
  • Registration
    • Sign Up
      POST
    • Sign In with email ID
      POST
    • Sign In with Mobile number
      POST
    • Validation
      POST
    • Change Password
      POST
    • Reset Password
      POST
    • Change email ID
      POST
    • Change Mobile number
      POST
    • Send Validation code
      POST
    • External User Registration
      POST
  • SDKs
  • Schemas
    • PostAdd
    • QueryResponse
    • Media
    • UserDetails
    • SignUpResponse
    • BlockDetails
    • FloorInfo
    • Threads
    • EventResponse
    • 400ErrorCode
    • Remaining
  1. Registration

Sign In with email ID

POST
/auth-service/sign/in/with/email
Authenticates a user using a registered email ID.
The authentication mechanism is determined by the specified mode.
When login_type is set to 1, the user is authenticated using the provided password.
When login_type is set to 2, the user is authenticated using a one-time activation code (OTP).
For OTP-based authentication (login_type = 2), the client must first invoke the Send Validation Code API with the appropriate login mode to generate and deliver the activation code to the user.

Request Body#

FieldTypeRequiredDescription
email_idstringYesEmail ID
pass_codestringYesPassword/Validation code depending on the login_type
login_typestringYeslogin type 1 for password 2 for validation code
app_idstringYesApp ID
Field Description
email_id – Registered email address of the user
pass_code – password or activation code (this is password if it is 1 and 2 it is validation code)
app_id - App ID which is a 13 digit numeric value
login_type – Login type
1 → Password-based login
2 → Activation code (OTP)–based login

Behavior Notes#

When login_type = 2, password validation is bypassed.
OTP-based login requires a prior call to /auth-service/send/sign/in/validation/code.
If the required credentials for the selected mode are missing or invalid, authentication fails.

Successful Response#

On successful authentication, the user is signed in and a success response is returned as per the authentication flow.

Error Response#

The API returns an error response if:
The email ID is not registered
The password is incorrect (login_type = 1 )
The activation code is missing, invalid, or expired (login_type = 2)
The mode value is invalid or unsupported

One-Line Summary#

Signs in a user using an email ID with either password-based or OTP-based authentication, based on the selected mode.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params multipart/form-dataRequired

Responses

🟢200Success
application/json
Body

🟠400BadRequest
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://appfloor.in/auth-service/sign/in/with/email' \
--header 'Authorization: Bearer <token>' \
--form 'email_id=""' \
--form 'pass_code=""' \
--form 'login_type=""' \
--form 'app_id=""'
Response Response Example
200 - Example 1
"error": {
    "code": "XF_VALIDATION_ERROR",
    "message": "Invalid E-Mail",
    "path": "/auth-service/sign/in/with/email",
    "timestamp": "2026-01-12T08:11:59.993079561Z"
}
}
Modified at 2026-01-14 10:32:11
Previous
Sign Up
Next
Sign In with Mobile number
Built with