Mi Cole distinguishes three user types under a tenant: teachers (profesores), students (estudiantes), and parents (padres de familia). Each type shares a commonDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/andrespaul123/micole-flutter/llms.txt
Use this file to discover all available pages before exploring further.
user sub-object that holds name and email, while the type-specific record carries fields like codigo_profesor, codigo_estudiante, or telefono. All endpoints require Authorization: Bearer <token> and are scoped to the authenticated tenant.
Teachers (Profesores)
GET /api/profesores
List all teachers registered in the tenant.200 OK
POST /api/profesores
Create a new teacher account.Full name of the teacher.
E-mail address used for login. Must be unique within the platform.
Initial plain-text password for the teacher’s account.
Institutional code that uniquely identifies the teacher within the school (e.g.
"PRF-001").Area of specialisation (e.g.
"Matemáticas", "Lengua"). Optional.201 Created
Returns the created Profesor object inside data.
GET /api/profesores/:id
Retrieve a single teacher’s profile.ID of the teacher record.
200 OK
Returns a Profesor object.
PUT /api/profesores/:id
Update a teacher’s profile. Onlypassword is optional; omit it to keep the existing password.
ID of the teacher to update.
Updated full name.
Updated e-mail address.
New password. Omit this field to keep the existing password unchanged.
Updated institutional code.
Updated specialisation.
200 OK
Returns the updated Profesor object.
DELETE /api/profesores/:id
Remove a teacher account from the tenant.ID of the teacher to delete.
204 No Content
POST /api/profesores/asignar-materia
Assign a subject to a teacher, enabling them to be allocated to class assignments for that subject.ID of the teacher.
ID of the subject to assign.
200 OK
GET /api/profesores/:id/subjects
List all subjects currently assigned to a teacher.ID of the teacher.
200 OK
Returns { "data": [ ...Subject[] ] }.
Students (Estudiantes)
GET /api/estudiantes
List all students registered in the tenant.200 OK
POST /api/estudiantes
Create a new student account.Full name of the student.
E-mail address for the student’s login account.
Initial plain-text password.
Institutional student code (e.g.
"EST-042").201 Created
Returns the created Estudiante object inside data.
GET /api/estudiantes/:id
Retrieve a single student’s profile.ID of the student record.
200 OK
Returns an Estudiante object.
PUT /api/estudiantes/:id
Update a student’s profile.ID of the student to update.
Updated full name.
Updated e-mail address.
Updated institutional student code.
New password. Omit to keep the existing password unchanged.
200 OK
Returns the updated Estudiante object inside data.
DELETE /api/estudiantes/:id
Remove a student account from the tenant.ID of the student to delete.
204 No Content
Parents (Padres de Familia)
GET /api/padre-familias
List all parents registered in the tenant.200 OK
POST /api/padre-familias
Create a new parent account.Full name of the parent.
E-mail address for the parent’s login account.
Initial plain-text password.
Contact phone number. Optional.
Parent’s occupation or profession. Optional.
201 Created
Returns the created PadreFamilia object inside data.
GET /api/padre-familias/:id
Retrieve a single parent’s profile.ID of the parent record.
200 OK
Returns a PadreFamilia object.
PUT /api/padre-familias/:id
Update a parent’s profile.ID of the parent to update.
Updated full name.
Updated e-mail address.
New password. Omit to keep the existing password unchanged.
Updated phone number.
Updated occupation.
200 OK
Returns the updated PadreFamilia object inside data.
DELETE /api/padre-familias/:id
Remove a parent account from the tenant.ID of the parent to delete.
204 No Content
POST /api/padre-familias/asignar-estudiante
Link a student to a parent, recording the family relationship.ID of the parent.
ID of the student to link.
Relationship label (e.g.
"padre", "madre", "tutor"). Optional.200 OK
GET /api/padre-familias/:id/estudiantes
List all students linked to a parent.ID of the parent.
200 OK
Returns { "estudiantes": [ ...Estudiante[] ] }.
GET /api/padre/mis-hijos
Authenticated parent endpoint — returns the children linked to the currently logged-in parent, including the relationship type.200 OK
Array of linked children.
Profesor Model
Unique identifier for the teacher record.
Institutional code assigned to the teacher.
The teacher’s area of specialisation.
Full name, read from the nested
user object.E-mail address, read from the nested
user object.Estudiante Model
Unique identifier for the student record.
Institutional code assigned to the student.
Full name, read from the nested
user object.E-mail address, read from the nested
user object.