Actions32
- Campaign Actions
- List Actions
- Media Actions
- Setting Actions
- Subscriber Actions
- Template Actions
- Transaction Actions
Overview
The node interacts with a Listmonk instance, specifically providing operations related to campaigns, lists, media, templates, subscribers, and more. The "Get Preview by ID" operation under the Campaign resource retrieves a preview of a specific campaign using its unique identifier. This is useful for users who want to fetch and review the content or details of a campaign before sending or further processing it.
Practical examples include:
- Previewing an email campaign's content before dispatch.
- Fetching campaign details to display in a dashboard.
- Validating campaign data programmatically during automation workflows.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the campaign to retrieve the preview for. This is a required string input. |
Output
The output contains a JSON object representing the campaign preview data fetched from the Listmonk API. This typically includes all relevant fields that describe the campaign's content and metadata as returned by the API endpoint for campaign previews.
If the node supports binary data output (not explicitly shown here), it would represent any media or attachments associated with the campaign preview, but based on the provided code and context, the output is primarily JSON structured data.
Dependencies
- Requires connection to a Listmonk instance via its API.
- Needs credentials including domain URL, username, and password for basic authentication.
- The base URL for API requests is constructed from the provided domain credential.
- The node expects the Listmonk API to be accessible and properly configured to allow fetching campaign previews.
Troubleshooting
Common issues:
- Invalid or missing campaign ID will cause the operation to fail.
- Incorrect API credentials or domain URL will result in authentication errors.
- Network connectivity problems can prevent reaching the Listmonk API.
- If the campaign ID does not exist, the API may return a not found error.
Error messages and resolutions:
- Authentication errors: Verify the API credentials and domain URL are correct.
- Not found errors: Confirm the campaign ID exists in the Listmonk instance.
- Timeout or network errors: Check network connectivity and API server status.
Links and References
- Listmonk Official Documentation
- Listmonk API Reference (for detailed API endpoints and payloads)