MiTrabajo – WebService API
MiTrabajo WebService API is a RESTful interface for the MiTrabajo workforce-management platform. It allows external systems to programmatically manage workplaces, upload personnel records, query attendance and hour data, and control scheduling events — all over standard HTTP.
Base URL
All endpoints are relative to your instance host:
https://your-host.com
Authentication
Every endpoint except /auth/login requires a valid access token to be sent as an HTTP header:
X-Api-Key: <your_access_token>
Tokens are obtained by calling /auth/login. See the Authentication page for details.
Response Format
All responses are returned as JSON. Successful requests return HTTP 2xx. Validation errors return HTTP 422 with an error body. Unauthorized requests return HTTP 401.
Available Resources
| Resource | Description |
|---|---|
| Authentication | Obtain an access token via username and password |
| Workplaces | Create and manage work locations (CRUD) |
| Personnel | Upload and update employee records; change personnel status |
| Extras | Query attendance records, working hours, personnel lists, and reference data |
| Events | Manage scheduling events and update attendance marks |