Description and Details

This API is used to authenticate a user and issue an authentication token. It verifies the credentials (username and password or similar payload) provided by the user and returns an authentication token which can be used for further secured interactions with other APIs in the system.


Endpoint

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

Verb Method

POST


Headers Request Parameters

Header KeyValueDescription
Content-Typeapplication/jsonSpecifies that the request body is JSON
Acceptapplication/jsonExpected response format

Body Request Parameters
 

ParameterTypeRequiredDescription
usernamestringYesUser’s login username or email
passwordstringYesUser’s login password

Response Parameters

ParameterTypeDescription
tokenstringAuthentication token (e.g., JWT or session)
expires_inintegerExpiry time of the token (in seconds)
user_idstringUnique identifier of the authenticated user
user_rolesarrayList of user roles or permissions

HTTP Codes

CodeMeaning
200OK – Authentication successful
400Bad Request – Missing or invalid input
401Unauthorized – Invalid credentials
403Forbidden – Access denied
500Internal Server Error