Volver

Documentación

API de Academia Inteligente

Conecta tus propios sistemas con tu academia: tu CRM, tu tienda, tu web o una hoja de cálculo. Lo que haces a mano en el panel, tu servidor lo puede hacer solo.

https://academiainteligente.com/api/v1Descargar la especificación OpenAPI

Qué puedes hacer

Algunos ejemplos de lo que las academias automatizan con la API. Debajo de cada uno, las operaciones que usa.

Dar de alta y matricular al cobrar

Cuando alguien compra en tu tienda, créale la cuenta, dale acceso al curso hasta la fecha que toque y envíale la invitación.

invite_studentsenroll_studentsset_access_untilresend_invite

Mantener tu CRM al día

Busca alumnos por nombre, email, curso, progreso o inactividad y guarda sus datos de ficha en tu CRM, o al revés.

find_studentsget_studentget_student_fieldsset_student_fields

Sacar resultados y progreso

Lleva las notas de los tests, el ranking, el progreso por curso y los alumnos en riesgo a tus informes o a tu herramienta de BI.

get_quiz_resultsget_course_metricsget_course_rankingget_students_at_risk

Avisar a tus alumnos

Envía avisos a toda la academia, a un curso o a una lista de alumnos, con email y notificación, desde tus propios flujos.

send_announcementsend_direct_messagepost_in_community

Programar clases en directo

Crea clases desde tu calendario, consulta las próximas y registra la asistencia.

schedule_live_classlist_live_classesrecord_live_attendance

Cargar preguntas en el banco

Sube preguntas de test en bloque desde tu propio sistema y organízalas por temas.

create_bank_questionscreate_bank_themelist_bank_questions

Conectar un agente de IA

Si usas un agente compatible con MCP, conéctalo al servidor MCP de tu academia con la misma clave.

https://academiainteligente.com/api/mcp

Cómo empezar

  1. Un administrador de la academia entra en el panel, abre Desarrolladores y pulsa «Crear clave». Elige un nombre, los permisos, la caducidad y, si puede, las IP de tu servidor.
  2. Copia la clave en ese momento: no se vuelve a mostrar. Guárdala en las variables de entorno o el gestor de secretos de tu servidor.
  3. Haz tu primera llamada: te dice a qué academia pertenece la clave y con qué rol actúa.
    curl https://academiainteligente.com/api/v1/me \
      -H "Authorization: Bearer $LMS_API_KEY"

Las claves empiezan por lms_sk_. Solo un administrador puede crearlas o revocarlas, y cada clave sirve para una sola academia.

Autenticación

Envía la clave en cada petición en la cabecera Authorization: Bearer (o en X-Api-Key). No la pongas nunca en la URL: la API la ignora ahí.

Dirección base

https://academiainteligente.com/api/v1
Authorization: Bearer lms_sk_…

Seguridad

La API está pensada para que una clave pueda hacer lo justo y nada más.

  • Una clave pertenece a una sola academia. Ninguna operación acepta un parámetro de academia: la clave lo decide, así que no puede leer ni tocar nada de otra.
  • Actúa como el administrador que la creó, con su rol de cada momento y nunca por encima de administrador. Lo que solo puede hacer el propietario, como leer mensajes privados, no está disponible por API, y tampoco puede nombrar administradores: en el equipo solo da el rol de profesor.
  • Solo puede usar los permisos que se marcaron al crearla. Sin «Gestionar alumnos», por ejemplo, no puede dar de alta a nadie.
  • Puedes limitarla a las IP o rangos de tu servidor y ponerle caducidad. Desde cualquier otra IP recibe un 403.
  • Es una API de servidor a servidor: no responde a llamadas desde el navegador (no hay CORS), así que la clave nunca tiene por qué estar en una web o una app.
  • No guardamos la clave, solo una huella cifrada. Si se pierde, se crea otra; si se filtra, se revoca y deja de valer al instante.
  • Cada cambio queda en el registro de actividad a nombre de quien creó la clave, y el propietario y los administradores reciben un email cada vez que se crea una.
  • Si quien la creó deja la academia o pasa a ser alumno, la clave deja de funcionar.

Endpoints

Cada operación es una herramienta con su nombre. Se llaman todas igual: POST /tools/<nombre> con los argumentos en JSON.

MétodoRutaQué hace
GET/meA qué academia pertenece la clave, con qué rol actúa, sus permisos y su límite de peticiones.
GET/toolsLas operaciones que esta clave puede usar ahora mismo, con el esquema de sus argumentos.
POST/tools/{name}Ejecuta una operación. El cuerpo es un objeto JSON con sus argumentos.
GET/openapi.jsonLa especificación OpenAPI 3.1 completa, pública, para Postman o para generar un cliente.

Ejemplos

Con curl; funciona igual desde cualquier lenguaje. Los IDs de los cursos los da list_courses y los de los grupos, list_groups.

Dar de alta un alumno y matricularlo en un curso hasta una fecha. Con dry_run: true solo te dice qué pasaría; quítalo para hacerlo de verdad.

curl -X POST https://academiainteligente.com/api/v1/tools/invite_students \
  -H "Authorization: Bearer $LMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"emails":["ana@example.com"],"course_ids":["<course_id>"],"access_until":"2027-06-30","send_invite":true,"dry_run":true}'

Dar acceso a un curso a alumnos que ya están en la academia, por email o por ID.

curl -X POST https://academiainteligente.com/api/v1/tools/enroll_students \
  -H "Authorization: Bearer $LMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"course_id":"<course_id>","students":[{"email":"ana@example.com"},{"student_id":"<student_id>"}]}'

Buscar alumnos de un curso que llevan 14 días o más sin entrar.

curl -X POST https://academiainteligente.com/api/v1/tools/find_students \
  -H "Authorization: Bearer $LMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"course_id":"<course_id>","inactive_days":14}'

Sacar las notas de los tests de un curso en los últimos 30 días.

curl -X POST https://academiainteligente.com/api/v1/tools/get_quiz_results \
  -H "Authorization: Bearer $LMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"course_id":"<course_id>","range":"30d"}'

Avisar a todos los alumnos de un curso, con email y notificación.

curl -X POST https://academiainteligente.com/api/v1/tools/send_announcement \
  -H "Authorization: Bearer $LMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Nueva clase","body":"El jueves a las 18:00 repasamos el tema 3.","audience":"course","course_id":"<course_id>"}'

Respuestas y errores

Todas las respuestas son JSON. Si va bien: { ok: true, data }. Si no: { ok: false, error: { code, message, message_es } }, con un mensaje que puedes mostrar tal cual.

{ "ok": true, "data": { … } }

{ "ok": false, "error": { "code": "missing_scope", "message": "…", "message_es": "…" } }
CódigoQué significa
400Los argumentos no son válidos (falta uno, tipo incorrecto…). details dice cuál.
401Falta la clave, no existe, está revocada o ha caducado.
403La clave no tiene ese permiso, la IP no está permitida o quien la creó ya no es del equipo.
404La operación no existe, o lo que buscas no está en tu academia.
413El cuerpo pasa de 1 MB.
415El cuerpo no es JSON (envía Content-Type: application/json).
422Las reglas de la academia no lo permiten (por ejemplo, un curso sin plazas).
429Te has pasado del límite de peticiones. Espera lo que diga la cabecera Retry-After.

Límites y buenas prácticas

  • Hasta 90 peticiones por minuto por clave.
  • El cuerpo de cada petición puede ocupar hasta 1 MB, y las operaciones en bloque aceptan hasta 100 alumnos por llamada.
  • Muchas escrituras aceptan dry_run: true. Úsalo primero en los cambios en bloque.
  • Las operaciones marcadas como idempotentes se pueden repetir sin miedo si se corta la conexión: repetirlas no cambia nada más.
  • Crea una clave por cada sistema que conectes, así puedes revocar una sin tocar las demás.

Todas las operaciones que puede llegar a usar una clave, agrupadas por permiso. Algunas solo existen si tu academia tiene activada esa función; GET /tools te dice cuáles puede usar tu clave.

Referencia de la API

161 operaciones

Cada operación es una herramienta: POST https://academiainteligente.com/api/v1/tools/<nombre> con los argumentos en JSON. Esta lista sale del propio sistema, así que siempre está al día.

