Módulo Horario exposes two registration endpoints. The publicDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Luisanchez0/modulo_Horario/llms.txt
Use this file to discover all available pages before exploring further.
/auth/register route creates DOCENTE accounts; attempting to pass role: ADMIN on this route is explicitly blocked and returns 403. To create an ADMIN account you must call /auth/register-admin and supply the X-Admin-Key header whose value must match the ADMIN_CREATION_KEY environment variable on the server.
Base URL: http://localhost:8001
POST /auth/register
Creates aDOCENTE user account. Any caller may use this endpoint — no authentication is required.
Request body
Full display name of the teacher.
Email address. Must be unique across all accounts.
Plain-text password. The server stores a bcrypt hash; the original value is never persisted.
Must be
DOCENTE. Passing ADMIN returns 403.Optional staff or employee ID number.
Teaching shift. Accepted values:
MATUTINO, VESPERTINO, AMBOS.Response
- 201 — created
- 400 — validation error
- 403 — forbidden
Example
POST /auth/register-admin
Creates anADMIN account. The X-Admin-Key header is required and must equal the value of the ADMIN_CREATION_KEY environment variable on the server.
Headers
Server-side admin creation key. Obtain this value from your deployment configuration.
Request body
Same fields as/auth/register. The server always overrides role to ADMIN regardless of what is sent.
Response
- 201 — created
- 403 — wrong key
- 400 — validation error
Same shape as the
/auth/register response with rol: "ADMIN".