Lectful icon

Lectful

Interact with the VIPay Lectful API

Overview

This node integrates with the Lectful API to manage educational content and user interactions within the Lectful platform. Specifically, the "Lecture" resource with the "Create" operation allows users to create a new lecture within a specified course section.

Typical use cases include:

  • Automating the addition of new lectures to courses in an e-learning platform.
  • Integrating course content creation workflows with other systems.
  • Managing structured educational content programmatically.

For example, an education platform administrator can use this node to add video, article, or quiz lectures to a course section without manually using the Lectful web interface.

Properties

Name Meaning
Authentication Mode Choose how to authenticate with the Lectful API: either using stored credentials or manual configuration by providing base URL and API key.
Credentials Note Informational note shown when using Manual Configuration mode about leaving credentials empty.
Base URL Override Optional base URL to override the credential setting (without /api/v1), used in Manual Configuration mode.
API Key Override Optional API key to override the credential setting, used in Manual Configuration mode.
Course ID The ID of the course where the lecture will be created (required).
Section ID The ID of the section within the course where the lecture belongs (required).
Title The title of the lecture (required).
Type The type of lecture content; options are: Video, Article, Quiz (required).
Position The position/order of the lecture within the section (default is 1).
Duration (seconds) The duration of the lecture in seconds (default is 0).
Is Free Boolean indicating whether the lecture is free to access (default is false).
Is Locked Boolean indicating whether the lecture is locked (default is false).

Output

The node outputs an array of JSON objects representing the response from the Lectful API after creating the lecture. The JSON structure corresponds to the newly created lecture's data as returned by the API, typically including fields such as lecture ID, title, type, position, duration, access flags, and related metadata.

No binary data output is produced by this operation.

Dependencies

  • Requires access to the Lectful API.
  • Supports two authentication modes:
    • Stored credentials configured in n8n (an API key and base URL).
    • Manual configuration by specifying the base URL and API key directly in the node parameters.
  • No additional external dependencies beyond HTTP access to the Lectful API.

Troubleshooting

  • Missing or invalid credentials: If using stored credentials, ensure that the API key and base URL are correctly configured in n8n credentials. For manual mode, both Base URL Override and API Key Override must be provided.
  • API errors: The node will throw errors if the API returns failure responses (e.g., invalid course or section IDs, insufficient permissions). Check the error message for details.
  • Required fields missing: Ensure all required properties (Course ID, Section ID, Title, Type) are provided; otherwise, the API call will fail.
  • Network issues: Verify network connectivity to the Lectful API endpoint.

Links and References

Discussion