Ver la academiaacademy:read

  • POST /tools/get_academy_overviewResumen de la academiaLecturaRol mínimo: Profesor

    Global KPIs of the academy for a date window: published courses, enrolled and active students, completions, new enrollments, lesson views, top courses and top students. Start here when the teacher asks how the academy is doing.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "range": {
          "description": "Preset window for activity figures. Default 30d.",
          "type": "string",
          "enum": [
            "7d",
            "30d",
            "90d",
            "365d",
            "all"
          ]
        },
        "from": {
          "description": "First day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "to": {
          "description": "Last day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        }
      }
    }
  • POST /tools/list_coursesCursos de la academiaLecturaRol mínimo: Profesor

    Every course in the academy with its id, status (draft/published), enrolled students, completion rate, lesson count and views in the window. Use the ids with the other tools.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "range": {
          "description": "Preset window for activity figures. Default 30d.",
          "type": "string",
          "enum": [
            "7d",
            "30d",
            "90d",
            "365d",
            "all"
          ]
        },
        "from": {
          "description": "First day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "to": {
          "description": "Last day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        }
      }
    }
  • POST /tools/get_course_metricsMétricas de un cursoLecturaRol mínimo: Profesor

    One course in depth: enrolled, active and completed students, average completion, watch time, and per-lesson views and completion so you can spot the lesson where students drop off.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "range": {
          "description": "Preset window for activity figures. Default 30d.",
          "type": "string",
          "enum": [
            "7d",
            "30d",
            "90d",
            "365d",
            "all"
          ]
        },
        "from": {
          "description": "First day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "to": {
          "description": "Last day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        }
      },
      "required": [
        "course_id"
      ]
    }
  • POST /tools/find_studentsBuscar alumnosLecturaRol mínimo: Profesor

    Search and filter the academy's students. Combine filters: name/email text, course, group, days without activity, progress range, access expiring soon. Returns progress, last activity, courses and quiz average per student. progress_pct and lessons_done count lessons marked as completed; lessons_opened counts lessons the student opened, so a student can read without marking. Last activity is the latest of campus visits, lesson views, completions, quiz attempts and sessions.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "query": {
          "description": "Part of the name or email.",
          "type": "string",
          "maxLength": 120
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Only students with access to this course (UUID)."
        },
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "Only members of this group (UUID)."
        },
        "inactive_days": {
          "description": "No activity in at least this many days (never active included).",
          "type": "integer",
          "minimum": 1,
          "maximum": 365
        },
        "max_progress_pct": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "min_progress_pct": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "access_expires_within_days": {
          "type": "integer",
          "minimum": 0,
          "maximum": 365
        },
        "sort": {
          "description": "Default name.",
          "type": "string",
          "enum": [
            "name",
            "progress",
            "inactivity",
            "access_expiry"
          ]
        },
        "limit": {
          "description": "Default 50.",
          "type": "integer",
          "minimum": 1,
          "maximum": 200
        }
      }
    }
  • POST /tools/get_studentFicha de un alumnoLecturaRol mínimo: Profesor

    Everything about one student: courses with progress and access dates, connected time, quiz attempts and scores, groups, risk signals, and a link to their card in the panel.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "student_id": {
          "type": "string",
          "format": "uuid",
          "description": "Student user id (UUID)."
        },
        "email": {
          "description": "Student email, instead of student_id.",
          "type": "string",
          "format": "email"
        },
        "range": {
          "description": "Preset window for activity figures. Default 30d.",
          "type": "string",
          "enum": [
            "7d",
            "30d",
            "90d",
            "365d",
            "all"
          ]
        },
        "from": {
          "description": "First day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "to": {
          "description": "Last day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        }
      }
    }
  • POST /tools/get_students_at_riskAlumnos en riesgoLecturaRol mínimo: Profesor

    Students likely to drop out, scored 0–100 with the reasons: never started, days without activity, low progress for the time enrolled, failing quizzes, access about to expire with work left. Optionally for one course. Progress counts lessons marked as completed; when lessons_opened is higher, say the student reads without marking lessons rather than that they did nothing.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Limit to one course (UUID)."
        },
        "min_level": {
          "description": "Default medium.",
          "type": "string",
          "enum": [
            "high",
            "medium"
          ]
        },
        "limit": {
          "description": "Default 30.",
          "type": "integer",
          "minimum": 1,
          "maximum": 200
        }
      }
    }
  • POST /tools/get_quiz_insightsDónde fallan en los testsLecturaRol mínimo: Profesor

    For one course (optionally one lesson): the quiz questions answered wrong most often, the wrong answers students pick, and the number of attempts. Use it to find concepts to reinforce.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "lesson_id": {
          "type": "string",
          "format": "uuid",
          "description": "Only this lesson (UUID)."
        },
        "days": {
          "description": "Look back this many days. Default 90.",
          "type": "integer",
          "minimum": 1,
          "maximum": 3650
        }
      },
      "required": [
        "course_id"
      ]
    }
  • POST /tools/get_pending_workPendientes del profesorLecturaRol mínimo: Profesor

    What needs the teacher today: submissions and essays waiting for a grade, unread student messages, live classes in the next 7 days and access that expires in the next 7 days.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/list_assignment_submissionsEntregas de tareasLecturaRol mínimo: Profesor

    Assignment deliveries and quiz essay answers. Default: waiting for a grade, oldest first. Includes the student's text (trimmed) so you can draft feedback, and ai_suggestion when one exists: for a quiz essay, the AI's proposed share of the question's value (share 0..1; correct when it is 1) with feedback; for an assignment, the unreleased draft. Suggestions are never visible to the student; the teacher confirms each one with grade_quiz_essay or grade_assignment.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "status": {
          "description": "Default submitted (pending).",
          "type": "string",
          "enum": [
            "submitted",
            "graded",
            "all"
          ]
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Only this course (UUID)."
        },
        "query": {
          "description": "Student name or email.",
          "type": "string",
          "maxLength": 120
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "maximum": 9007199254740991
        },
        "page_size": {
          "description": "Default 20.",
          "type": "integer",
          "minimum": 1,
          "maximum": 50
        }
      }
    }
  • POST /tools/get_assignment_submissionVer una entregaLecturaRol mínimo: Profesor

    One assignment delivery or quiz essay answer in full: the student's text and page answers, a temporary download link for an attached file, the current grade and ai_suggestion (see list_assignment_submissions).

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "submission_id": {
          "type": "string",
          "format": "uuid",
          "description": "Submission id from list_assignment_submissions (UUID)."
        }
      },
      "required": [
        "submission_id"
      ]
    }
  • POST /tools/list_live_classesClases en directoLecturaRol mínimo: Profesor

    Live classes in a window (default: today and the next 14 days). Teachers see the classes of their courses, the academy-wide ones and the ones they host. `groups` narrows who sees a class (for a group class, the groups that see it) and `excluded_groups` never see it; get_live_class explains the full audience.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "from": {
          "description": "First day YYYY-MM-DD. Default today.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "days": {
          "description": "Window length. Default 14.",
          "type": "integer",
          "minimum": 1,
          "maximum": 120
        },
        "include_cancelled": {
          "type": "boolean"
        }
      }
    }
  • POST /tools/get_live_classDetalle de una clase en directoLecturaRol mínimo: Profesor

    One live class: who it is for (courses, groups, excluded groups and a `who_sees` sentence), where its recording is saved and whether it is ready (`recording`), its materials, and its attendance (who joined, when and for how long).

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "live_class_id": {
          "type": "string",
          "format": "uuid",
          "description": "Live class id (UUID)."
        }
      },
      "required": [
        "live_class_id"
      ]
    }
  • POST /tools/list_groupsGrupos de alumnosLecturaRol mínimo: Profesor

    Student groups. A group does not have to enroll anyone: `enrolls_in` lists the courses its members are enrolled in automatically (often none). `teachers` are the instructors who see that group's message channels, can create and archive them, post in Community for those students and message them. Admins still see every channel. Groups also narrow live classes (see get_live_class), community posts and lesson visibility: `only_lessons` are lessons only members of groups that reserve them see; `hidden_lessons` are lessons (with their sub-lessons) its members never see, e.g. the solucionarios of a «Libre» group. Pass group_id for the lesson list. Use the ids to filter find_students, change membership, assign teachers, or create a group channel. Admins create a group with create_student_group and edit it with update_student_group. With group_id it also returns `release` (courses where the group has its own opening dates: open = everything open, custom = its own schedule) and `systeme_access_group_for` (courses where systeme.io uses the group to grant access, `kind` `level` or `drip`; the group cannot enroll in those). For one course in detail use get_group_course_access.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "Group id, to list its lesson rules (UUID)."
        }
      }
    }
  • POST /tools/get_group_course_accessAccesos de un grupo en un cursoLecturaRol mínimo: Administrador

    How one group sees one course: each module and lesson with its id, whether members see it, and when it opens. This is the Grupos → group → Accesos por curso screen. Admins only. Its ids are the ones update_student_group asks for (lesson rules and release). `systeme_access_group` is `level` or `drip` when systeme.io uses the group for this course, otherwise null. Read this before changing a group's access. list_groups with group_id is the shorter list of every course.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "Group id (UUID)."
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        }
      },
      "required": [
        "group_id",
        "course_id"
      ]
    }
  • POST /tools/get_ai_usageUso de IALecturaRol mínimo: Administrador

    What the academy spent on AI in a period, in euros, matching Uso de IA: course assistant, video chapter generation, AI images past the included generations, and AI grading, plus the included credit left on the assistant and on grading. Admin only. Default window is the last 30 days, not the calendar month: pass from and to (YYYY-MM-DD) for a month. Amounts already include the platform margin. unpriced counts calls with no rate and are not zero. Chapter spend is billed with the assistant (same included credit and card). Image generations inside the included count are free and are not in images.eur; each one past that count is billed on the same card at 10% over the list price, with no euro grant. Grading has its own included credit. credit.spent_eur is everything so far, not this window. A complimentary academy shows the cost and is not invoiced. This is the whole academy, not the connected person.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "range": {
          "description": "Preset window for activity figures. Default 30d.",
          "type": "string",
          "enum": [
            "7d",
            "30d",
            "90d",
            "365d",
            "all"
          ]
        },
        "from": {
          "description": "First day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "to": {
          "description": "Last day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        }
      }
    }
  • POST /tools/get_tutor_usageUso del Profesor IALecturaRol mínimo: Profesor

    How students use the academy's AI tutor (Profesor IA), matching the Profesor IA block in Métricas: questions, conversations and students who used it in the last 30 days and since the start, estimated hours saved, the course material students ask about most, and a written summary of trending topics. The window is fixed at the last 30 days up to updated_at; there is no custom range. For one student's AI profile use get_student_tutor_profile; for AI spend in euros use get_ai_usage.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/get_student_tutor_profilePerfil de un alumno en el Profesor IALecturaRol mínimo: Profesor

    What the academy's AI tutor (Profesor IA) has learned about one student from the questions they asked it, matching the Profesor IA section of the student record: a written profile (strengths, difficulties, how they study), questions asked (total and last 30 days), conversations, quizzes taken with the tutor and resources it generated for them. Personal data: admins see any student; an instructor only students enrolled in a course they are assigned to. Never returns the conversations themselves. For courses, progress and quiz scores use get_student.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "student_id": {
          "type": "string",
          "format": "uuid",
          "description": "Student user id (UUID)."
        },
        "email": {
          "description": "Student email, instead of student_id.",
          "type": "string",
          "format": "email"
        }
      }
    }
  • POST /tools/get_quiz_resultsNotas de los testsLecturaRol mínimo: Profesor

    Quiz scores in one course. With only course_id: one row per quiz (attempts, students, pass rate, average and median best score) plus quizzes nobody has taken. With quiz_id: that quiz's score bands and every student's best, first and last score and attempts, plus who has access but has not taken it. With student_id or email: that student's results on every quiz next to the course average. Students only; staff attempts are left out. Default window is all time. For the questions they get wrong, use get_quiz_insights.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "quiz_id": {
          "type": "string",
          "format": "uuid",
          "description": "Only this quiz (the quiz_id from a previous call) (UUID)."
        },
        "student_id": {
          "type": "string",
          "format": "uuid",
          "description": "Only this student (UUID)."
        },
        "email": {
          "description": "Only this student, by email.",
          "type": "string",
          "format": "email"
        },
        "limit": {
          "description": "Max students listed. Default 100.",
          "type": "integer",
          "minimum": 1,
          "maximum": 500
        },
        "range": {
          "description": "Preset window for attempts. Default all.",
          "type": "string",
          "enum": [
            "7d",
            "30d",
            "90d",
            "365d",
            "all"
          ]
        },
        "from": {
          "description": "First day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "to": {
          "description": "Last day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        }
      },
      "required": [
        "course_id"
      ]
    }
  • POST /tools/get_course_rankingRanking del cursoLecturaRol mínimo: Profesor

    The leaderboard students see on the course ranking page: the course board (average best score over the course quizzes, or the academy's custom final-grade formula) or one quiz board. Lists the boards available and the top 50 of the one asked for, with ties sharing a place. Returns ranking_enabled=false when the course shows no ranking; get_quiz_results still works then.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "board": {
          "description": "\"course\" or a board id from a previous call. Default: the course board.",
          "type": "string",
          "maxLength": 64
        }
      },
      "required": [
        "course_id"
      ]
    }
  • POST /tools/get_sales_summaryAltas y ventasLecturaRol mínimo: Administrador

    Sign-ups and sales for a period, from the academy's payment integrations: movements by type, by channel and by course, a time series, the change against the period right before, new enrollments by how students got in (paid, CSV, invite, trial…), free trials and how many turned into a purchase, and webhooks that failed. activation = new subscription or purchase; renewal = a subscription renewed; payment = one-off payment; cancellation = subscription cancelled; refund = payment refunded. Admin only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "range": {
          "description": "Preset window for activity figures. Default 30d.",
          "type": "string",
          "enum": [
            "7d",
            "30d",
            "90d",
            "365d",
            "all"
          ]
        },
        "from": {
          "description": "First day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "to": {
          "description": "Last day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Only this course (UUID)."
        },
        "compare_previous": {
          "description": "Also compute the same-length period right before. Default true.",
          "type": "boolean"
        }
      }
    }
  • POST /tools/list_sales_eventsDetalle de altas y bajasLecturaRol mínimo: Administrador

    Individual sales movements, newest first: who bought, renewed, cancelled or was refunded, through which channel and for which courses. Filter by type, channel, course and a name or email fragment. activation = new subscription or purchase; renewal = a subscription renewed; payment = one-off payment; cancellation = subscription cancelled; refund = payment refunded. Admin only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "range": {
          "description": "Preset window for activity figures. Default 30d.",
          "type": "string",
          "enum": [
            "7d",
            "30d",
            "90d",
            "365d",
            "all"
          ]
        },
        "from": {
          "description": "First day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "to": {
          "description": "Last day, inclusive. Overrides `range`.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "kinds": {
          "description": "Only these movement types.",
          "maxItems": 6,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "activation",
              "renewal",
              "payment",
              "cancellation",
              "refund",
              "other"
            ]
          }
        },
        "channel": {
          "description": "Only this channel: pmpro, woocommerce, ghl or systeme.",
          "type": "string",
          "maxLength": 32
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Only movements for this course (UUID)."
        },
        "query": {
          "description": "Name or email fragment.",
          "type": "string",
          "maxLength": 120
        },
        "limit": {
          "description": "Default 50.",
          "type": "integer",
          "minimum": 1,
          "maximum": 500
        }
      }
    }
  • POST /tools/list_billing_companiesEmpresas con las que factura la academiaLecturaRol mínimo: Administrador

    The companies the academy bills through in Pagos, primary first: for each, whether its Stripe account is connected and can take payments, whether automatic invoicing is on, which issuer details an invoice still needs, how many products, coupons, sales and invoices it has, and the link students use to manage their payments. Admin only. Use get_invoice_numbering for where each company's invoice numbering stands.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/get_invoice_numberingNumeración de facturasLecturaRol mínimo: Administrador

    Where the academy's invoice numbering stands this year, for each company it bills through: the next sale invoice number (F-YYYY-NNNN), the last number used, the same for corrective invoices (R-), and whether automatic invoicing is on. Admin only. Use set_next_invoice_number to continue a numbering started in other software.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/list_payment_offersProductos de PagosLecturaRol mínimo: Administrador

    The products the academy sells through Pagos (its own Stripe), newest first: price in cents with VAT, how it bills, the courses it gives, whether it is on sale, hidden from course pages, its maximum of sales, how many it has sold and how many are left, and the Stripe payment link. Admin only. Use set_offer_availability to hide a product or change its maximum. For sales over time use get_sales_summary.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/get_student_fieldsDatos internos de los alumnosLecturaRol mínimo: Administrador

    The academy's internal student fields (phone, exam sitting, status… whatever the academy defined under Alumnos → Campos del alumno), filled in by staff and never shown to students. With student_id or email: every field of that student (null = not filled in), who last edited them, and the student's own intake-questionnaire answers when the academy uses one. Without a student: students that have values, optionally only those whose `field` (id or label) is filled or contains `value_contains` (case and accents ignored, compared with the text shown, e.g. the option label). Use get_student for progress and quizzes.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "student_id": {
          "type": "string",
          "format": "uuid",
          "description": "Student user id (UUID)."
        },
        "email": {
          "description": "Student email, instead of student_id.",
          "type": "string",
          "format": "email"
        },
        "field": {
          "description": "List mode: field id or label to filter on.",
          "type": "string",
          "maxLength": 120
        },
        "value_contains": {
          "description": "List mode: keep students whose value contains this text.",
          "type": "string",
          "maxLength": 200
        },
        "limit": {
          "description": "List mode. Default 100.",
          "type": "integer",
          "minimum": 1,
          "maximum": 500
        }
      }
    }
  • POST /tools/get_email_problemsQuién no recibe los correosLecturaRol mínimo: Profesor

    Students and staff of the academy whose email address we cannot write to, newest problem first: name, email, role, why (`cause`) and since when. Nothing is sent to these addresses (invitations, reminders, notices) until the address is fixed. Use it when a teacher says someone 'never got the email' or asks who is not receiving mail. cause: no_mailbox = the receiving server says the address does not exist, usually a typo; rejected = their server refuses our mail; complaint = they marked one of our emails as spam; blocked = it bounced or complained earlier and the original reason was not kept.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "who": {
          "description": "Whose addresses to check. Default all.",
          "type": "string",
          "enum": [
            "students",
            "staff",
            "all"
          ]
        },
        "limit": {
          "description": "People to list. Default 100.",
          "type": "integer",
          "minimum": 1,
          "maximum": 500
        }
      }
    }
  • POST /tools/get_tutoring_appointmentsVer citas con alumnosLecturaRol mínimo: Profesor

    The connected teacher's bookable office hours and who has reserved them. Default range is the current Monday–Sunday in mainland Spain; pass from/to (YYYY-MM-DD) for another span, at most 92 days. Optional course_id or group_id keeps the schedules open to that course or group and the bookings made through it. Returns each open schedule (its courses and groups, weekday, clock times, minutes per appointment, channel) and the bookings in that range with the student name, email and, for a phone appointment, the number to call. Use this for «¿qué citas tengo?» or «¿quién ha reservado?». For a live class the teacher scheduled for a group, use list_live_classes instead.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "from": {
          "description": "First day, inclusive, YYYY-MM-DD.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "to": {
          "description": "Last day, inclusive, YYYY-MM-DD.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Only this course (UUID)."
        },
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "Only this student group (UUID)."
        }
      }
    }
  • POST /tools/list_conversationsMensajes privadosLecturaRol mínimo: Profesor

    The teacher's private conversations in Messages, newest first: who, the last message (trimmed), when, and whether it is unread. Reading never marks anything as read. Use get_conversation for the messages and send_message to answer.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "unread_only": {
          "type": "boolean"
        }
      }
    }
  • POST /tools/search_message_peopleBuscar a quién escribirLecturaRol mínimo: Profesor

    People this staff member may start a direct message with, matched by name or email. Needs at least 2 letters. An admin or owner can reach anyone else in the academy. A teacher can reach other staff and the students of the courses and groups assigned to them, not the rest of the academy. Returns at most 20 people and says when that page may be incomplete. Does not open a chat: use send_direct_message with the user_id. Hidden when messaging is off.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "maxLength": 80
        }
      },
      "required": [
        "query"
      ]
    }
  • POST /tools/get_conversationLeer una conversaciónLecturaRol mínimo: Profesor

    The latest messages of one private conversation (oldest first), with who wrote each. Use conversation_id from list_conversations. Reading does not mark it as read. Answer with send_message to the same student.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "conversation_id": {
          "type": "string",
          "format": "uuid",
          "description": "Conversation id (UUID)."
        }
      },
      "required": [
        "conversation_id"
      ]
    }
  • POST /tools/list_community_postsPublicaciones de la comunidadLecturaRol mínimo: Profesor

    The latest posts in the academy community (pinned and newest first, 20 per page): text (trimmed), author, courses and groups it is for, likes, comments and poll question. Use get_community_post for the comments.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "before_post_id": {
          "type": "string",
          "format": "uuid",
          "description": "Last post of the previous page, to see older ones (UUID)."
        }
      }
    }
  • POST /tools/get_community_postVer una publicación y sus comentariosLecturaRol mínimo: Profesor

    One community post in full with all its comments (comment_id, author, text, which comment it answers). Use it before answering or moderating.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "post_id": {
          "type": "string",
          "format": "uuid",
          "description": "Post id (UUID)."
        }
      },
      "required": [
        "post_id"
      ]
    }
  • POST /tools/list_support_ticketsSolicitudes de ayudaLecturaRol mínimo: Profesor

    Students' help requests from the campus (Ayuda): open first, then oldest first. Each has the kind, subject, the student's text, the course, the status (open, acknowledged = someone is on it, resolved) and the answer if resolved. Default: open and acknowledged.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "statuses": {
          "minItems": 1,
          "maxItems": 3,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "open",
              "acknowledged",
              "resolved"
            ]
          }
        }
      }
    }
  • POST /tools/list_teamEquipo de la academiaLecturaRol mínimo: Profesor

    The academy's staff: name, email, role (owner, admin, instructor), custom_role (the name of the custom role that narrows what they see in the panel, or null for the whole of their level) and since when. Students are not listed. For what each custom role opens use list_staff_roles.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/get_member_accessQué hace cada persona del equipoLecturaRol mínimo: Administrador

    What each staff member does in the academy, as set on their page under Equipo: which submissions they may grade (grading_scope), the courses they edit, and in each student group whether they correct and/or answer messages. Give email for one person; leave it out for the whole team (teachers, admins and owners). A warning says when a teacher's setting lets them see no submission at all. To change it use set_member_access; for roles and custom roles use list_team and list_staff_roles.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "email": {
          "description": "One staff member; omit for everyone.",
          "type": "string",
          "format": "email"
        }
      }
    }
  • POST /tools/list_staff_rolesRoles personalizados del equipoLecturaRol mínimo: Administrador

    The academy's custom staff roles: name, the level each one is based on (instructor or admin), the panel sections it opens and who has it. Also lists every panel section id with its label and the lowest level that has it, for create_staff_role and assign_staff_role.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/get_notification_settingsAvisos por defecto de la academiaLecturaRol mínimo: Profesor

    The academy's default notification settings: for each kind of notification (new submission, graded assignment, live class reminder, community activity…), whether it is sent in the platform, by email and as a push notification. Students always get these defaults; staff members may have changed their own in their profile, and those personal choices are private and not available here.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/get_vdocipher_settingsConexión de VdoCipherLecturaRol mínimo: Administrador

    How this academy connects VdoCipher, and whether it is ready for the AI tutor. Returns enabled, whether an API key is saved (never the key), the result of the last live check (playback_status: ready / key_invalid / missing_otpcreator; tutor_status: ready / captions_only / original_download_disabled / missing_download_permission / no_ready_videos), whether the key reached the tutor (tutor_key_sync), and the setup steps. Use it when an admin asks how to find the API secret, how to turn on original download, or why the tutor cannot read VdoCipher videos. API key: in the VdoCipher dashboard, left menu Config, Add API key, permissions otpcreator, editor and viewer; paste it in Integraciones → VdoCipher and press Guardar, which checks it live. Original download: left menu Security, then Advanced, then Enable download; VdoCipher emails a link that only a VdoCipher account admin can open; then press «Comprobar de nuevo». Without original download the tutor only reads videos with captions in the course language. The saved key cannot be shown or copied. Do not ask for the API secret and do not change these settings; the admin does that on the VdoCipher screen. Admins only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/get_vimeo_settingsConexión de VimeoLecturaRol mínimo: Administrador

    Which Vimeo accounts this academy connected and what each can do. For every account: name, Vimeo user id, plan, scopes, the last four characters of the token (never the token), and the last live check: tutor_status (ready / captions_only / scope_missing / plan_without_files / token_invalid), upload_status (ready / scope_missing / token_invalid), domains_status as read from the account's latest videos when the token was connected or re-checked (ok / missing with domains_missing / anywhere / embed_disabled / no_videos / unknown / unverified / token_invalid), and whether it receives live recordings. Also whether the AI tutor can use them (tutor_ready) and the setup steps. Use it when an admin asks how to connect Vimeo, why the AI tutor cannot read Vimeo videos, or why a Vimeo video is blocked on the campus domain. Setup: at developer.vimeo.com/apps, with the academy's Vimeo account, Create an app, then Generate an access token (Authenticated) with Public, Private, Video Files and Upload, and add it in Integraciones → Vimeo, which checks it live. One token per Vimeo account that holds course videos. Domains: in Vimeo's default video settings (vimeo.com/settings/videos/upload_defaults), «Where can your videos be embedded?» → «Only on sites I choose», add the domains the panel lists with «+ Add a domain», tick «Also apply to all existing videos» and Save. The LMS cannot change that list (Vimeo's API does not expose it) and does not add domains to videos; after changing it, the admin presses «Comprobar de nuevo» on the account. Do not ask for a token and do not change these settings; the admin does that on the Vimeo screen. Admins only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/get_systeme_integrationEstado de systeme.ioLecturaRol mínimo: Administrador

    How far this academy's systeme.io integration is, for admins: whether it is on, whether the API key is set (never the key), the webhook address and the four events to subscribe, the checklist of what is left, catalogue totals, purchases and pending sales. Start here. Then follow checklist. The API key, the webhook secret and the one-off import of current students stay on Integraciones → systeme.io. Read-only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/list_systeme_course_pairsEmparejar cursos de systeme.ioLecturaRol mínimo: Administrador

    systeme.io courses paired with academy courses, and the systeme.io courses still unpaired, for admins. levels lists each partial access level (the modules it leaves out and its group). drip is how many products open the course little by little. Read this before set_systeme_course_pairs. drip_group_id is the group dripped buyers join; its own schedule in the course is set on the Grupos screen. Without a catalogue sync there are no systeme.io courses to list: call sync_systeme_catalog first. Read-only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/list_systeme_productsProductos de systeme.ioLecturaRol mínimo: Administrador

    The academy's systeme.io products (fichas) for admins: what each one grants, what systeme.io still delivers, and what needs review. filter incomplete is the panel's Por revisar; to_remove_in_systeme are fichas whose systeme.io product still delivers courses (remove those courses in systeme.io). Pass funnel_id from a previous call to see one funnel. Then get_systeme_product for one of them, or update_systeme_product to change what future sales grant. Read-only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "maxLength": 200
        },
        "filter": {
          "type": "string",
          "enum": [
            "all",
            "incomplete",
            "no_ficha",
            "paused",
            "no_access",
            "to_remove_in_systeme"
          ]
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "funnel_id": {
          "type": "string",
          "maxLength": 40
        },
        "include_inactive_funnels": {
          "type": "boolean"
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "offset": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      }
    }
  • POST /tools/get_systeme_productFicha de un producto de systeme.ioLecturaRol mínimo: Administrador

    One systeme.io product in detail, for admins: what it grants, its plans, the sources assigned by hand, where it is sold and what to fix. Pass systeme_product_id or access_product_id from list_systeme_products. Then update_systeme_product, or delete_systeme_product. Read-only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "systeme_product_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[0-9]{1,18}$"
            },
            {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          ]
        },
        "access_product_id": {
          "type": "string",
          "format": "uuid",
          "description": "Access product id (UUID)."
        }
      }
    }
  • POST /tools/list_systeme_pending_salesVentas pendientes de systeme.ioLecturaRol mínimo: Administrador

    systeme.io sales still waiting for a product, for admins. Each plan lists how many sales are waiting, which ficha it is already assigned to, and the candidate fichas. Zero candidates: sync the catalogue or create the ficha. One candidate: process_systeme_pending_sales. Several: the sale was ambiguous; assign the plan to one ficha with update_systeme_product (assign_sources). Read-only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/list_systeme_eventsAvisos de systeme.ioLecturaRol mínimo: Administrador

    Recent systeme.io webhook events for admins. filter failed is the ones to look at; can_reprocess says whether reprocess_systeme_event can run that event again. Page size is fixed. Read get_systeme_integration for the count of failed events. Read-only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "filter": {
          "type": "string",
          "enum": [
            "all",
            "failed",
            "unmapped",
            "SALE_NEW",
            "SALE_CANCELED",
            "tags"
          ]
        },
        "page": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10000
        }
      }
    }
  • POST /tools/get_zoom_auto_recordGrabación automática de ZoomLecturaRol mínimo: Administrador

    Whether the academy's Zoom meetings record to the cloud when the class starts, without the teacher pressing Record. Also how many classes already created and not yet finished would be affected. Admins only. Does not return Zoom secrets. One Pro license still hosts only one meeting at a time; this does not add licenses.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/get_teams_settingsMicrosoft Teams de la academiaLecturaRol mínimo: Administrador

    Whether Microsoft Teams is connected for live classes (meetings created on save, recordings imported, attendance pulled), which setup step failed the last connection check, whether meetings record when the class starts, and how many classes already created and not finished would follow that switch. Admins only. Never returns the client secret. To connect or fix the setup, send the admin to the panel link: the steps happen in Microsoft Entra ID and Teams PowerShell, not here.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/get_student_exit_urlURL de vuelta de los alumnosLecturaRol mínimo: Administrador

    Where students go when they click Volver on the academy's own domain or when they sign out. Admins only. exit_url is what the academy saved (null if they left it empty). destination_url is where Volver sends them today when they have no external-site cookie. default_url is the fallback (the parent of the campus domain). Does not return DNS records or API keys. Use set_student_exit_url to change it.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/list_fundae_groupsGrupos FUNDAELecturaRol mínimo: Profesor

    The academy's FUNDAE training groups (newest window first): action, code, group number, course, modality, official hours, dates, status, tutor, participants and how many have finished.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "draft",
            "open",
            "closed",
            "cancelled"
          ]
        }
      }
    }
  • POST /tools/get_fundae_groupParticipantes de un grupo FUNDAELecturaRol mínimo: Profesor

    One FUNDAE group with every participant: company, campus hours, virtual-classroom hours, controls done, best score, whether they followed the sequence, and the verdict (finished, unfinished, withdrawn) with its reasons. National IDs are never shown. Verdicts are recalculated every night; recompute_fundae_group does it now.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "FUNDAE group id (UUID)."
        }
      },
      "required": [
        "group_id"
      ]
    }
  • POST /tools/get_oposiciones_settingsAjustes de oposicionesLecturaRol mínimo: Administrador

    Whether students see the vacancies map, calls and alerts; which oposiciones the academy prepares for by default; each course's own selection and whether its students see the map; and every oposición that can be picked (key and name).

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/list_course_certificatesCertificados de un cursoLecturaRol mínimo: Profesor

    Certificates already issued for one course: student name, email, public code, status (valid, expired, revoked, superseded, pending), issued and expiry dates, and the public verification URL. pending means the PDF is not stored yet. superseded was replaced by a newer certificate; revoked will not be issued again automatically. This is not who qualifies and has none yet: use issue_course_certificate with dry_run for that count. Newest first, at most 200. An instructor only sees courses they are assigned to.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "status": {
          "description": "Only this status. Omit to list every status.",
          "type": "string",
          "enum": [
            "valid",
            "expired",
            "revoked",
            "superseded",
            "pending"
          ]
        }
      },
      "required": [
        "course_id"
      ]
    }
  • POST /tools/get_course_plan_timesTiempo del plan de estudio de un cursoLecturaRol mínimo: Profesor

    Study planner time for one course: total planned minutes and lessons, and per module whether it is out of the plan, its lessons and planned minutes. With include_lessons, also each lesson's calculated minutes, the teacher's own time, whether it is optional or out of the plan, and the actual average of students who finished it. Omit course_id to list every course with its planned lessons, hours and how many lessons are out of the plan. Use set_plan_module_excluded to take a module out of the plan or back in. An instructor only sees courses they are assigned to.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "include_lessons": {
          "description": "Also list each lesson (at most 300). Default false.",
          "type": "boolean"
        }
      }
    }
  • POST /tools/get_course_plan_setupAjustes del plan de estudio de un cursoLecturaRol mínimo: Profesor

    How a course is planned and what students are asked when they set their time: plan mode and date or weeks, the academy's minimum study time, «fit to the date», the days-and-hours selectors with their limits and advice, and the questions asked before choosing a route (with ids, needed by save_study_route suggested_for). Also the academy's welcome screens, which views «Mi plan» offers (plan_views: both, day = only «Por días», topic = only «Por temas»), whether students see the times the platform estimates (show_estimated_times) and tutor contact button. Change them with set_course_plan_setup, set_planner_welcome and set_tutor_contact_button; routes themselves with get_study_routes and save_study_route. An instructor only sees courses they are assigned to.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        }
      },
      "required": [
        "course_id"
      ]
    }
  • POST /tools/get_study_nudgesAvisos de estudio de la academia o de un alumnoLecturaRol mínimo: Profesor

    Study nudges: the daily push or email reminders the platform sends students (morning plan, afternoon weak topic, evening streak). With student_id or email: whether that student gets them and why not (control group, their own settings, pause, no channel, all their courses switched off), their channel, streak and weekly freeze, and every nudge planned in the last `days` days with what it said, whether it was sent or skipped and why, and whether they opened it or studied after. Without a student: which courses have nudges switched off, which templates use the academy's own wording, and the latest nudges sent in the academy over the last 7 days with a summary. Read only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "student_id": {
          "type": "string",
          "format": "uuid",
          "description": "Student user id (UUID)."
        },
        "email": {
          "description": "Student email, instead of student_id.",
          "type": "string",
          "format": "email"
        },
        "days": {
          "description": "Days back for one student's nudges. Default 14, at most 60.",
          "type": "integer",
          "minimum": 1,
          "maximum": 60
        }
      }
    }
  • POST /tools/get_study_routesRutas del planificador de un cursoLecturaRol mínimo: Profesor

    The teacher's routes for one course in the study planner (drafts and published), each with its audience and stages: kind (study, or review for a pass over lessons already studied), dates (calendar days, or weeks from each student's start), required, «at stage end», «if time allows» and «at the same time» lessons or modules with titles and minutes, the A/B choice and the live-class series that count. Also returns the course's modules and lessons (ids, titles, minutes; `side: true` marks the calculator module, which the course order leaves out), its recurring live-class series and the class recordings a route can name, which is what save_study_route needs to build a route from a teacher's plan or document. An instructor only sees courses they are assigned to.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "include_course_tree": {
          "description": "Also return the modules and lessons with ids. Default true.",
          "type": "boolean"
        }
      },
      "required": [
        "course_id"
      ]
    }
  • POST /tools/get_student_masteryÁrbol de dominio de un alumnoLecturaRol mínimo: Profesor

    One student's mastery map (árbol de dominio): how well they master each module and lesson of a course, from the short tests the map gives after each lesson. With course_id: every module (percent and module exam), every studyable lesson with its percent and its learning objectives, and their weakest lessons. Without course_id: a summary per course they are enrolled in (overall percent, modules, weakest lessons). Read only. For quiz scores use get_quiz_results; for lesson completion use get_student.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "student_id": {
          "type": "string",
          "format": "uuid",
          "description": "Student user id (UUID)."
        },
        "email": {
          "description": "Student email, instead of student_id.",
          "type": "string",
          "format": "email"
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        }
      }
    }
  • POST /tools/get_course_mastery_overviewÁrbol de dominio de un cursoLecturaRol mínimo: Profesor

    Mastery map (árbol de dominio) across the students of one course: per module and per lesson, how many students have a score, their average, and how many are weak (red) or strong (green); the lessons with the lowest average; the students with the lowest overall mastery; and how many have not tested anything yet. Students with current access only; staff are left out. Read only. For one student's map use get_student_mastery.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        }
      },
      "required": [
        "course_id"
      ]
    }
  • POST /tools/get_question_bankBanco de preguntas: categorías y temasLecturaRol mínimo: Profesor

    Overview of the academy's question bank: every category (folder tree, with the course it belongs to, question counts including subcategories, and the course quizzes that draw from it at random) and every theme (the tags students pick in Tests by theme, with question counts), plus the Tests settings teachers change in the bank: whether Tests are on and whether they also draw questions that belong to no course. Start here to get category_id and theme_id values. To read the questions themselves use list_bank_questions.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/list_bank_questionsPreguntas del bancoLecturaRol mínimo: Profesor

    Questions in the question bank, newest edit first, 25 per page, with their options and which is correct, explanation, where the answer is in the syllabus (syllabus_location), category, themes, the courses they belong to, and the course quizzes that use them. syllabus_location is null when the question has none. Its opens field is lesson, video (with at, like 12:30), pdf (with page), block (a video or PDF from the start) or text (a location with no lesson, so the student sees words only). A question can belong to several courses: because a course quiz uses it (used_in_tests) or because the academy assigned it to the course in the panel (assigned). Filter by category (includes subcategories), theme, course, origin or a search over name and wording. editable_by_claude is false when a course quiz uses the question: then it can only be changed in the panel. Get ids from get_question_bank. Lesson ids for a new location come from get_course_outline.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "category_id": {
          "type": "string",
          "format": "uuid",
          "description": "Category (UUID)."
        },
        "theme_id": {
          "type": "string",
          "format": "uuid",
          "description": "Theme (UUID)."
        },
        "course_id": {
          "description": "Questions that belong to this course: used by its quizzes or assigned to it.",
          "type": "string",
          "format": "uuid"
        },
        "search": {
          "description": "Words in the name or the wording.",
          "type": "string",
          "maxLength": 200
        },
        "origin": {
          "description": "manual = written in the panel or by Claude, imported = Moodle/QSM/file imports, ai = generated from lessons.",
          "type": "string",
          "enum": [
            "manual",
            "imported",
            "ai"
          ]
        },
        "page": {
          "description": "Default 1.",
          "type": "integer",
          "minimum": 1,
          "maximum": 500
        }
      }
    }
  • POST /tools/list_reusable_testsTests reutilizables del bancoLecturaRol mínimo: Profesor

    The reusable tests saved in the question bank (newest first, up to 50): name, category, course and how many questions each has. Filter by category (subcategories included), course or a word in the name. Use get_reusable_test for the questions of one.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "category_id": {
          "type": "string",
          "format": "uuid",
          "description": "Category (UUID)."
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course (UUID)."
        },
        "search": {
          "type": "string",
          "maxLength": 200
        }
      }
    }
  • POST /tools/get_reusable_testVer un test reutilizableLecturaRol mínimo: Profesor

    One reusable test with its settings and its questions in order (id and name). Read it before update_reusable_test so you send the full question list.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "reusable_test_id": {
          "type": "string",
          "format": "uuid",
          "description": "Reusable test (UUID)."
        }
      },
      "required": [
        "reusable_test_id"
      ]
    }
  • POST /tools/list_channelsCanales de mensajesLecturaRol mínimo: Profesor

    Chat channels in Mensajes: who can see each one (the whole academy, one course, one or more student groups, or invited students), whether students can write, and whether it is archived. Use the group ids from list_groups. Hidden when the academy community is off.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "include_archived": {
          "description": "Default false.",
          "type": "boolean"
        }
      }
    }
  • POST /tools/list_cloud_filesVer la Nube de la academiaLecturaRol mínimo: Profesor

    The academy cloud («Nube»): images, documents, audio and videos shared by the whole staff, organised in folders. Without filters it lists one folder (folder_id or folder_path; the top level by default) plus its subfolders. Any filter (query, kind, from/to, uploaded_by_me) searches the whole cloud instead, and the folder is then ignored: filter folder_path in the results yourself. Returns each file's type (file or Bunny video), kind, size in bytes, folder path, upload date and uploader, and the full folder tree. Folder «Material de cursos» holds the files the academy's courses already used, one subfolder per course. Use the ids with move_cloud_files and create_cloud_folder.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "folder_id": {
          "type": "string",
          "format": "uuid",
          "description": "Folder id (UUID)."
        },
        "folder_path": {
          "description": "Folder by path instead of id, e.g. \"Material de cursos / Lengua\". \"/\" is the top level.",
          "type": "string",
          "maxLength": 600
        },
        "query": {
          "description": "Part of the file name.",
          "type": "string",
          "maxLength": 120
        },
        "kind": {
          "type": "string",
          "enum": [
            "image",
            "video",
            "audio",
            "document",
            "other"
          ]
        },
        "from": {
          "description": "Uploaded on or after this day.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "to": {
          "description": "Uploaded on or before this day.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "uploaded_by_me": {
          "description": "Only files the connected person uploaded.",
          "type": "boolean"
        },
        "sort": {
          "description": "Default newest.",
          "type": "string",
          "enum": [
            "newest",
            "oldest",
            "name",
            "size"
          ]
        },
        "limit": {
          "description": "Default 50.",
          "type": "integer",
          "minimum": 1,
          "maximum": 200
        },
        "offset": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      }
    }
  • POST /tools/get_cloud_storageEspacio de la NubeLecturaRol mínimo: Profesor

    How much of the academy cloud is used and what the cap is, matching the bar at the bottom of Nube. Bytes include files and Bunny videos. Vimeo and YouTube videos are not stored in the cloud and do not count. by_kind is what the bar shows (ready files, plus Bunny videos when the academy uploads them there). used_bytes also counts uploads still in progress, so remaining_bytes is what still fits. The default cap is 2 TB.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/get_profile_formCuestionario inicialLecturaRol mínimo: Profesor

    The academy intake questionnaire: whether it is on, whether it blocks the campus, which student groups must complete it, and who receives the completion email (Avisar por correo / Quién lo recibe). An empty group list means every student. A student in any listed group sees it. email_notice.recipients is who would be emailed the next time a student completes it for the first time; empty when the notice is off. email_notice.everyone means every current owner and admin is ticked, including people added later. It does not return the questions or anyone's answers, and it cannot change who is ticked. Use list_groups for group ids.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }

