TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/miagv/PlataformaEduca/llms.txt
Use this file to discover all available pages before exploring further.
/api/auth/register endpoint creates a new user account in PlataformaEduca. In addition to persisting the core Usuario record, the API automatically creates the corresponding role-specific profile record — a Docente, Estudiante, or Coordinador row — depending on the value of the rol field. This means a single request is sufficient to fully onboard a new user with their associated profile data.
Endpoint
application/json
Request body
First name(s) of the user.
Last name(s) of the user.
Email address of the user. Must be unique across all accounts; this value is used as the login identifier.
Plain-text password provided at registration. The API stores this as a BCrypt hash and never returns it in responses.
Role to assign to the new user. Valid values:
COORDINADOR, DOCENTE, ESTUDIANTE, USER, ADMIN. Determines which role-specific profile record is created automatically.Example request
Response
200 OK
Returns the newly createdUsuario object. The password field is nulled out in the response for security.
Auto-generated unique identifier for the user.
First name(s) of the registered user.
Last name(s) of the registered user.
Email address of the registered user.
Always
null in the response. The BCrypt hash is never exposed through the API.Account status. Always
true for newly registered accounts.List of role objects assigned to the user.
Example success response
Error responses
| Status | Cause |
|---|---|
500 Internal Server Error | The provided email address is already registered, or another validation error occurred. The response body is a JSON map with an "error" key containing the error message. |
Side effects
On a successful registration, a role-specific profile record is automatically created in the corresponding table:rol value | Profile table |
|---|---|
DOCENTE | docentes |
ESTUDIANTE | estudiantes |
COORDINADOR | coordinadores |
USER / ADMIN | No additional profile record |