Mi Cole is a multi-tenant platform where each school is an isolated tenant. Super-admin users can provision new schools and view all existing ones. Directors log in to their own subdomain and interact only with their school via theDocumentation 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.
/my-tenant route. Every endpoint below requires a valid Authorization: Bearer <token> header obtained from the Authentication API.
GET /api/tenants
List every school registered on the platform. Restricted to users with thesuper-admin role.
200 OK
Returns an array of Tenant objects (see Tenant Model below).
POST /api/tenants
Create a new school tenant and automatically provision a director account. Returns aTenantResponse that includes the new Tenant object plus the director’s initial credentials.
Human-readable name of the school (e.g.
"Colegio San José").URL-friendly identifier for the tenant. Must be unique (e.g.
"san-jose").Full name of the director user that will be created alongside the tenant.
E-mail address for the new director account.
Initial password for the director account.
201 Created
The newly created
Tenant object. See Tenant Model.GET /api/my-tenant
Retrieve the school that belongs to the currently authenticated director. The response includes alogo_url pointing to the publicly accessible logo image.
200 OK
Tenant object (with logo_url merged in) for the caller’s school.
PUT /api/tenants
Update the name and slug of the authenticated director’s school.New display name for the school.
New URL slug. Must remain unique across all tenants.
200 OK
Returns the updated Tenant object inside data.
DELETE /api/tenants/:id
Permanently remove a school tenant. Super-admin access only.The numeric ID of the tenant to delete.
204 No Content
POST /api/tenants/logo
Upload or replace the school logo. Send the file asmultipart/form-data with the field name logo.
The image file to use as the school logo. Accepted formats:
image/png, image/jpeg.200 OK
Returns a success indicator. The new logo is accessible via GET /api/my-tenant in the logo_url field.
Tenant Model
Unique numeric identifier for the school.
Human-readable name of the school.
URL-safe unique identifier used to scope tenant data.
Relative storage path of the logo file, e.g.
tenants/logos/3.png. Null if no logo has been uploaded.Absolute public URL to the logo image. Only present in
GET /api/my-tenant responses.TenantResponse Model
Returned byPOST /api/tenants.
The fully created
Tenant object for the new school.