Gestionar alumnosstudents:write

  • POST /tools/invite_studentsDar de alta alumnosEscrituraRol mínimo: Profesor

    Add students to the academy by email (new or existing accounts), optionally giving them access to courses and adding them to groups, and optionally emailing them an invitation to set their password. Call with dry_run first and confirm with the teacher.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "emails": {
          "minItems": 1,
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "course_ids": {
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "group_ids": {
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "access_until": {
          "description": "Course access ends this day (YYYY-MM-DD). Omit for unlimited.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "send_invite": {
          "description": "Email an invitation. Default true.",
          "type": "boolean"
        },
        "dry_run": {
          "description": "true = only report what would happen. Use it first for bulk changes and show the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "emails"
      ]
    }
  • POST /tools/enroll_studentsDar acceso a un cursoEscrituraRol mínimo: Profesor

    Give existing students access to one course, optionally until a date. For people not yet in the academy use invite_students. Use dry_run for more than a few students.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "students": {
          "minItems": 1,
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "student_id": {
                "type": "string",
                "format": "uuid",
                "description": "Student user id (UUID)."
              },
              "email": {
                "type": "string",
                "format": "email"
              }
            }
          }
        },
        "access_until": {
          "description": "Access ends this day (YYYY-MM-DD). Omit for unlimited.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "dry_run": {
          "description": "true = only report what would happen. Use it first for bulk changes and show the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "course_id",
        "students"
      ]
    }
  • POST /tools/unenroll_studentQuitar acceso a un cursoBorra datosRol mínimo: Profesor

    Remove one student's access to one course. Their progress is kept and comes back if they are enrolled again. Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "student": {
          "type": "object",
          "properties": {
            "student_id": {
              "type": "string",
              "format": "uuid",
              "description": "Student user id (UUID)."
            },
            "email": {
              "type": "string",
              "format": "email"
            }
          }
        }
      },
      "required": [
        "course_id",
        "student"
      ]
    }
  • POST /tools/set_access_untilCambiar fin de accesoEscrituraRol mínimo: Profesor

    Change the day a student's access to a course ends, or remove the limit with access_until null. The student must already be enrolled.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "student": {
          "type": "object",
          "properties": {
            "student_id": {
              "type": "string",
              "format": "uuid",
              "description": "Student user id (UUID)."
            },
            "email": {
              "type": "string",
              "format": "email"
            }
          }
        },
        "access_until": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            {
              "type": "null"
            }
          ],
          "description": "YYYY-MM-DD, or null for unlimited."
        }
      },
      "required": [
        "course_id",
        "student",
        "access_until"
      ]
    }
  • POST /tools/set_extra_accessDar o quitar el contenido extraEscrituraRol mínimo: Profesor

    Give (extra_access: true) or take away (false) a student's access to a course's extra content modules. The student must be enrolled. Giving access fails when the course has no extra modules. Repeating the call changes nothing.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "student": {
          "type": "object",
          "properties": {
            "student_id": {
              "type": "string",
              "format": "uuid",
              "description": "Student user id (UUID)."
            },
            "email": {
              "type": "string",
              "format": "email"
            }
          }
        },
        "extra_access": {
          "type": "boolean"
        }
      },
      "required": [
        "course_id",
        "student",
        "extra_access"
      ]
    }
  • POST /tools/resend_inviteReenviar invitaciónEscrituraRol mínimo: Profesor

    Email a student a fresh link to set their password and enter the campus.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "student": {
          "type": "object",
          "properties": {
            "student_id": {
              "type": "string",
              "format": "uuid",
              "description": "Student user id (UUID)."
            },
            "email": {
              "type": "string",
              "format": "email"
            }
          }
        }
      },
      "required": [
        "student"
      ]
    }
  • POST /tools/set_group_membershipAñadir o quitar de un grupoEscrituraRol mínimo: Profesor

    Add students to a group or remove them. A teacher can only change a group assigned to them; an admin can change any group. A student can be in several groups. Joining enrolls them in the group's `enrolls_in` courses, if any; it also changes which live classes and lessons they see when the academy narrows those by group. Use list_groups for the ids.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "Group id (UUID)."
        },
        "students": {
          "minItems": 1,
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "student_id": {
                "type": "string",
                "format": "uuid",
                "description": "Student user id (UUID)."
              },
              "email": {
                "type": "string",
                "format": "email"
              }
            }
          }
        },
        "member": {
          "type": "boolean",
          "description": "true = add to the group, false = remove."
        },
        "dry_run": {
          "description": "true = only report what would happen. Use it first for bulk changes and show the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "group_id",
        "students",
        "member"
      ]
    }
  • POST /tools/create_groupCrear un grupoEscrituraRol mínimo: Administrador

    Create an empty student group, the same as Grupos → Crear grupo. Admin only. It does not enroll anyone and does not change which lessons they see. Add students afterwards with set_group_membership. If that name already exists, returns the existing group and creates nothing. Confirm the name with the teacher first. To set the courses it enrolls, its lesson rules or its opening dates use update_student_group; to delete it, delete_student_group.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "required": [
        "name"
      ]
    }
  • POST /tools/set_group_instructorsAsignar profesores a un grupoEscrituraRol mínimo: Administrador

    Replace the staff of one student group. Each person has two jobs there: corrects (grades the submissions of the group's students when their correction scope is 'their groups') and answers_messages (the group's students can message them privately). A job left out keeps what the person already has in the group; newcomers get both. Someone with both jobs false is left out. Either job lets them see the group's message channels, create and archive them, post in Community for its students and change its members. Admins still see every channel. Pass the full list; an empty list clears the group's staff. Always call with dry_run first, show the names and jobs, and save only after the teacher confirms. Use list_groups for the group id and get_member_access for one person's groups. This does not enroll anyone or change lesson rules.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "Group id (UUID)."
        },
        "teachers": {
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "teacher_id": {
                "type": "string",
                "format": "uuid",
                "description": "Teacher user id (UUID)."
              },
              "email": {
                "type": "string",
                "format": "email"
              },
              "corrects": {
                "description": "Grades this group's submissions. Omit to keep what they have; newcomers get true.",
                "type": "boolean"
              },
              "answers_messages": {
                "description": "This group's students can message them privately. Omit to keep; newcomers get true.",
                "type": "boolean"
              }
            }
          }
        },
        "dry_run": {
          "description": "true = only report what would happen. Use it first for bulk changes and show the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "group_id",
        "teachers"
      ]
    }
  • POST /tools/create_student_groupCrear un grupo de alumnosEscrituraRol mínimo: Administrador

    Create an empty student group. Then add students with set_group_membership and, if the teacher wants, set its courses and lesson rules with update_student_group. Names are unique in the academy. Same as create_group, which returns the existing group when the name is taken.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        }
      },
      "required": [
        "name"
      ]
    }
  • POST /tools/update_student_groupEditar un grupo de alumnosEscrituraRol mínimo: Administrador

    Rename a group, change the courses its members are enrolled in automatically (enrolls_in_course_ids), or which lessons are reserved for it (only_lesson_ids) or hidden from it (hidden_lesson_ids). Each list you send replaces that list; what you leave out stays. A course added enrolls every member; a course removed takes it away from members who only had it through this group. Members are changed with set_group_membership. Read list_groups with group_id first and confirm with the teacher. The add_* lists and clear_lesson_ids change single lessons without resending the rest. release changes when content opens for the group, one entry per course: course (like the course itself), open (everything open) or custom with target, mode and items for every module or lesson of the course (value is YYYY-MM-DD when mode is calendar, or days from 0 to 3650 when mode is enrollment). Read get_group_course_access first. A course listed in systeme_access_group_for cannot be added to enrolls_in_course_ids. access_level_course_ids lists the courses where this group is a purchase access level: there, hidden lessons open again for a member who holds the course's full access or another level that includes them. Elsewhere hiding is final.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "Group id (UUID)."
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "enrolls_in_course_ids": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "only_lesson_ids": {
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "hidden_lesson_ids": {
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "add_only_lesson_ids": {
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "add_hidden_lesson_ids": {
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "clear_lesson_ids": {
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "access_level_course_ids": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "release": {
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "course_id": {
                "type": "string",
                "format": "uuid",
                "description": "Course id (UUID)."
              },
              "policy": {
                "type": "string",
                "enum": [
                  "course",
                  "open",
                  "custom"
                ]
              },
              "target": {
                "type": "string",
                "enum": [
                  "modules",
                  "lessons"
                ]
              },
              "mode": {
                "type": "string",
                "enum": [
                  "calendar",
                  "enrollment"
                ]
              },
              "items": {
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "value": {
                      "type": "string",
                      "maxLength": 16
                    }
                  },
                  "required": [
                    "id",
                    "value"
                  ]
                }
              }
            },
            "required": [
              "course_id",
              "policy"
            ]
          }
        }
      },
      "required": [
        "group_id"
      ]
    }
  • POST /tools/delete_student_groupBorrar un grupo de alumnosBorra datosRol mínimo: Administrador

    Delete a student group. Its members stay in the academy, but lose the courses they only had through this group, the lessons reserved for it, and live classes aimed at it. The group is removed from every live class: upcoming_live_classes.hidden_from_everyone are group classes no student will see, open_to_whole_course are course classes every course student will see. To rename a group, use update_student_group instead. Call with dry_run first, show the teacher what would change and confirm.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "Group id (UUID)."
        },
        "dry_run": {
          "description": "true = only report what would happen.",
          "type": "boolean"
        }
      },
      "required": [
        "group_id"
      ]
    }
  • POST /tools/set_student_fieldsRellenar campos de la fichaEscrituraRol mínimo: Profesor

    Fill in or clear the academy's staff fields on one student's record (get_student_fields lists them with their choices). Only the fields you send change; value null clears one. Choices can be given by their label. Students never see these fields.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "student": {
          "type": "object",
          "properties": {
            "student_id": {
              "type": "string",
              "format": "uuid",
              "description": "Student user id (UUID)."
            },
            "email": {
              "type": "string",
              "format": "email"
            }
          }
        },
        "values": {
          "minItems": 1,
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "field": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "description": "field_id or the field's label."
              },
              "value": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4000
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 500
                        }
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "field",
              "value"
            ]
          }
        }
      },
      "required": [
        "student",
        "values"
      ]
    }
  • POST /tools/set_mentorship_creditsCambiar las mentorías 1:1 disponiblesEscrituraRol mínimo: Profesor

    Set how many 1:1 mentorship sessions a student has left (0 to 999). It replaces the number; to add some, read the current one first and send the sum. Each 1:1 live class scheduled for the student uses one.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "student": {
          "type": "object",
          "properties": {
            "student_id": {
              "type": "string",
              "format": "uuid",
              "description": "Student user id (UUID)."
            },
            "email": {
              "type": "string",
              "format": "email"
            }
          }
        },
        "credits": {
          "type": "integer",
          "minimum": 0,
          "maximum": 999
        }
      },
      "required": [
        "student",
        "credits"
      ]
    }
  • POST /tools/recompute_fundae_groupRecalcular un grupo FUNDAEEscrituraRol mínimo: Profesor

    Recalculate every participant's verdict now instead of waiting for the nightly run. Groups already closed keep their verdicts. Repeating it changes nothing new.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "FUNDAE group id (UUID)."
        }
      },
      "required": [
        "group_id"
      ]
    }
  • POST /tools/issue_fundae_certificatesEmitir diplomas y certificados FUNDAEEscrituraRol mínimo: Administrador

    Issue the diplomas (finished) and attendance certificates of a FUNDAE group, at most 20 per call; call again while remaining > 0. Participants who have not finished get none. Students see them in their certificates. Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "FUNDAE group id (UUID)."
        }
      },
      "required": [
        "group_id"
      ]
    }
  • POST /tools/request_fundae_dossierPreparar el expediente FUNDAEEscrituraRol mínimo: Administrador

    Start building a group's inspection dossier (a ZIP with every participant's evidence). It takes a few minutes; the download appears in the group's Expediente tab. Also lists the latest builds and their status.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "FUNDAE group id (UUID)."
        }
      },
      "required": [
        "group_id"
      ]
    }
  • POST /tools/issue_course_certificateEmitir certificados del cursoEscrituraRol mínimo: Profesor

    Issue certificates to enrolled students who meet this course's rules and do not already have an active one. Call with dry_run first and confirm with the teacher: dry_run returns how many qualify and issues nothing. Then call with dry_run false. Each call checks at most 20 enrolled students from offset; call again with offset = next_offset while remaining > 0. remaining is students not checked yet, not certificates left to issue. Students with no name on their profile are skipped. Does not change the rules or the signature, and refuses while the course certificate is off. Repeating a finished pass issues nothing new.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "dry_run": {
          "description": "true = only report how many qualify. Call it first and confirm with the teacher.",
          "type": "boolean"
        },
        "offset": {
          "description": "Enrolled-student offset from the previous call. Default 0.",
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "course_id"
      ]
    }
  • POST /tools/set_profile_form_groupsGrupos del cuestionario inicialEscrituraRol mínimo: Profesor

    Replace which student groups must complete the intake questionnaire. An empty group_ids list means every student. Does not change the questions, the required switch or the email notice. Always call with dry_run first, show the teacher who would see it, and save only after they confirm. Use list_groups for the ids.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "group_ids": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "description": "Group id (UUID)."
          }
        },
        "dry_run": {
          "description": "true = only report who would see it. Call this first.",
          "type": "boolean"
        }
      },
      "required": [
        "group_ids"
      ]
    }

