The Romsoft Gestión Clínica API uses a straightforward request/response model: you obtain a JWT bearer token by logging in, then attach that token to every subsequent call. All endpoints accept JSON bodies and return the sameDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ttpullima/RomsoftBackEnd2021_v2/llms.txt
Use this file to discover all available pages before exploring further.
JsonResponse envelope. This guide walks you through the complete flow from first login to querying real clinical data in five steps.
Prerequisites
Before you begin, make sure you have:- Base URL — The API is hosted at your server’s deployment address. All endpoint paths follow the pattern
https://<your-server>/api/{Controller}/{Action}. Replace<your-server>with your actual hostname (e.g.,https://romsoft.yourclinic.com). - A valid user account — You need a username and password already created in the system by an administrator. The
SEG_USUARIOtable must contain an active record for your credentials. - An HTTP client — The examples below use
curl. Any HTTP client (Postman, Insomnia, your preferred language SDK) works equally well.
Every endpoint in this API uses the POST HTTP method, including read/query operations. There are no GET, PUT, PATCH, or DELETE routes — all interactions are via
POST.Log in and obtain your token
Call A successful response looks like this:If the credentials are wrong, the server returns
POST /api/Account/Login with your username and password. This is the only endpoint that does not require an Authorization header — it is decorated with [AllowAnonymous] in the server code.Success: true, Warning: true with a message indicating the user does not exist — it does not return a 4xx HTTP status code for bad credentials.Extract the token and attach it to requests
Copy the The token is a signed JWT. The server validates it on every request using the
token string from Data.token in the login response. You must send this value as a Bearer token in the Authorization header of every subsequent request.TokenValidationHandler delegating handler registered in the pipeline. Tokens expire after 20 days by default (JWT_EXPIRE_MINUTES = 28800, which is 28,800 minutes). After expiry you must log in again to obtain a fresh token.Store the token securely — treat it like a session credential. Do not log it or embed it in client-side source code.Fetch active insurance plans
With a valid token in hand, try fetching all active insurance plans. Send an empty JSON body — the endpoint requires a A successful response returns the list of active plans inside If you omit the
POST but takes no filter parameters.Data:Authorization header entirely, the request passes through TokenValidationHandler without a token and the endpoint’s own authorization check will reject it with 401 Unauthorized.Query patients with filters
Patient records support filtered searches via The response returns a list of matching patient records in If no patients match the filter criteria,
POST /api/ADM_PACIENTE/GetAllFilters. Pass a JSON body containing the filter criteria. All fields are optional — an empty object returns all patients subject to server-side pagination limits.Data:Data will be an empty array ([]) and Warning will remain false — an empty result set is a valid, successful response.Explore the full API reference
You now know the fundamental pattern for every interaction with the API:
- POST to an endpoint with a JSON body.
- Read the
JsonResponseenvelope (Success,Warning,Message,Data). - Include
Authorization: Bearer <token>on all calls except/api/Account/Login.
Login Endpoint Reference
Full schema documentation for
POST /api/Account/Login, including all request fields and response field descriptions.