mode.login_type is set to 1, the user is authenticated using the password associated with the account.login_type is set to 2, the user is authenticated using a one-time activation code (OTP) sent to the registered mobile number.login_type = 1), the client must first call the Send Validation Code API with the appropriate login mode to generate and deliver the activation code.| Field | Type | Required | Description |
|---|---|---|---|
mobile_number | string | Yes | Mobile number |
pass_code | string | Yes | Password/Validation code depending on the login_type |
login_type | string | Yes | login type 1 for password 2 for validation code |
app_id | string | Yes | App ID |
mobile_number – Registered mobile number of the userpass_code – Password / Validation code (password when login_type= 1; validation code when login_type = 2)login_type – Login type1 → Password-based login2 → Activation code (OTP)–based loginlogin_type = 2, password validation is skipped./auth-service/send/sign/in/validation/code.login_type = 1)login_type = 2)Signs in a user using a mobile number with either password-based or OTP-based authentication, based on the selected mode.
curl --location --request POST 'https://appfloor.in/auth-service/sign/in/with/mobile/number' \
--header 'Authorization: Bearer <token>' \
--form 'mobile_number=""' \
--form 'pass_code=""' \
--form 'login_type=""' \
--form 'app_id=""'{
"error": {
"code": "XF_VALIDATION_ERROR",
"message": "Invalid mobile number",
"path": "/auth-service/sign/in/with/mobile/number",
"timestamp": "2026-01-12T08:11:59.993079561Z"
}
}