Enviar avisos y mensajesmessages:write

  • POST /tools/send_announcementEnviar un avisoEscrituraRol mínimo: Profesor

    Send a notice to students: everyone, the students of one course, or a list of students. It appears in their campus notifications and, if chosen, by email and push. Always call with dry_run first, show the teacher the text and the number of recipients, and send only after they confirm.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "body": {
          "type": "string",
          "minLength": 1,
          "maxLength": 5000
        },
        "audience": {
          "type": "string",
          "enum": [
            "all_students",
            "course",
            "students"
          ]
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id, when audience is course (UUID)."
        },
        "student_ids": {
          "description": "When audience is students.",
          "maxItems": 2000,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "link": {
          "description": "Campus path students open when they tap the notice, e.g. /learn/<academy>/courses/<slug>.",
          "type": "string",
          "maxLength": 500,
          "pattern": "^\\/"
        },
        "email": {
          "description": "Also send by email. Default true.",
          "type": "boolean"
        },
        "push": {
          "description": "Also send a push notification. Default true.",
          "type": "boolean"
        },
        "dry_run": {
          "type": "boolean"
        }
      },
      "required": [
        "title",
        "body",
        "audience"
      ]
    }
  • POST /tools/send_direct_messageMensaje privado a un alumnoEscrituraRol mínimo: Profesor

    Write to one student in their private chat in the campus, as the teacher. Show the teacher the text and send only after they confirm. Teachers can write to students of the courses they teach.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "student_id": {
          "type": "string",
          "format": "uuid",
          "description": "Student user id (UUID)."
        },
        "body": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4000
        }
      },
      "required": [
        "student_id",
        "body"
      ]
    }
  • POST /tools/post_in_communityPublicar en la comunidadEscrituraRol mínimo: Profesor

    Publish a text post in the academy community for some courses and/or student groups (at least one). Those students are notified. Show the teacher the exact text and audience and post only after they approve.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "minLength": 1,
          "maxLength": 5000
        },
        "course_ids": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "group_ids": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "pin": {
          "description": "true = pin it to the top of the community.",
          "type": "boolean"
        }
      },
      "required": [
        "text"
      ]
    }
  • POST /tools/comment_in_communityComentar en la comunidadEscrituraRol mínimo: Profesor

    Comment on a community post, or answer one comment with reply_to_comment_id. The post's author and the people in the thread are notified. Show the teacher the text first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "post_id": {
          "type": "string",
          "format": "uuid",
          "description": "Post id (UUID)."
        },
        "text": {
          "type": "string",
          "minLength": 1,
          "maxLength": 3000
        },
        "reply_to_comment_id": {
          "type": "string",
          "format": "uuid",
          "description": "Comment being answered (UUID)."
        }
      },
      "required": [
        "post_id",
        "text"
      ]
    }
  • POST /tools/pin_community_postFijar o soltar una publicaciónEscrituraRol mínimo: Profesor

    Pin a community post to the top (pinned: true) or unpin it. Repeating the call changes nothing.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "post_id": {
          "type": "string",
          "format": "uuid",
          "description": "Post id (UUID)."
        },
        "pinned": {
          "type": "boolean"
        }
      },
      "required": [
        "post_id",
        "pinned"
      ]
    }
  • POST /tools/delete_community_postBorrar una publicaciónBorra datosRol mínimo: Profesor

    Remove a community post, with its comments, for everyone. Staff may remove any student's post. Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "post_id": {
          "type": "string",
          "format": "uuid",
          "description": "Post id (UUID)."
        }
      },
      "required": [
        "post_id"
      ]
    }
  • POST /tools/delete_community_commentBorrar un comentarioBorra datosRol mínimo: Profesor

    Remove a community comment and the replies under it, for everyone. Staff may remove any student's comment. Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "comment_id": {
          "type": "string",
          "format": "uuid",
          "description": "Comment id (UUID)."
        }
      },
      "required": [
        "comment_id"
      ]
    }
  • POST /tools/acknowledge_support_ticketMarcar una solicitud como en cursoEscrituraRol mínimo: Profesor

    Mark an open help request as being handled, which records when the academy first replied. Only works on open requests; repeating it changes nothing.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "ticket_id": {
          "type": "string",
          "format": "uuid",
          "description": "Ticket id (UUID)."
        }
      },
      "required": [
        "ticket_id"
      ]
    }
  • POST /tools/resolve_support_ticketResolver una solicitud de ayudaEscrituraRol mínimo: Profesor

    Close a help request with the answer the student reads in Ayuda. Show the teacher the answer first and resolve only after they approve.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "ticket_id": {
          "type": "string",
          "format": "uuid",
          "description": "Ticket id (UUID)."
        },
        "answer": {
          "type": "string",
          "minLength": 3,
          "maxLength": 4000
        }
      },
      "required": [
        "ticket_id",
        "answer"
      ]
    }
  • POST /tools/send_fundae_questionnaireEnviar el cuestionario de calidad FUNDAEEscrituraRol mínimo: Administrador

    Hand the FUNDAE quality questionnaire to every participant of a group who has not withdrawn. Answers are anonymous. Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "group_id": {
          "type": "string",
          "format": "uuid",
          "description": "FUNDAE group id (UUID)."
        }
      },
      "required": [
        "group_id"
      ]
    }
  • POST /tools/create_channelCrear un canalEscrituraRol mínimo: Profesor

    Create a chat channel in Mensajes for the whole academy, the students of one course, the students of one or more groups, or specific students. A student sees a group channel when they belong to any of those groups. An admin can target any group. An instructor can target only groups they teach (see list_groups teachers). Always call with dry_run first, show the teacher the name and who would see it, and create only after they confirm. Use list_groups for group ids and list_courses for the course id.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 80
        },
        "description": {
          "type": "string",
          "maxLength": 200
        },
        "audience": {
          "type": "string",
          "enum": [
            "academy",
            "course",
            "groups",
            "private"
          ]
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id, when audience is course (UUID)."
        },
        "group_ids": {
          "description": "Student group ids from list_groups, when audience is groups.",
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "student_ids": {
          "description": "Student user ids, when audience is private.",
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "read_only_for_students": {
          "type": "boolean"
        },
        "dry_run": {
          "description": "Preview who would see it. Call this first and confirm with the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "name",
        "audience"
      ]
    }
  • POST /tools/set_channel_archivedArchivar un canalEscrituraRol mínimo: Profesor

    Archive or restore a chat channel. Archived channels disappear for students. An instructor can archive a group channel only when they teach every group on it; admins can archive any channel except General. The academy General channel cannot be archived. Confirm with the teacher first. Use list_channels for the slug.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "archived": {
          "type": "boolean",
          "description": "true = archive, false = restore."
        }
      },
      "required": [
        "slug",
        "archived"
      ]
    }
  • POST /tools/delete_channelEliminar un canalBorra datosRol mínimo: Administrador

    Delete an archived chat channel for good, with every message in it, for everyone. Admins only. The channel must be archived first (set_channel_archived); General and Dudas generales can never be deleted. Refused while FUNDAE participants wrote in it and their group's records must still be kept; it can stay archived instead. Always call with dry_run first, tell the admin the channel name and how many messages will be lost, and delete only after they confirm. Use list_channels with include_archived for the slug.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "dry_run": {
          "description": "Check it can be deleted and count its messages. Call this first and confirm with the admin.",
          "type": "boolean"
        }
      },
      "required": [
        "slug"
      ]
    }

