Actions88
- Blog Actions
- Get All Posts (Admin)
- Get Post (Admin)
- Create Post (Admin)
- Update Post (Admin)
- Delete Post (Admin)
- Get Categories (Admin)
- Get Category (Admin)
- Create Category (Admin)
- Update Category (Admin)
- Delete Category (Admin)
- Get Tags (Admin)
- Get Tag (Admin)
- Create Tag (Admin)
- Update Tag (Admin)
- Delete Tag (Admin)
- Get Authors (Admin)
- Get All Posts (Public)
- Get Post (Public)
- Get Categories (Public)
- Get Tags (Public)
- Get Posts by Category (Public)
- Get Posts by Tag (Public)
- Section Actions
- AI Resource Actions
- Authentication Actions
- User Actions
- Course Actions
- Lecture Actions
- Enrollment Actions
- Learning Path Actions
- Assignment Actions
- Progress Actions
- Video Actions
- Article Actions
- Quiz Question Actions
- Quiz Choice Actions
- Quiz Submission Actions
- Image Actions
Overview
This node integrates with the Lectful API, enabling users to perform various operations related to user management, courses, lectures, enrollments, and more within the Lectful platform. Specifically, the User - Get Current User operation retrieves the profile information of the currently authenticated user.
Typical use cases include:
- Fetching the logged-in user's profile details for personalization or auditing.
- Automating workflows that require user identity verification.
- Integrating user data into other systems or dashboards.
For example, after a user logs in via the Lectful platform, this node can be used to pull their profile data such as name, email, and other attributes to customize subsequent automation steps.
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 | Notice shown when using Manual Configuration mode 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. |
These properties control how the node authenticates requests to the Lectful API. For the "Get Current User" operation, authentication is required to access the user's profile.
Output
The node outputs an array of JSON objects, each representing the response from the Lectful API for the requested operation.
For the Get Current User operation, the output JSON contains the authenticated user's profile data as returned by the Lectful API endpoint /user. This typically includes fields such as user ID, first name, last name, email, and any other profile attributes provided by the API.
No binary data is output by this operation.
Example output structure (simplified):
{
"id": "12345",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
// ... other user profile fields
}
Dependencies
- Requires access to the Lectful API.
- Requires either:
- Stored credentials configured in n8n containing the Lectful API base URL and API key, or
- Manual configuration specifying the base URL and API key overrides.
- The node uses HTTP requests with Bearer token authentication to communicate with the Lectful API.
Troubleshooting
- Missing or invalid credentials: If neither stored credentials nor manual overrides are properly set, the node will throw an error indicating missing or invalid credentials. Ensure you provide valid API authentication details.
- Base URL Override required in Manual mode: When using manual authentication mode, the base URL override must be provided; otherwise, an error is thrown.
- API errors: If the API returns an error (e.g., unauthorized, not found), the node will throw an error unless "Continue On Fail" is enabled, in which case the error message is included in the output JSON.
- Parsing errors: The node attempts to parse string responses as JSON. If parsing fails, the raw string is returned.
Links and References
- Lectful API Documentation (Assumed official API docs)
- n8n Documentation on HTTP Request Node (for understanding request handling)
- n8n Documentation on Credentials (for setting up API keys)
This summary focuses on the User - Get Current User operation of the Lectful node based on static analysis of the source code and provided property definitions.