Lectful icon

Lectful

Interact with the VIPay Lectful API

Overview

This node integrates with the Lectful API to manage online learning platform resources. Specifically, for the Course - Create operation, it allows users to create a new course by providing details such as title, subtitle, and description.

Typical use cases include:

  • Automating course creation workflows in an LMS (Learning Management System).
  • Integrating course management into broader automation pipelines.
  • Quickly adding new courses based on external triggers or data sources.

For example, you could use this node to automatically create a course when a new training program is launched or when content is approved for publishing.

Properties

Name Meaning
Authentication Mode Choose how to authenticate with the Lectful API:
- Use Stored Credentials
- Manual Configuration (provide base URL and API key manually)
Credentials Note Informational note shown only if Manual Configuration is selected, explaining credential usage.
Base URL Override Optional base URL to override the stored credential's base URL (without /api/v1).
API Key Override Optional API key to override the stored credential's API key.
Title The title of the course to be created (required).
Subtitle The subtitle of the course (optional).
Description A detailed description of the course (optional).

Output

The node outputs the JSON response from the Lectful API after creating the course. This typically includes the newly created course's details such as its ID, title, subtitle, description, creation timestamps, and other metadata returned by the API.

No binary data output is produced by this operation.

Example output structure (simplified):

{
  "id": "string",
  "title": "string",
  "subtitle": "string",
  "description": "string",
  "created_at": "string",
  "updated_at": "string",
  ...
}

Dependencies

  • Requires access to the Lectful API.
  • Authentication can be done via:
    • Stored credentials configured in n8n (an API base URL and API key).
    • Manual configuration by providing 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 they are properly configured with a valid base URL and API key. If using manual mode, both Base URL Override and API Key Override must be provided.
  • Base URL format: The base URL should not include the /api/v1 suffix; the node appends this automatically.
  • Required fields: The "Title" property is mandatory. Omitting it will cause the API request to fail.
  • API errors: Errors returned by the Lectful API (e.g., validation errors) will be surfaced in the node output. Review the error message for details.
  • Network issues: Ensure that the n8n instance has network access to the Lectful API endpoint.

Links and References

Discussion