SolSQL API uses a credential-based login flow. You send an email address, a plaintext password, and a role identifier to a single endpoint. The API verifies the password against a BCrypt hash stored in the database and returns the matching user record. There are no tokens — your client application is responsible for persisting the user object and managing session state.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jparra-amell/api_solsql/llms.txt
Use this file to discover all available pages before exploring further.
Login endpoint
POST/api/LoginRequest/login
Send the login request
Post a JSON body containing
Email, Password, and Role.| Field | Type | Required | Description |
|---|---|---|---|
Email | string | Yes | The user’s registered email address |
Password | string | Yes | The user’s plaintext password (verified against a BCrypt hash) |
Role | integer | Yes | 1 for a standard user, 2 for an admin |
Receive the user object
On success, the API returns
200 OK with the user object. The Password field is cleared before the response is sent — it will always be null.Roles
Role values are numeric integers passed in the
Role field. Based on the source code, 1 represents a standard user and 2 represents an admin. The API enforces that the Role in the request matches the role stored for that user’s account — a mismatch returns 401 Unauthorized.| Value | Role |
|---|---|
1 | User |
2 | Admin |
Password verification
The API uses BCrypt.Net to verify passwords. When you call the login endpoint:- The API calls the
sp_loginstored procedure with your email and role to fetch the matching user record. - It compares your plaintext
Passwordagainst the BCrypt hash stored in the database usingBCrypt.Verify. - If the hash does not match, the API returns
401 Unauthorizedwith"Invalid credentials".
curl example
Error responses
| HTTP status | Condition |
|---|---|
200 OK | Credentials and role are valid; user object returned |
401 Unauthorized | User not found, role mismatch, or incorrect password |
500 Internal Server Error | Database or unexpected server error |
401 Unauthorized response body includes a message field describing the reason: