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
Key | Value | Description |
---|---|---|
Content-Type | application/json | Specifies the media type |
Accept | application/json | Expected response format |
Authorization | Bearer | Optional (if required for access) |
Body Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
string | Yes | User's registered email | |
password | string | Yes | User's password |
Response Parameters
Parameter | Type | Description |
---|---|---|
token | string | JWT or auth token |
userId | string | Unique ID of the user |
string | Email of the authenticated user | |
message | string | Status message (e.g., "Login success") |
HTTP Codes
Code | Meaning |
---|---|
200 | OK – login successful |
400 | Bad Request – missing data |
401 | Unauthorized – invalid login |
500 | Internal Server Error |