Description and Details

This API endpoint is used to authenticate a user by validating their login credentials. It typically returns a success response along with user profile data and authentication token (e.g., JWT) if the credentials are valid. If the credentials are incorrect or missing, it returns an appropriate error message. This is commonly used as the login mechanism for applications.


Endpoint

https://api-dev-isolution.xyz/userauth


HTTP Method

POST


Headers Request Parameters

KeyValueDescription
Content-Typeapplication/jsonSpecifies the media type
Acceptapplication/jsonExpected response format
AuthorizationBearerOptional (if required for access)

Body Request Parameters
 

ParameterTypeRequiredDescription
emailstringYesUser's registered email
passwordstringYesUser's password

Response Parameters

ParameterTypeDescription
tokenstringJWT or auth token
userIdstringUnique ID of the user
emailstringEmail of the authenticated user
messagestringStatus message (e.g., "Login success")

HTTP Codes

CodeMeaning
200OK – login successful
400Bad Request – missing data
401Unauthorized – invalid login
500Internal Server Error