Calificargrading:write

  • POST /tools/start_ai_correctionCorregir una entrega con IAEscrituraRol mínimo: Profesor

    Ask the AI to correct an assignment delivery (source assignment in list_assignment_submissions) whose assignment has AI correction on. It takes a few minutes: then call get_ai_correction with the job_id. The result is a draft the student does not see until the teacher grades with grade_assignment.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "submission_id": {
          "type": "string",
          "format": "uuid",
          "description": "Submission id (UUID)."
        }
      },
      "required": [
        "submission_id"
      ]
    }
  • POST /tools/get_ai_correctionVer la corrección con IAEscrituraRol mínimo: Profesor

    How an AI correction started with start_ai_correction is going. When status is ready it returns the proposed score and feedback, saved as the delivery's unreleased draft (ai_suggestion in get_assignment_submission). Show it to the teacher; grade only after they approve.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "job_id": {
          "type": "string",
          "format": "uuid",
          "description": "Job id from start_ai_correction (UUID)."
        }
      },
      "required": [
        "job_id"
      ]
    }
  • POST /tools/grade_assignmentCalificar una entregaEscrituraRol mínimo: Profesor

    Grade an assignment delivery (source assignment in list_assignment_submissions) with a score and written feedback. The student is notified. Propose the grade and feedback to the teacher and grade only after they approve.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "submission_id": {
          "type": "string",
          "format": "uuid",
          "description": "Submission id (UUID)."
        },
        "score": {
          "anyOf": [
            {
              "type": "number",
              "minimum": 0,
              "maximum": 1000
            },
            {
              "type": "null"
            }
          ],
          "description": "Points, up to the assignment's max_score. null = feedback only."
        },
        "feedback": {
          "type": "string",
          "maxLength": 5000
        }
      },
      "required": [
        "submission_id",
        "score"
      ]
    }
  • POST /tools/grade_quiz_essayCorregir una respuesta de desarrolloEscrituraRol mínimo: Profesor

    Mark an open answer in a quiz (source quiz_essay in list_assignment_submissions) as correct or incorrect, with feedback. The attempt's score is recalculated. Propose it to the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "submission_id": {
          "type": "string",
          "format": "uuid",
          "description": "The quiz_essay submission id (UUID)."
        },
        "correct": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "description": "true = correct, false = incorrect, null = back to pending."
        },
        "feedback": {
          "type": "string",
          "maxLength": 5000
        }
      },
      "required": [
        "submission_id",
        "correct"
      ]
    }

Clases en directolive:write

  • POST /tools/schedule_live_classProgramar una clase en directoEscrituraRol mínimo: Profesor

    Schedule a live class for the students of one or more courses, of student groups, or for one student. Course and group classes can be narrowed: a course class with group_ids is only for the course students in those groups (e.g. a USA or Europe time slot); a group class with course_ids is only for group members enrolled in one of those courses; members of excluded_group_ids never see it, even when another of their groups is listed, so only exclude a group none of whose members should see the class (e.g. a group that attends no live classes). With platform google_meet or zoom and the academy's integration connected, the meeting link is created automatically; otherwise pass meeting_url. `recording` says where the recording goes (default: not kept); for a lesson, take module and lesson ids from get_course_outline. Students get the usual reminders. Confirm date, time, timezone, who sees it and where the recording goes with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "minLength": 2,
          "maxLength": 200
        },
        "description": {
          "type": "string",
          "maxLength": 5000
        },
        "starts_at": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:\\d{2})$",
          "description": "Start, ISO 8601 with offset."
        },
        "duration_minutes": {
          "description": "Default 60.",
          "type": "integer",
          "minimum": 5,
          "maximum": 1440
        },
        "timezone": {
          "description": "IANA zone for reminders, e.g. Europe/Madrid. Default Europe/Madrid.",
          "type": "string",
          "maxLength": 64
        },
        "audience": {
          "type": "string",
          "enum": [
            "course",
            "group",
            "student"
          ]
        },
        "course_ids": {
          "description": "Course audience: the courses. Group audience: optional, only members enrolled in one of them.",
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "group_ids": {
          "description": "Group audience: the groups. Course audience: optional, only course students in one of them.",
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "excluded_group_ids": {
          "description": "Members of these groups never see the class.",
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "student_id": {
          "type": "string",
          "format": "uuid"
        },
        "platform": {
          "description": "Default google_meet. Meet, Zoom and Teams create the meeting when the academy connected them in Integraciones (Teams: Microsoft Teams); otherwise pass meeting_url.",
          "type": "string",
          "enum": [
            "google_meet",
            "zoom",
            "teams",
            "other"
          ]
        },
        "meeting_url": {
          "description": "Existing meeting link. Skips automatic creation.",
          "type": "string",
          "format": "uri"
        },
        "repeat_weekly_until": {
          "description": "Repeat every week until this day.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "recording": {
          "type": "object",
          "properties": {
            "save": {
              "type": "string",
              "enum": [
                "none",
                "provider_only",
                "my_classes",
                "course_lesson"
              ],
              "description": "none = do not keep it; provider_only = upload to the academy's video destination only (Vídeos, Bunny or Vimeo); my_classes = the students' «Mis clases» (1:1: their private course); course_lesson = a lesson in a course module."
            },
            "course_id": {
              "type": "string",
              "format": "uuid",
              "description": "course_lesson: course that gets the lesson. Default: the class's course (UUID)."
            },
            "module_id": {
              "type": "string",
              "format": "uuid",
              "description": "course_lesson: module for the lesson (ids from get_course_outline) (UUID)."
            },
            "lesson_title": {
              "description": "course_lesson: title of the new lesson. Default: the class title.",
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "lesson_id": {
              "type": "string",
              "format": "uuid",
              "description": "course_lesson: append the recording to this existing lesson instead of creating one (UUID)."
            },
            "only_class_audience": {
              "description": "course_lesson, new lesson: true (default) = only the students who see the class see the lesson (its included groups; its excluded groups never do); false = every student of the course.",
              "type": "boolean"
            }
          },
          "required": [
            "save"
          ],
          "description": "«Dónde guardar la grabación». Meet, Zoom or Teams recordings (of meetings the academy created) are fetched after the class and uploaded to the academy's Vídeos library, or its own Bunny or Vimeo. A new lesson is created when the recording arrives, not when the class is scheduled."
        }
      },
      "required": [
        "title",
        "starts_at",
        "audience"
      ]
    }
  • POST /tools/cancel_live_classCancelar una clase en directoBorra datosRol mínimo: Profesor

    Cancel a live class. For a weekly series choose this one, this and the following, or all. Students are told it is cancelled. Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "live_class_id": {
          "type": "string",
          "format": "uuid",
          "description": "Live class id (UUID)."
        },
        "scope": {
          "description": "For recurring classes. Default this.",
          "type": "string",
          "enum": [
            "this",
            "following",
            "all"
          ]
        }
      },
      "required": [
        "live_class_id"
      ]
    }
  • POST /tools/update_live_classCambiar una clase en directoEscrituraRol mínimo: Profesor

    Change a scheduled live class: move it (starts_at, duration, timezone), rename it, change its link, host or who sees it, choose where its recording is saved (recording), or publish a recording link you already have (recording_url, e.g. a Vimeo, YouTube or Bunny URL). Who sees it can change completely, like the form's «Audiencia»: `audience` switches between course, group and student classes (e.g. a class for the group Europa Tarde becomes one for every student of the course Prueba: audience course, course_ids [Prueba]). Never cancel and recreate a class to change its audience. Only the fields you pass change; everything else stays as the class form has it. For a weekly series choose scope: this, following or all. Students get the usual updated reminders. The answer's `who_sees` is the form's «Verán esta clase» sentence. Confirm the change with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "live_class_id": {
          "type": "string",
          "format": "uuid",
          "description": "Live class id (UUID)."
        },
        "scope": {
          "description": "For recurring classes. Default this.",
          "type": "string",
          "enum": [
            "this",
            "following",
            "all"
          ]
        },
        "audience": {
          "description": "New audience type. Switching drops the groups the class was for unless you pass group_ids; course_ids carry over between course and group classes.",
          "type": "string",
          "enum": [
            "course",
            "group",
            "student"
          ]
        },
        "student_id": {
          "type": "string",
          "format": "uuid",
          "description": "Student user id, when audience becomes student (UUID)."
        },
        "title": {
          "type": "string",
          "minLength": 2,
          "maxLength": 200
        },
        "description": {
          "type": "string",
          "maxLength": 5000
        },
        "starts_at": {
          "description": "New start, ISO 8601 with offset.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:\\d{2})$"
        },
        "duration_minutes": {
          "type": "integer",
          "minimum": 5,
          "maximum": 1440
        },
        "timezone": {
          "type": "string",
          "maxLength": 64
        },
        "meeting_url": {
          "description": "Use this link instead of creating the meeting automatically.",
          "type": "string",
          "format": "uri"
        },
        "host_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "description": "Staff user id of the new host (UUID)."
            },
            {
              "type": "null"
            }
          ]
        },
        "course_ids": {
          "description": "Course class: the courses. Group class: narrowing courses.",
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "group_ids": {
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "excluded_group_ids": {
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "recording": {
          "type": "object",
          "properties": {
            "save": {
              "type": "string",
              "enum": [
                "none",
                "provider_only",
                "my_classes",
                "course_lesson"
              ],
              "description": "none = do not keep it; provider_only = upload to the academy's video destination only (Vídeos, Bunny or Vimeo); my_classes = the students' «Mis clases» (1:1: their private course); course_lesson = a lesson in a course module."
            },
            "course_id": {
              "type": "string",
              "format": "uuid",
              "description": "course_lesson: course that gets the lesson. Default: the class's course (UUID)."
            },
            "module_id": {
              "type": "string",
              "format": "uuid",
              "description": "course_lesson: module for the lesson (ids from get_course_outline) (UUID)."
            },
            "lesson_title": {
              "description": "course_lesson: title of the new lesson. Default: the class title.",
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            },
            "lesson_id": {
              "type": "string",
              "format": "uuid",
              "description": "course_lesson: append the recording to this existing lesson instead of creating one (UUID)."
            },
            "only_class_audience": {
              "description": "course_lesson, new lesson: true (default) = only the students who see the class see the lesson (its included groups; its excluded groups never do); false = every student of the course.",
              "type": "boolean"
            }
          },
          "required": [
            "save"
          ],
          "description": "«Dónde guardar la grabación». Meet, Zoom or Teams recordings (of meetings the academy created) are fetched after the class and uploaded to the academy's Vídeos library, or its own Bunny or Vimeo. A new lesson is created when the recording arrives, not when the class is scheduled."
        },
        "recording_url": {
          "description": "Recording link students see. null removes it.",
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2000,
              "format": "uri"
            },
            {
              "type": "null"
            }
          ]
        },
        "recording_visible": {
          "description": "false hides the recording from students without deleting it.",
          "type": "boolean"
        },
        "notify_when_ready": {
          "description": "Email students when the recording is ready.",
          "type": "boolean"
        },
        "send_transcript": {
          "description": "Meet: transcript and Gemini notes in the after-class email.",
          "type": "boolean"
        },
        "email_recording": {
          "description": "Meet: share the Drive recording link in that email.",
          "type": "boolean"
        }
      },
      "required": [
        "live_class_id"
      ]
    }
  • POST /tools/duplicate_live_classDuplicar una clase en directoEscrituraRol mínimo: Profesor

    Copy a live class one week later, with the same audience, recording placement and reminders, titled «… (copia)». It has no meeting link yet: change the date, title or link afterwards with update_live_class. A 1:1 class uses one of the student's mentorship credits when the academy counts them.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "live_class_id": {
          "type": "string",
          "format": "uuid",
          "description": "Live class id (UUID)."
        }
      },
      "required": [
        "live_class_id"
      ]
    }
  • POST /tools/delete_live_classBorrar una clase en directoBorra datosRol mínimo: Profesor

    Delete a live class for good, with its attendance and materials; its Google Calendar event is removed. Students are not told: to tell them, use cancel_live_class instead. For a weekly series choose this, following or all. Only on the teacher's explicit request, after confirming.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "live_class_id": {
          "type": "string",
          "format": "uuid",
          "description": "Live class id (UUID)."
        },
        "scope": {
          "description": "For recurring classes. Default this.",
          "type": "string",
          "enum": [
            "this",
            "following",
            "all"
          ]
        }
      },
      "required": [
        "live_class_id"
      ]
    }
  • POST /tools/add_live_class_materialAñadir material a una claseEscrituraRol mínimo: Profesor

    Attach a link (slides, a PDF, a document) to a live class. Students see it according to the class's materials setting (always, while live, or after). Files cannot be uploaded from here; use a link.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "live_class_id": {
          "type": "string",
          "format": "uuid",
          "description": "Live class id (UUID)."
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "url": {
          "type": "string",
          "maxLength": 2000,
          "format": "uri"
        }
      },
      "required": [
        "live_class_id",
        "title",
        "url"
      ]
    }
  • POST /tools/remove_live_class_materialQuitar material de una claseBorra datosRol mínimo: Profesor

    Remove one material from a live class (material ids come from get_live_class). Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "live_class_id": {
          "type": "string",
          "format": "uuid",
          "description": "Live class id (UUID)."
        },
        "material_id": {
          "type": "string",
          "format": "uuid",
          "description": "Material id (UUID)."
        }
      },
      "required": [
        "live_class_id",
        "material_id"
      ]
    }
  • POST /tools/record_live_attendanceApuntar asistencia a manoEscrituraRol mínimo: Profesor

    Record that students attended a live class, with the minutes they were there, when no report can prove it (a class by phone, a Meet without the report). It is stored as manual attendance, apart from Zoom or Meet data. For Zoom classes prefer sync_live_attendance. Confirm the list with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "live_class_id": {
          "type": "string",
          "format": "uuid",
          "description": "Live class id (UUID)."
        },
        "attendees": {
          "minItems": 1,
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "student_id": {
                "type": "string",
                "format": "uuid",
                "description": "Student user id (UUID)."
              },
              "minutes": {
                "type": "integer",
                "minimum": 1,
                "maximum": 600
              }
            },
            "required": [
              "student_id",
              "minutes"
            ]
          }
        }
      },
      "required": [
        "live_class_id",
        "attendees"
      ]
    }
  • POST /tools/sync_live_attendanceTraer la asistencia de Zoom o TeamsEscrituraRol mínimo: Profesor

    Fetch the provider's attendance report of a finished class now instead of waiting for the automatic sync: the Zoom participant report or the Microsoft Teams attendance report. Only for classes on Zoom or Teams whose meeting the academy created (a pasted link has no report we can read). Teams guests who joined without an account come back unmatched, with their name only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "live_class_id": {
          "type": "string",
          "format": "uuid",
          "description": "Live class id (UUID)."
        }
      },
      "required": [
        "live_class_id"
      ]
    }
  • POST /tools/resend_live_class_remindersReenviar el recordatorio de una claseEscrituraRol mínimo: Profesor

    Send the class reminder again now to everyone who sees the class, by email, in the campus, or both. Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "live_class_id": {
          "type": "string",
          "format": "uuid",
          "description": "Live class id (UUID)."
        },
        "channel": {
          "description": "Default: the class's own reminder setting.",
          "type": "string",
          "enum": [
            "email",
            "in_app",
            "both"
          ]
        }
      },
      "required": [
        "live_class_id"
      ]
    }
  • POST /tools/open_tutoring_windowAbrir horario de citasEscrituraRol mínimo: Profesor

    Open a weekly office-hour schedule for one or more courses and/or student groups the teacher teaches, so their students can book a call. Every student enrolled in any of the courses or in any of the groups sees the slots; pass at least one course_ids or group_ids entry. Hours are mainland Spain (Europe/Madrid). channel zoom or meet creates the Zoom or Google Meet meeting when a student books (that integration must already be connected); channel link reuses the teacher's own meeting_url for every appointment; channel phone asks the student for their number when booking and the teacher calls them. Always call with dry_run true first, tell the teacher the courses and groups, weekday, hours, minutes per appointment and channel, and save only after they confirm (dry_run false or omitted). Repeating the same schedule returns the existing one and does not open a second. An instructor can only open courses they are assigned to and groups they teach. This is not schedule_live_class: that creates one class, this opens bookable slices.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_ids": {
          "description": "Courses whose enrolled students can book.",
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "group_ids": {
          "description": "Student groups whose members can book.",
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "weekday": {
          "type": "integer",
          "minimum": 0,
          "maximum": 6,
          "description": "0 Sunday … 6 Saturday, mainland Spain."
        },
        "start": {
          "type": "string",
          "description": "Start time HH:MM, mainland Spain."
        },
        "end": {
          "type": "string",
          "description": "End time HH:MM, mainland Spain. Must fit at least one appointment."
        },
        "slot_minutes": {
          "type": "integer",
          "minimum": 10,
          "maximum": 120,
          "description": "Length of each bookable appointment, e.g. 20 or 30."
        },
        "channel": {
          "type": "string",
          "enum": [
            "zoom",
            "meet",
            "link",
            "phone"
          ]
        },
        "meeting_url": {
          "description": "The teacher's own meeting link. Required when channel is link.",
          "type": "string",
          "maxLength": 500
        },
        "note": {
          "description": "Shown to the student.",
          "type": "string",
          "maxLength": 500
        },
        "active_from": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "description": "First day the schedule can be booked, YYYY-MM-DD."
        },
        "active_until": {
          "description": "Last day, inclusive. Omit if it does not end.",
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "dry_run": {
          "description": "Preview only. Call this first and wait for the teacher to confirm.",
          "type": "boolean"
        }
      },
      "required": [
        "weekday",
        "start",
        "end",
        "slot_minutes",
        "channel",
        "active_from"
      ]
    }

Ver el contenido de los cursosauthoring:read

  • POST /tools/list_course_contentCursos cuyo contenido puedes verLecturaRol mínimo: Profesor

    Courses whose content you can read (modules, lessons, quizzes). Use the ids with get_course_outline. Read-only: Claude cannot change course content. If asked to, tell the teacher to make the change in the course editor.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {},
      "additionalProperties": false
    }
  • POST /tools/get_course_outlineÍndice de un cursoLecturaRol mínimo: Profesor

    Modules and lessons of one course, with their ids. Read-only: Claude cannot change course content. If asked to, tell the teacher to make the change in the course editor.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "courseId": {
          "type": "string"
        }
      },
      "required": [
        "courseId"
      ],
      "additionalProperties": false
    }
  • POST /tools/get_lessonVer una lecciónLecturaRol mínimo: Profesor

    Full content of one lesson: text, media, quizzes and their questions. Read-only: Claude cannot change course content. If asked to, tell the teacher to make the change in the course editor.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "lessonId": {
          "type": "string"
        }
      },
      "required": [
        "lessonId"
      ],
      "additionalProperties": false
    }
  • POST /tools/get_video_chaptersCapítulos de un vídeoLecturaRol mínimo: Profesor

    Chapters of the video blocks in one lesson: the titles and times students can jump to. Pass lesson_id from get_course_outline. Pass block_id (from a previous call) when the lesson has more than one video. Does not generate chapters.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "lesson_id": {
          "type": "string",
          "format": "uuid",
          "description": "Lesson id (UUID)."
        },
        "block_id": {
          "type": "string",
          "format": "uuid",
          "description": "Video block id, when the lesson has more than one video (UUID)."
        }
      },
      "required": [
        "lesson_id"
      ]
    }

Gestionar el banco de preguntasquestion_bank:write

  • POST /tools/create_bank_questionsCrear preguntas en el bancoEscrituraRol mínimo: Profesor

    Add up to 40 multiple-choice questions to the question bank, optionally in a category and tagged with themes so they reach students' Tests by theme. For true/false use two options. Every question is checked before anything is saved; if one is wrong nothing is created. Call with dry_run first, show the teacher the questions and confirm.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "questions": {
          "minItems": 1,
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "prompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4000,
                "description": "The question as the student reads it."
              },
              "options": {
                "minItems": 2,
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1000
                    },
                    "correct": {
                      "description": "true for every right answer.",
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "text"
                  ]
                },
                "description": "Answer options in display order; mark at least one correct. True/false = two options."
              },
              "explanation": {
                "description": "Shown to the student after answering.",
                "type": "string",
                "maxLength": 4000
              },
              "name": {
                "description": "Short internal name. Defaults to the start of the wording.",
                "type": "string",
                "maxLength": 280
              }
            },
            "required": [
              "prompt",
              "options"
            ]
          }
        },
        "category_id": {
          "type": "string",
          "format": "uuid",
          "description": "Category to file them in (UUID)."
        },
        "theme_ids": {
          "description": "Themes to tag every question with.",
          "maxItems": 10,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "dry_run": {
          "description": "true = only report what would happen. Use it first and show the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "questions"
      ]
    }
  • POST /tools/create_bank_categoryCrear una categoría en el bancoEscrituraRol mínimo: Profesor

    Create a folder in the question bank, optionally inside another category and tied to a course. A subcategory inherits its parent's course unless course_id is given. Confirm the name with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 280
        },
        "parent_id": {
          "type": "string",
          "format": "uuid",
          "description": "Parent category (UUID)."
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course (UUID)."
        },
        "description": {
          "type": "string",
          "maxLength": 4000
        }
      },
      "required": [
        "name"
      ]
    }
  • POST /tools/create_bank_themeCrear un temaEscrituraRol mínimo: Profesor

    Create a theme: the tag students choose in Tests by theme. Names are unique (case-insensitive). Tag questions with it using set_question_themes or theme_ids in create_bank_questions.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 280
        }
      },
      "required": [
        "name"
      ]
    }
  • POST /tools/set_question_themesAsignar o quitar un tema a preguntasEscrituraRol mínimo: Profesor

    Tag (assigned: true) or untag (assigned: false) bank questions with one theme. Tagging changes which questions students get in Tests by theme; it never changes course quizzes. Ids not in the bank are ignored. Repeating the call changes nothing.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "theme_id": {
          "type": "string",
          "format": "uuid",
          "description": "Theme (UUID)."
        },
        "question_ids": {
          "minItems": 1,
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "assigned": {
          "type": "boolean"
        }
      },
      "required": [
        "theme_id",
        "question_ids",
        "assigned"
      ]
    }
  • POST /tools/update_bank_questionEditar una pregunta del bancoEscrituraRol mínimo: Profesor

    Change the wording, options, explanation, name, category or syllabus location of one bank question. Refused when a course quiz uses it (editable_by_claude false in list_bank_questions). Giving options rewrites them all and turns the question into multiple choice. Send explanation "" to remove it, category_id null to take it out of its category. syllabus sets where the answer is: lesson_id from get_course_outline, and optionally a video or PDF of that lesson (block_id) with a minute (12:30) or a PDF page. clear_syllabus removes it. When changing the location, call with dry_run first, show the teacher syllabus_location and save only after they confirm. Show the teacher any other change and confirm first too.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "question_id": {
          "type": "string",
          "format": "uuid",
          "description": "Bank question (UUID)."
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 280
        },
        "prompt": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4000,
          "description": "The question as the student reads it."
        },
        "options": {
          "minItems": 2,
          "maxItems": 10,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              },
              "correct": {
                "description": "true for every right answer.",
                "type": "boolean"
              }
            },
            "required": [
              "text"
            ]
          },
          "description": "Answer options in display order; mark at least one correct. True/false = two options."
        },
        "explanation": {
          "description": "Shown to the student after answering.",
          "type": "string",
          "maxLength": 4000
        },
        "category_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "description": "Category (UUID)."
            },
            {
              "type": "null"
            }
          ]
        },
        "syllabus": {
          "description": "Replaces where the answer is in the syllabus.",
          "type": "object",
          "properties": {
            "lesson_id": {
              "type": "string",
              "format": "uuid",
              "description": "Lesson from get_course_outline (UUID)."
            },
            "block_id": {
              "type": "string",
              "format": "uuid",
              "description": "Video or PDF of that lesson. Omit for the whole lesson. (UUID)."
            },
            "minute": {
              "description": "Where the video opens, e.g. 12:30. A bare 12 means minute 12. Only with a video block.",
              "type": "string",
              "maxLength": 20
            },
            "page": {
              "description": "PDF page. Only with a PDF block.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            }
          },
          "required": [
            "lesson_id"
          ]
        },
        "clear_syllabus": {
          "description": "Remove the location. Do not send it together with syllabus.",
          "type": "boolean"
        },
        "dry_run": {
          "description": "true = only report what would happen. Use it first and show the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "question_id"
      ]
    }
  • POST /tools/delete_bank_questionsBorrar preguntas del bancoBorra datosRol mínimo: Profesor

    Delete bank questions. Questions a course quiz uses are skipped and reported; reusable tests that contain a deleted question lose it. Call with dry_run first, show the teacher what would go and confirm.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "question_ids": {
          "minItems": 1,
          "maxItems": 40,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "dry_run": {
          "description": "true = only report what would happen. Use it first and show the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "question_ids"
      ]
    }
  • POST /tools/delete_bank_themeBorrar un temaBorra datosRol mínimo: Profesor

    Delete a theme. Its questions stay in the bank but lose the tag, and students no longer see the theme in Tests by theme. Course quizzes are not affected. Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "theme_id": {
          "type": "string",
          "format": "uuid",
          "description": "Theme (UUID)."
        }
      },
      "required": [
        "theme_id"
      ]
    }
  • POST /tools/create_reusable_testCrear un test reutilizableEscrituraRol mínimo: Profesor

    Save a set of bank questions as a reusable test (at most 1000 questions, in the order given). Find the questions with list_bank_questions and confirm the list with the teacher first. It does not add the test to any lesson.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 280
        },
        "description": {
          "type": "string",
          "maxLength": 4000
        },
        "question_ids": {
          "minItems": 1,
          "maxItems": 1000,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "category_id": {
          "type": "string",
          "format": "uuid",
          "description": "Category (UUID)."
        },
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course (UUID)."
        },
        "passing_score_percent": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "max_attempts": {
          "type": "integer",
          "minimum": 1,
          "maximum": 50
        },
        "time_limit_minutes": {
          "description": "0 = no limit.",
          "type": "integer",
          "minimum": 0,
          "maximum": 1440
        },
        "show_feedback": {
          "type": "boolean"
        },
        "show_correct_answers": {
          "type": "boolean"
        }
      },
      "required": [
        "name",
        "question_ids"
      ]
    }
  • POST /tools/update_reusable_testEditar un test reutilizableEscrituraRol mínimo: Profesor

    Change a reusable test. Only the fields you send change. question_ids replaces the whole list, so read get_reusable_test first and send every question to keep. Lessons that already copied it are not affected.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "reusable_test_id": {
          "type": "string",
          "format": "uuid",
          "description": "Reusable test (UUID)."
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 280
        },
        "description": {
          "type": "string",
          "maxLength": 4000
        },
        "question_ids": {
          "minItems": 1,
          "maxItems": 1000,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "category_id": {
          "description": "null = no category.",
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "description": "Category (UUID)."
            },
            {
              "type": "null"
            }
          ]
        },
        "course_id": {
          "description": "null = no course.",
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "description": "Course (UUID)."
            },
            {
              "type": "null"
            }
          ]
        },
        "passing_score_percent": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "max_attempts": {
          "type": "integer",
          "minimum": 1,
          "maximum": 50
        },
        "time_limit_minutes": {
          "description": "0 = no limit.",
          "type": "integer",
          "minimum": 0,
          "maximum": 1440
        },
        "show_feedback": {
          "type": "boolean"
        },
        "show_correct_answers": {
          "type": "boolean"
        }
      },
      "required": [
        "reusable_test_id"
      ]
    }
  • POST /tools/delete_reusable_testBorrar un test reutilizableBorra datosRol mínimo: Profesor

    Delete a reusable test. Its questions stay in the bank and lessons that copied it keep their quiz. Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "reusable_test_id": {
          "type": "string",
          "format": "uuid",
          "description": "Reusable test (UUID)."
        }
      },
      "required": [
        "reusable_test_id"
      ]
    }
  • POST /tools/update_bank_categoryEditar una categoría del bancoEscrituraRol mínimo: Profesor

    Rename a question bank category, change its description or course, or move it (with its subcategories) under another category or to the top level (parent_id: null). A move that would take questions out of a course quiz's random draw is refused, because that would change the quiz.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "category_id": {
          "type": "string",
          "format": "uuid",
          "description": "Category (UUID)."
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 280
        },
        "description": {
          "type": "string",
          "maxLength": 4000
        },
        "course_id": {
          "description": "null = not tied to a course.",
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "description": "Course (UUID)."
            },
            {
              "type": "null"
            }
          ]
        },
        "parent_id": {
          "description": "null = top level.",
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "description": "New parent category (UUID)."
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "category_id"
      ]
    }
  • POST /tools/delete_bank_categoryBorrar una categoría del bancoBorra datosRol mínimo: Profesor

    Delete a question bank category. Its questions stay in the bank without a category and its subcategories move to the top level. Refused when a course quiz draws questions from it at random. Call with dry_run first and confirm with the teacher.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "category_id": {
          "type": "string",
          "format": "uuid",
          "description": "Category (UUID)."
        },
        "dry_run": {
          "description": "true = only report what would happen.",
          "type": "boolean"
        }
      },
      "required": [
        "category_id"
      ]
    }
  • POST /tools/set_questions_courseVincular preguntas a un cursoEscrituraRol mínimo: Profesor

    Link (linked: true) or unlink (linked: false) bank questions to a course, which decides where they show when the bank is filtered by course. It does not add or remove them from any quiz; an unlinked question a course quiz still uses keeps showing for that course. Ids not in the bank are ignored. Repeating the call changes nothing.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course (UUID)."
        },
        "question_ids": {
          "minItems": 1,
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "linked": {
          "type": "boolean"
        }
      },
      "required": [
        "course_id",
        "question_ids",
        "linked"
      ]
    }

Equipo y ajustessettings:write

  • POST /tools/set_next_invoice_numberCambiar el número de la próxima facturaEscrituraRol mínimo: Administrador

    Set the number a company's next sale invoice takes this year, e.g. 101 makes the next one F-YYYY-0101. For academies that already invoiced this year with other software. Admin only. Only forward: numbers already used this year are refused. When the academy bills through more than one company, pass account_id from get_invoice_numbering. Always call with dry_run first, show the teacher the resulting invoice number, and save only after they confirm. Idempotent. Does not renumber invoices already issued and does not touch corrective invoices (R-).

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "next_number": {
          "type": "integer",
          "minimum": 1,
          "maximum": 999999,
          "description": "Number of the next sale invoice, e.g. 101 for F-YYYY-0101."
        },
        "account_id": {
          "type": "string",
          "format": "uuid",
          "description": "Company id from get_invoice_numbering. Required when the academy has more than one. (UUID)."
        },
        "dry_run": {
          "description": "Preview only. Call this first and confirm with the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "next_number"
      ]
    }
  • POST /tools/set_offer_availabilityOcultar un producto o limitar sus ventasEscrituraRol mínimo: Administrador

    Hide a Pagos product from course pages (it then sells only through its payment link, e.g. to offer it to a few people) and/or set its maximum of sales, as «Disponibilidad» does in Pagos. Admin only. Omit a field to keep it as it is; max_sales null lifts the cap. The cap is a total, not per person, cannot go below the sales already made, and equal to them closes the link now. Raising it on a sold-out product opens the link again. Always call with dry_run first, tell the teacher what will change, and save only after they confirm. Idempotent.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "offer_id": {
          "type": "string",
          "format": "uuid",
          "description": "Product id from list_payment_offers (UUID)."
        },
        "hidden": {
          "description": "true: off course pages, sold only through the payment link.",
          "type": "boolean"
        },
        "max_sales": {
          "description": "Total sales allowed. null lifts the cap. Omit to keep the current one.",
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            },
            {
              "type": "null"
            }
          ]
        },
        "dry_run": {
          "description": "Preview only. Call this first and confirm with the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "offer_id"
      ]
    }
  • POST /tools/set_member_accessCambiar qué hace alguien del equipoEscrituraRol mínimo: Administrador

    Change what one staff member does, as on their page under Equipo: grading_scope (teachers only; admins and owners always grade everything), the courses they edit, and their jobs in student groups. Each field you leave out stays as it is; course_ids and groups, when given, are the complete new lists (an empty list clears them). Read get_member_access first. Always call with dry_run first, show the teacher the before and after, and save only after they confirm. Admins only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email"
        },
        "grading_scope": {
          "description": "groups = solo sus grupos, courses = solo sus cursos, academy = toda la academia.",
          "type": "string",
          "enum": [
            "groups",
            "courses",
            "academy"
          ]
        },
        "course_ids": {
          "description": "Every course they should edit. Omit to keep their courses.",
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "description": "Course id (UUID)."
          }
        },
        "groups": {
          "description": "Every group where they have a job. Omit to keep their groups.",
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "group_id": {
                "type": "string",
                "format": "uuid",
                "description": "Group id (UUID)."
              },
              "corrects": {
                "type": "boolean",
                "description": "Grades the submissions of this group's students."
              },
              "answers_messages": {
                "type": "boolean",
                "description": "This group's students can message them privately."
              }
            },
            "required": [
              "group_id",
              "corrects",
              "answers_messages"
            ]
          }
        },
        "dry_run": {
          "type": "boolean",
          "description": "true = only show what would change."
        }
      },
      "required": [
        "email",
        "dry_run"
      ]
    }
  • POST /tools/invite_team_membersInvitar al equipoEscrituraRol mínimo: Profesor

    Give people a staff role in the academy (up to 50 emails). New people get an email to set their password; existing users get a notice. A teacher can only invite teachers; admins can also invite admins and only owners invite owners. Through an API key only the teacher role can be given. course_ids assigns new teachers to those courses (admins only). Confirm emails and role with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "emails": {
          "minItems": 1,
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "format": "email"
          }
        },
        "role": {
          "type": "string",
          "enum": [
            "owner",
            "admin",
            "instructor"
          ],
          "description": "owner = propietario, admin = administrador, instructor = profesor."
        },
        "course_ids": {
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "send_invite": {
          "description": "false = add them without emailing. Default true.",
          "type": "boolean"
        }
      },
      "required": [
        "emails",
        "role"
      ]
    }
  • POST /tools/change_team_roleCambiar el rol de alguien del equipoEscrituraRol mínimo: Administrador

    Change a staff member's role. Only owners change an admin's or owner's role, nobody changes their own, and the academy always keeps one owner. Through an API key the only role that can be given is teacher. Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email"
        },
        "role": {
          "type": "string",
          "enum": [
            "owner",
            "admin",
            "instructor"
          ],
          "description": "owner = propietario, admin = administrador, instructor = profesor."
        }
      },
      "required": [
        "email",
        "role"
      ]
    }
  • POST /tools/remove_team_memberQuitar a alguien del equipoBorra datosRol mínimo: Administrador

    Take away someone's staff access. If they are also enrolled in a course they stay as a student; otherwise they leave the academy. Only owners remove admins or owners, nobody removes themselves, and the academy always keeps one owner. Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email"
        }
      },
      "required": [
        "email"
      ]
    }
  • POST /tools/assign_staff_roleDar un rol personalizado a alguien del equipoEscrituraRol mínimo: Administrador

    Give a staff member one of the academy's custom roles, or take it away with staff_role_id null so they see everything their level allows. The person's level becomes the role's base level (instructor or admin), with the same rules as change_team_role: only owners change admins, nobody changes their own role, and you cannot give access to sections your own role lacks. Through an API key only instructor-based roles can be given. Confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email"
        },
        "staff_role_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid"
            },
            {
              "type": "null"
            }
          ],
          "description": "Custom role id from list_staff_roles; null removes the custom role."
        }
      },
      "required": [
        "email",
        "staff_role_id"
      ]
    }
  • POST /tools/set_notification_settingsCambiar los avisos por defecto de la academiaEscrituraRol mínimo: Administrador

    Turn channels on or off in the academy's default notification settings. Students get the change; staff members who set their own notifications in their profile keep theirs. Only what you send changes. Admins only. Read get_notification_settings first and confirm with the teacher.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "changes": {
          "minItems": 1,
          "maxItems": 18,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "notification": {
                "type": "string",
                "enum": [
                  "assignment_submitted",
                  "assignment_graded",
                  "live_class_reminder",
                  "live_class_recording_ready",
                  "community_post_like",
                  "community_post_comment",
                  "community_post_reply",
                  "community_comment_like",
                  "community_new_post",
                  "community_mention_reply",
                  "lesson_comment_new",
                  "lesson_comment_reply",
                  "lesson_comment_like",
                  "question_comment_new",
                  "question_comment_reply",
                  "channel_message",
                  "staff_announcement",
                  "app_notice"
                ]
              },
              "in_app": {
                "type": "boolean"
              },
              "email": {
                "type": "boolean"
              },
              "push": {
                "type": "boolean"
              }
            },
            "required": [
              "notification"
            ]
          }
        }
      },
      "required": [
        "changes"
      ]
    }
  • POST /tools/set_zoom_auto_recordGrabar las clases de Zoom al empezarEscrituraRol mínimo: Administrador

    Turn cloud recording on or off for the academy's Zoom meetings, including classes already created that have not finished. Admins only. Always call with dry_run first, tell the teacher how many upcoming classes would change, and save only after they confirm. Does nothing if Zoom is not connected. Does not buy Zoom licenses: overlapping classes still need one Pro license each. Idempotent.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "record_on_start": {
          "type": "boolean"
        },
        "dry_run": {
          "description": "Preview only. Call this first and confirm with the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "record_on_start"
      ]
    }
  • POST /tools/set_teams_auto_recordGrabar las clases de Teams al empezarEscrituraRol mínimo: Administrador

    Turn record-on-start on or off for the academy's Teams meetings (Teams also transcribes), including classes already created that have not finished. Admins only. Always call with dry_run first, tell the teacher how many upcoming classes would change, and save only after they confirm. Does nothing if Teams is not connected. Idempotent.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "record_on_start": {
          "type": "boolean"
        },
        "dry_run": {
          "description": "Preview only. Call this first and confirm with the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "record_on_start"
      ]
    }
  • POST /tools/set_student_exit_urlCambiar la URL de vueltaEscrituraRol mínimo: Administrador

    Set or clear the https address students return to when they click Volver or sign out on the academy's own domain. Admins only. Always call with dry_run first, show the teacher the address, and save only after they confirm. Pass an empty string to clear it and use the parent site again. Idempotent. Does not change DNS or the campus domain.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "https address, or a host without a scheme. Empty string clears the setting."
        },
        "dry_run": {
          "description": "Preview only. Call this first and confirm with the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "url"
      ]
    }
  • POST /tools/set_oposiciones_settingsCambiar los ajustes de oposicionesEscrituraRol mínimo: Administrador

    Turn the students' vacancies map on or off, set the academy's default oposiciones, or set one course's oposiciones and map. Only what you send changes; an empty list means every oposición (academy) or the academy default (course). Use keys from get_oposiciones_settings and confirm with the teacher first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "students_see_map": {
          "type": "boolean"
        },
        "default_oposiciones": {
          "maxItems": 64,
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 64
          }
        },
        "courses": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "course_id": {
                "type": "string",
                "format": "uuid",
                "description": "Course id (UUID)."
              },
              "oposiciones": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 64
                }
              },
              "students_see_map": {
                "type": "boolean"
              }
            },
            "required": [
              "course_id"
            ]
          }
        }
      }
    }
  • POST /tools/set_plan_module_excludedSacar módulos del plan de estudioEscrituraRol mínimo: Profesor

    Take whole modules of a course out of the study plan, or bring them back. A module out of the plan schedules none of its lessons, including lessons added to it later (for example a module that collects live-class recordings). Bringing it back restores each lesson as it was, including lessons the teacher marked optional. Does not change course content or what students can open. Always call with dry_run first, tell the teacher the modules and how the planned hours change, and save only after they confirm. Module ids come from get_course_plan_times. Idempotent. An instructor only changes courses they are assigned to.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "module_ids": {
          "minItems": 1,
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "description": "Module id (UUID)."
          }
        },
        "out_of_plan": {
          "type": "boolean",
          "description": "true takes the modules out of the plan; false brings them back."
        },
        "dry_run": {
          "description": "Preview only. Call this first and confirm with the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "course_id",
        "module_ids",
        "out_of_plan"
      ]
    }
  • POST /tools/set_course_plan_setupCambiar los ajustes del plan de estudio de un cursoEscrituraRol mínimo: Profesor

    Change how a course is planned: plan_mode with its exam_date or recommended_weeks, the academy's minimum, fit_to_date, the days-and-hours selectors (days_and_hours; null switches back to setting each weekday) and the route questions (route_questions replaces the whole list; [] removes them; keep question_id and answer_id of existing ones so routes keep matching). Only the fields sent change. Always call with dry_run first, tell the teacher what changes and wait for a yes: students see it when they set or change their time. Read the current values with get_course_plan_setup. An instructor only changes courses they are assigned to.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "plan_mode": {
          "type": "string",
          "enum": [
            "open",
            "duration",
            "exam",
            "off"
          ]
        },
        "exam_date": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "recommended_weeks": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 520
            },
            {
              "type": "null"
            }
          ]
        },
        "minimum": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "minutes_a_day": {
                  "type": "integer",
                  "minimum": 15,
                  "maximum": 600
                },
                "days_a_week": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 7
                }
              },
              "required": [
                "minutes_a_day",
                "days_a_week"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "fit_to_date": {
          "type": "boolean"
        },
        "days_and_hours": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "max_hours_a_day": {
                  "description": "Highest daily time; null = no maximum.",
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0.5,
                      "maximum": 24
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "min_hours_a_day": {
                  "description": "Lowest daily time a student can pick in the box, by half hours, up to the course minimum; null = half an hour.",
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0.5,
                      "maximum": 24
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "intensive_from_hours": {
                  "description": "From here up, the «intensive» advice; null = none.",
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0.5,
                      "maximum": 24
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "below_minimum": {
                  "description": "warn (default): warn and plan anyway. contact: no plan, only «Hablar con mi tutor».",
                  "type": "string",
                  "enum": [
                    "warn",
                    "contact"
                  ]
                },
                "advice": {
                  "type": "object",
                  "properties": {
                    "below": {
                      "type": "string",
                      "maxLength": 400
                    },
                    "minimum": {
                      "type": "string",
                      "maxLength": 400
                    },
                    "range": {
                      "type": "string",
                      "maxLength": 400
                    },
                    "intensive": {
                      "type": "string",
                      "maxLength": 400
                    }
                  }
                }
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "route_questions": {
          "maxItems": 3,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "question_id": {
                "type": "string",
                "maxLength": 40
              },
              "question": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "answers": {
                "minItems": 2,
                "maxItems": 6,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "answer_id": {
                      "type": "string",
                      "maxLength": 40
                    },
                    "text": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "hint": {
                      "type": "string",
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "text"
                  ]
                }
              },
              "ask_only_if": {
                "description": "Ask it only after one of these answers to an earlier question.",
                "type": "object",
                "properties": {
                  "question_id": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "answer_ids": {
                    "minItems": 1,
                    "maxItems": 6,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 40
                    }
                  }
                },
                "required": [
                  "question_id",
                  "answer_ids"
                ]
              }
            },
            "required": [
              "question",
              "answers"
            ]
          }
        },
        "dry_run": {
          "description": "Preview only. Call this first and confirm with the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "course_id"
      ]
    }
  • POST /tools/set_planner_welcomePantallas de bienvenida del plan de estudioEscrituraRol mínimo: Administrador

    The three welcome screens students see once, before setting their study time: turn them on or off, or write the academy's own title and text for each (empty = default copy). Also plan_views: which views students get in «Mi plan de estudio» (both, day = only «Por días», the calendar of each day; topic = only «Por temas», the course in route order, the only place that lists what has no day). And show_estimated_times: whether students see the times the platform estimates (minutes per task, each day's planned hours, hours left, minutes a day they are short), in their plan, calendar and reminders; off, they see tasks and dates only, while their own study time and the academy minimum still show. Only what is sent changes. Confirm the texts with the teacher before saving. Read the current ones with get_course_plan_setup. Academy admins only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "screens": {
          "description": "Up to three, in order. A missing or empty field uses the default copy.",
          "maxItems": 3,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 80
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "text": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 400
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          }
        },
        "plan_views": {
          "description": "both, day or topic. Absent = left as it is.",
          "type": "string",
          "enum": [
            "both",
            "day",
            "topic"
          ]
        },
        "show_estimated_times": {
          "description": "Students see the platform's estimated times (true, the default) or only tasks and dates (false). Absent = left as it is.",
          "type": "boolean"
        }
      }
    }
  • POST /tools/set_tutor_contact_buttonBotón «Consultar con tu tutor»EscrituraRol mínimo: Administrador

    The «Consultar con tu tutor personal» button students see in the study plan form (and the only button left when a course asks for a talk with the tutor below its minimum). kind «message» opens a chat in Mensajes with the teacher of the student's group, or fallback_staff_user_id when they have none; «phone» opens WhatsApp on that number (with country code); «none» removes it. Confirm with the teacher before saving. Academy admins only.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "none",
            "message",
            "phone"
          ]
        },
        "fallback_staff_user_id": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "description": "Staff user id (UUID)."
            },
            {
              "type": "null"
            }
          ]
        },
        "phone": {
          "description": "With the country code, e.g. +34 600 112 233.",
          "type": "string",
          "maxLength": 40
        },
        "label": {
          "description": "Button text. Empty = «Consultar con tu tutor personal».",
          "type": "string",
          "maxLength": 60
        }
      },
      "required": [
        "kind"
      ]
    }
  • POST /tools/save_study_routeCrear o cambiar una ruta del planificadorEscrituraRol mínimo: Profesor

    Create a route for a course in the study planner, or replace an existing one (pass route_id; the whole route is replaced, so send every stage). Ids come from get_study_routes. Saved as a draft unless status is «published»: publish only when the teacher explicitly asks, since students see it in today's plan. Always call with dry_run first: it checks everything and returns, per stage, the required minutes, the projected finish for a student who starts today at the academy's default week, and whether each due date is met. Tell the teacher what you will save and wait for a yes. Keep stage_id when editing an existing stage so students' A/B choices are kept. Besides required lessons, a stage can have at_stage_end (tests and exams when it ends), if_time_allows, and at_the_same_time (a second list alongside, e.g. class recordings to catch up on). A stage of kind «review» is a pass over lessons already studied, and date_mode «from_student_start» counts weeks from each student's start; see the notes from get_study_routes. An instructor only changes courses they are assigned to.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course id (UUID)."
        },
        "route_id": {
          "type": "string",
          "format": "uuid",
          "description": "Route id, to replace an existing route (UUID)."
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120
        },
        "status": {
          "description": "Default draft.",
          "type": "string",
          "enum": [
            "draft",
            "published"
          ]
        },
        "for_everyone": {
          "description": "Every student of the course. Default false.",
          "type": "boolean"
        },
        "student_can_choose": {
          "description": "Offered to every student of the course to pick, with the other choosable routes (e.g. 12, 9 and 6 months). Default false.",
          "type": "boolean"
        },
        "description": {
          "description": "What students read when choosing.",
          "type": "string",
          "maxLength": 300
        },
        "weeks": {
          "description": "How long the route takes: the course's date for whoever follows it (counted from their enrollment). Omit to keep the course's.",
          "type": "integer",
          "minimum": 1,
          "maximum": 260
        },
        "months": {
          "description": "Length in calendar months instead of weeks (12 = the same day a year later); wins over weeks. null clears it. Omit to keep the route's.",
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 60
            },
            {
              "type": "null"
            }
          ]
        },
        "ends_on_date": {
          "description": "«Termina en la fecha»: students with more time than needed do not finish sooner; the end date stays. Omit to keep the route's.",
          "type": "boolean"
        },
        "pdf_minutes_per_page": {
          "description": "Study time per PDF page in this route (read, underline, memorize), e.g. 30 for a first full study, 10 for a revision; replaces the planner's 2 min of reading for every PDF the route asks for. null clears it. Omit to keep the route's.",
          "anyOf": [
            {
              "type": "number",
              "minimum": 1,
              "maximum": 120
            },
            {
              "type": "null"
            }
          ]
        },
        "lesson_minutes": {
          "description": "Per-lesson times in this route only; they win over pdf_minutes_per_page and the course's time. Merged into the route's: lessons not listed keep theirs.",
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "lesson_id": {
                "type": "string",
                "format": "uuid",
                "description": "Lesson id (from get_course_outline or get_study_routes) (UUID)."
              },
              "minutes": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 6000
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Minutes it takes in this route; null removes the route's time."
              }
            },
            "required": [
              "lesson_id",
              "minutes"
            ]
          }
        },
        "suggested_for": {
          "description": "Choosable routes only: who it is proposed to, by their answers and daily time; the first route that fits is proposed. null clears it. Omit to keep the route's.",
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "answers": {
                  "description": "Route question id → option ids this route fits (ids from get_course_plan_setup). A question left out fits any answer.",
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "maxLength": 40
                  },
                  "additionalProperties": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 40
                    }
                  }
                },
                "min_hours_a_day": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 24
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "max_hours_a_day": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 24
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            },
            {
              "type": "null"
            }
          ]
        },
        "group_ids": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "description": "Student group id (UUID)."
          }
        },
        "student_ids": {
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "description": "Student user id (UUID)."
          }
        },
        "date_mode": {
          "description": "calendar (default): starts_on/due_on are days. from_student_start: starts_week/due_week count from each student's start.",
          "type": "string",
          "enum": [
            "calendar",
            "from_student_start"
          ]
        },
        "stages": {
          "minItems": 1,
          "maxItems": 30,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "stage_id": {
                "type": "string",
                "maxLength": 64
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "kind": {
                "description": "study (default), or review: a pass over lessons already studied.",
                "type": "string",
                "enum": [
                  "study",
                  "review"
                ]
              },
              "note": {
                "description": "Shown to the student while the stage is current.",
                "type": "string",
                "maxLength": 600
              },
              "starts_on": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "due_on": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "starts_week": {
                "description": "from_student_start only: opens on the first day of this week (1 = the first).",
                "type": "integer",
                "minimum": 1,
                "maximum": 260
              },
              "due_week": {
                "description": "from_student_start only: required lessons done by the last day of this week.",
                "type": "integer",
                "minimum": 1,
                "maximum": 260
              },
              "required": {
                "maxItems": 300,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "lesson",
                        "module",
                        "folder",
                        "class_recordings",
                        "step"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "description": "Lesson, module or folder id. For class_recordings: «all» or a series id from class_recordings. For step: the step_id of a step of the same stage."
                    },
                    "priority": {
                      "description": "Default high. When the course is set to fit its date and a student's time does not reach it, low items are left out first, then medium.",
                      "type": "string",
                      "enum": [
                        "high",
                        "medium",
                        "low"
                      ]
                    }
                  },
                  "required": [
                    "kind",
                    "id"
                  ]
                }
              },
              "at_stage_end": {
                "description": "Tests, exercises or exams given when the stage's required lessons are done.",
                "maxItems": 300,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "lesson",
                        "module",
                        "folder",
                        "class_recordings",
                        "step"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "description": "Lesson, module or folder id. For class_recordings: «all» or a series id from class_recordings. For step: the step_id of a step of the same stage."
                    },
                    "priority": {
                      "description": "Default high. When the course is set to fit its date and a student's time does not reach it, low items are left out first, then medium.",
                      "type": "string",
                      "enum": [
                        "high",
                        "medium",
                        "low"
                      ]
                    }
                  },
                  "required": [
                    "kind",
                    "id"
                  ]
                }
              },
              "if_time_allows": {
                "maxItems": 300,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "lesson",
                        "module",
                        "folder",
                        "class_recordings",
                        "step"
                      ]
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "description": "Lesson, module or folder id. For class_recordings: «all» or a series id from class_recordings. For step: the step_id of a step of the same stage."
                    },
                    "priority": {
                      "description": "Default high. When the course is set to fit its date and a student's time does not reach it, low items are left out first, then medium.",
                      "type": "string",
                      "enum": [
                        "high",
                        "medium",
                        "low"
                      ]
                    }
                  },
                  "required": [
                    "kind",
                    "id"
                  ]
                }
              },
              "at_the_same_time": {
                "description": "A second list that runs alongside the stages from this one on.",
                "type": "object",
                "properties": {
                  "items": {
                    "maxItems": 300,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "lesson",
                            "module",
                            "folder",
                            "class_recordings",
                            "step"
                          ]
                        },
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "description": "Lesson, module or folder id. For class_recordings: «all» or a series id from class_recordings. For step: the step_id of a step of the same stage."
                        },
                        "priority": {
                          "description": "Default high. When the course is set to fit its date and a student's time does not reach it, low items are left out first, then medium.",
                          "type": "string",
                          "enum": [
                            "high",
                            "medium",
                            "low"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "id"
                      ]
                    }
                  },
                  "share_percent": {
                    "description": "Share of study time it takes. Default 33.",
                    "type": "integer",
                    "minimum": 10,
                    "maximum": 90
                  }
                },
                "required": [
                  "items"
                ]
              },
              "choice": {
                "type": "object",
                "properties": {
                  "a": {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 80,
                        "description": "What the student reads on the button."
                      },
                      "items": {
                        "maxItems": 300,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "lesson",
                                "module",
                                "folder",
                                "class_recordings",
                                "step"
                              ]
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "description": "Lesson, module or folder id. For class_recordings: «all» or a series id from class_recordings. For step: the step_id of a step of the same stage."
                            },
                            "priority": {
                              "description": "Default high. When the course is set to fit its date and a student's time does not reach it, low items are left out first, then medium.",
                              "type": "string",
                              "enum": [
                                "high",
                                "medium",
                                "low"
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "id"
                          ]
                        },
                        "description": "May be empty (e.g. «wait for the classes»)."
                      }
                    },
                    "required": [
                      "label",
                      "items"
                    ]
                  },
                  "b": {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 80,
                        "description": "What the student reads on the button."
                      },
                      "items": {
                        "maxItems": 300,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "lesson",
                                "module",
                                "folder",
                                "class_recordings",
                                "step"
                              ]
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "description": "Lesson, module or folder id. For class_recordings: «all» or a series id from class_recordings. For step: the step_id of a step of the same stage."
                            },
                            "priority": {
                              "description": "Default high. When the course is set to fit its date and a student's time does not reach it, low items are left out first, then medium.",
                              "type": "string",
                              "enum": [
                                "high",
                                "medium",
                                "low"
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "id"
                          ]
                        },
                        "description": "May be empty (e.g. «wait for the classes»)."
                      }
                    },
                    "required": [
                      "label",
                      "items"
                    ]
                  }
                },
                "required": [
                  "a",
                  "b"
                ]
              },
              "live_series_ids": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Live-class series id (UUID)."
                }
              },
              "steps": {
                "description": "Things to do that are not lessons (live class, review, mock exam…). Place each with a {kind: step, id: step_id} ref in required, at_stage_end or if_time_allows; an unplaced step goes at the end of required.",
                "maxItems": 60,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "step_id": {
                      "description": "Short id the stage's refs use to place the step (e.g. «repaso-t1»). Keep it when editing so students' ticks are kept.",
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{1,64}$"
                    },
                    "type": {
                      "description": "live class, review, mock exam, checkpoint (close of a block), or other. Default other.",
                      "type": "string",
                      "enum": [
                        "live",
                        "review",
                        "mock",
                        "checkpoint",
                        "other"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "description": "What the student sees, e.g. «Repaso del tema 1»."
                    },
                    "explanation": {
                      "description": "What to do, shown with the step.",
                      "type": "string",
                      "maxLength": 600
                    },
                    "minutes": {
                      "description": "Time it takes from the student's day. 0 = a reminder that takes no time. Default 0.",
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 480
                    },
                    "link": {
                      "description": "What its button opens: a lesson, a module, or the campus calendar, the course's failed-questions review or the tests page.",
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "lesson",
                                "module"
                              ]
                            },
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "description": "Lesson or module id (UUID)."
                            }
                          },
                          "required": [
                            "kind",
                            "id"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "page"
                            },
                            "page": {
                              "type": "string",
                              "enum": [
                                "calendar",
                                "review",
                                "tests"
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "page"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "title"
                  ]
                }
              }
            },
            "required": [
              "title",
              "required"
            ]
          }
        },
        "dry_run": {
          "description": "Check and preview only. Call this first.",
          "type": "boolean"
        }
      },
      "required": [
        "course_id",
        "name",
        "stages"
      ]
    }

Duplicar cursoscourses:write

  • POST /tools/duplicate_courseDuplicar un cursoEscrituraRol mínimo: Profesor

    Create a new DRAFT course copied from an existing one, e.g. to prepare a new edition without touching the course current students use. Always copies modules, lessons and blocks. Optional parts (defaults in brackets): settings and appearance [true], assigned teachers [true], linked question bank questions as independent copies [false: the copy keeps using the same bank questions], quiz templates [false], AI-generated lesson objectives [true; their generated questions only travel with the bank copy]. Never copies students, progress, attempts, grades, submissions, comments or scheduled live classes. The copy is a draft that students cannot see until a teacher publishes it. Private 1:1 courses and courses in the trash cannot be copied. Call with dry_run first, tell the teacher what would be copied and the new name, and only then call again without dry_run. Large courses are copied in the background: the answer says so and the draft appears in the course list a few minutes later.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "course_id": {
          "type": "string",
          "format": "uuid",
          "description": "Course to copy (UUID)."
        },
        "title": {
          "description": "Name of the new course. Default: the original title followed by \"(copia)\".",
          "type": "string",
          "minLength": 2,
          "maxLength": 160
        },
        "copy_settings": {
          "description": "Settings and appearance. Default true.",
          "type": "boolean"
        },
        "copy_teachers": {
          "description": "Assigned teachers. Default true.",
          "type": "boolean"
        },
        "copy_bank_questions": {
          "description": "Make independent copies of the course's bank questions and folders. Default false.",
          "type": "boolean"
        },
        "copy_test_templates": {
          "description": "Quiz templates. Default false.",
          "type": "boolean"
        },
        "copy_assessment": {
          "description": "AI-generated lesson objectives. Default true.",
          "type": "boolean"
        },
        "dry_run": {
          "description": "true = only report what would be copied.",
          "type": "boolean"
        }
      },
      "required": [
        "course_id"
      ]
    }

Integraciones de ventaintegrations:write

  • POST /tools/sync_systeme_catalogSincronizar el catálogo de systeme.ioEscrituraRol mínimo: Administrador

    Reads the systeme.io catalogue into the academy's copy, for admins. It does not change fichas. One call works for up to 20 seconds; when done is false, call again with continue_with until done is true. rate_limited means wait wait_seconds and call again with the continue_with it returned, or with none if it returned none. Read get_systeme_integration first. Afterwards list_systeme_course_pairs.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "continue_with": {
          "description": "The continue_with object from the previous call.",
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "generation": {
                  "type": "string",
                  "format": "uuid"
                },
                "phase": {
                  "type": "string",
                  "enum": [
                    "steps",
                    "offers",
                    "funnels",
                    "product_ids",
                    "products",
                    "done"
                  ]
                },
                "cursor": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[1-9][0-9]{0,18}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "generation",
                "phase",
                "cursor"
              ]
            },
            {
              "type": "null"
            }
          ]
        }
      }
    }
  • POST /tools/set_systeme_course_pairsEmparejar cursos con systeme.ioEscrituraRol mínimo: Administrador

    Changes only the named systeme.io course pairs, for admins. course_id null removes a pair. Each partial level needs its own group: the group hides what that level does not include, and whole-course product fichas mark full access. level_groups names the levels to set; a null group_id removes that level and leaves the others. drip_group_id is the group of a course systeme.io also sells with dripping: fichas of dripped products get it, the course itself stays open, and the group needs its own schedule in the course (update_student_group release). A dripping group serves one course only. A group used here can no longer enroll students in that course. It applies to future sales. Call with dry_run first and confirm. Read list_systeme_course_pairs before, then list_systeme_products with filter incomplete.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "pairs": {
          "minItems": 1,
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "systeme_course_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                ]
              },
              "course_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "description": "Course id (UUID)."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "systeme_course_name": {
                "type": "string",
                "maxLength": 200
              },
              "level_groups": {
                "maxItems": 50,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "level_key": {
                      "type": "string",
                      "maxLength": 4000
                    },
                    "group_id": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid",
                          "description": "Group id (UUID)."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "level_key",
                    "group_id"
                  ]
                }
              },
              "drip_group_id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "description": "Group id (UUID)."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "systeme_course_id",
              "course_id"
            ]
          }
        },
        "dry_run": {
          "type": "boolean"
        }
      },
      "required": [
        "pairs"
      ]
    }
  • POST /tools/create_systeme_fichasCrear fichas de systeme.ioEscrituraRol mínimo: Administrador

    Creates the missing access product for every systeme.io product in the catalogue copy, for admins. Products that already have one are left alone. It does not call systeme.io: sync_systeme_catalog first. Afterwards list_systeme_products with filter incomplete and fix what is left. Safe to call again.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {}
    }
  • POST /tools/create_systeme_productCrear una ficha de systeme.ioEscrituraRol mínimo: Administrador

    Creates one access product, for admins. With systeme_product_id it is the ficha of that systeme.io product. Without it, it is a manual product (tags, loose plans, or no access when items is omitted). It applies to future sales. Read list_systeme_products first so you do not create a second ficha. Then get_systeme_product.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "systeme_product_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[0-9]{1,18}$"
            },
            {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          ]
        },
        "items": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "course"
                  },
                  "course_id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Course id (UUID)."
                  },
                  "access_days": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 36500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "extra_access": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type",
                  "course_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "group"
                  },
                  "group_id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Group id (UUID)."
                  }
                },
                "required": [
                  "type",
                  "group_id"
                ]
              }
            ]
          }
        },
        "sources": {
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "enum": [
                  "price_plan",
                  "tag"
                ]
              },
              "id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                ]
              },
              "name": {
                "type": "string",
                "maxLength": 400
              }
            },
            "required": [
              "source",
              "id"
            ]
          }
        }
      },
      "required": [
        "name"
      ]
    }
  • POST /tools/update_systeme_productEditar una ficha de systeme.ioEscrituraRol mínimo: Administrador

    Changes one access product for future sales, for admins. It does not change access already given. Pausing leaves its sales pending. Order of application: name or active, then remove_item_ids, update_items, add_items, unassign_source_ids, assign_sources. A plan assigned here is how an ambiguous pending sale gets a ficha. Read get_systeme_product first and confirm. Then list_systeme_pending_sales if you assigned a plan.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "access_product_id": {
          "type": "string",
          "format": "uuid",
          "description": "Access product id (UUID)."
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "active": {
          "type": "boolean"
        },
        "remove_item_ids": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "update_items": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "item_id": {
                "type": "string",
                "format": "uuid"
              },
              "access_days": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 36500
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "extra_access": {
                "type": "boolean"
              }
            },
            "required": [
              "item_id"
            ]
          }
        },
        "add_items": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "course"
                  },
                  "course_id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Course id (UUID)."
                  },
                  "access_days": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 36500
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "extra_access": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "type",
                  "course_id"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "group"
                  },
                  "group_id": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Group id (UUID)."
                  }
                },
                "required": [
                  "type",
                  "group_id"
                ]
              }
            ]
          }
        },
        "unassign_source_ids": {
          "maxItems": 50,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "assign_sources": {
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string",
                "enum": [
                  "price_plan",
                  "tag"
                ]
              },
              "id": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9]{1,18}$"
                  },
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                ]
              },
              "name": {
                "type": "string",
                "maxLength": 400
              }
            },
            "required": [
              "source",
              "id"
            ]
          }
        }
      },
      "required": [
        "access_product_id"
      ]
    }
  • POST /tools/bulk_edit_systeme_productsEditar varias fichas de systeme.ioEscrituraRol mínimo: Administrador

    Adds one course or group to many access products, or removes it from them, for admins. Products that already have it (or do not) stay as they are. Future sales only. Read list_systeme_products first and confirm the ids. Returns how many products changed.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "access_product_ids": {
          "minItems": 1,
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "op": {
          "type": "string",
          "enum": [
            "add",
            "remove"
          ]
        },
        "item": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "course"
                },
                "course_id": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Course id (UUID)."
                },
                "access_days": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 36500
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "extra_access": {
                  "type": "boolean"
                }
              },
              "required": [
                "type",
                "course_id"
              ]
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "group"
                },
                "group_id": {
                  "type": "string",
                  "format": "uuid",
                  "description": "Group id (UUID)."
                }
              },
              "required": [
                "type",
                "group_id"
              ]
            }
          ]
        }
      },
      "required": [
        "access_product_ids",
        "op",
        "item"
      ]
    }
  • POST /tools/delete_systeme_productBorrar una ficha de systeme.ioBorra datosRol mínimo: Administrador

    Deletes an access product, for admins. Its future sales become pending; access already given stays. Call with dry_run first, show the name, what it grants and its assigned plans, and confirm. Read get_systeme_product before.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "access_product_id": {
          "type": "string",
          "format": "uuid",
          "description": "Access product id (UUID)."
        },
        "dry_run": {
          "type": "boolean"
        }
      },
      "required": [
        "access_product_id"
      ]
    }
  • POST /tools/process_systeme_pending_salesProcesar ventas pendientesEscrituraRol mínimo: Administrador

    Enrolls students for one pending systeme.io plan, up to 25 sales per call, for admins. When send_welcome_email is on, it also emails them their access. Call with dry_run first and confirm. Repeat while remaining is greater than 0. Read list_systeme_pending_sales first.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "price_plan_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[0-9]{1,18}$"
            },
            {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          ]
        },
        "dry_run": {
          "type": "boolean"
        }
      },
      "required": [
        "price_plan_id"
      ]
    }
  • POST /tools/mark_systeme_plan_no_accessMarcar un plan sin accesoEscrituraRol mínimo: Administrador

    Marks a systeme.io price plan as sold without course access, for admins, so its pending sales stop waiting. Future sales of that plan grant nothing. Read list_systeme_pending_sales first and confirm the plan really should not enroll anyone.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "price_plan_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[0-9]{1,18}$"
            },
            {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          ]
        },
        "name": {
          "type": "string",
          "maxLength": 200
        }
      },
      "required": [
        "price_plan_id"
      ]
    }
  • POST /tools/reprocess_systeme_eventReprocesar un aviso de systeme.ioEscrituraRol mínimo: Administrador

    Runs one failed or skipped systeme.io event again, for admins. The integration has to be on. Read list_systeme_events with filter failed first and only pass an event whose can_reprocess is true. It can enroll a student.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "event_id": {
          "type": "string",
          "format": "uuid",
          "description": "Event id (UUID)."
        }
      },
      "required": [
        "event_id"
      ]
    }
  • POST /tools/set_systeme_settingsActivar systeme.ioEscrituraRol mínimo: Administrador

    Turns the systeme.io integration on or off and sets what a cancellation, a removed tag or a new student does, for admins. With enabled true, sales start enrolling students. Turning it off keeps incoming events without applying them. Always confirm, and call with dry_run first. Read get_systeme_integration before. Send at least one field.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "revoke_on_cancel": {
          "type": "boolean"
        },
        "revoke_on_tag_removed": {
          "type": "boolean"
        },
        "send_welcome_email": {
          "type": "boolean"
        },
        "dry_run": {
          "type": "boolean"
        }
      }
    }

Ordenar la Nubefiles:write

  • POST /tools/create_cloud_folderCrear una carpeta en la NubeEscrituraRol mínimo: Profesor

    Create a folder in the academy cloud, at the top level or inside another folder (parent_folder_id or parent_folder_path). If a folder with that name already exists there it is returned instead of creating a duplicate. Call with dry_run first, tell the teacher where it will go, and create it only after they confirm.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 400
        },
        "parent_folder_id": {
          "type": "string",
          "format": "uuid",
          "description": "Parent folder id (UUID)."
        },
        "parent_folder_path": {
          "description": "Parent by path, e.g. \"Material de cursos\". Omit both for the top level.",
          "type": "string",
          "maxLength": 600
        },
        "dry_run": {
          "description": "Preview only. Call this first and confirm with the teacher.",
          "type": "boolean"
        }
      },
      "required": [
        "name"
      ]
    }
  • POST /tools/move_cloud_filesMover archivos y carpetas de la NubeEscrituraRol mínimo: Profesor

    Move files, videos and folders of the academy cloud into another folder, or to the top level (target_folder_path "/"). Ids come from list_cloud_files (type file → file_ids, type video → video_ids). A folder moves with everything inside it and cannot go inside itself. Moving never changes lessons that use the files. Always call with dry_run first, show the teacher what moves where, and move only after they confirm. Idempotent.

    Argumentos (JSON Schema)
    {
      "type": "object",
      "properties": {
        "file_ids": {
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "description": "Cloud file id (UUID)."
          }
        },
        "video_ids": {
          "maxItems": 500,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "description": "Cloud video id (UUID)."
          }
        },
        "folder_ids": {
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid",
            "description": "Folder id (UUID)."
          }
        },
        "target_folder_id": {
          "type": "string",
          "format": "uuid",
          "description": "Destination folder id (UUID)."
        },
        "target_folder_path": {
          "description": "Destination by path, e.g. \"Portadas\". \"/\" is the top level.",
          "type": "string",
          "maxLength": 600
        },
        "dry_run": {
          "description": "Preview only. Call this first and confirm with the teacher.",
          "type": "boolean"
        }
      }
    }

¿Dudas o echas en falta una operación? Escríbenos desde el panel o en la página de contacto. Contacto