Decogro icon

Decogro

Decogro integration for n8n

Admin → Get Email Templates

AI-generated

Overview

This node integrates with the Decogro API to perform various administrative operations, including retrieving email templates. Specifically, the 'Get Email Templates' operation fetches a list of email templates from the Decogro admin system. This is useful for workflows that need to access or manage email templates for automated communications or notifications within the Decogro platform.

Use Case Examples

  1. A marketing automation workflow that retrieves available email templates to select one for sending promotional emails.
  2. An administrative workflow that audits or lists all email templates configured in Decogro for review or updates.

Properties

Name Meaning
Limit Number of email templates to return, with a minimum of 1 and a maximum of 100.
Offset Number of email templates to skip before starting to return results, minimum value is 0.

Output

JSON

  • operation - The operation performed, e.g., 'getEmailTemplates'.
  • data - The array or object containing the retrieved email templates from Decogro.
  • metadata
    • method - HTTP method used for the API request, typically 'GET'.
    • endpoint - API endpoint accessed, e.g., 'admin/email-templates'.
    • timestamp - Timestamp when the API request was made.
    • limit - The limit parameter used in the request.
    • offset - The offset parameter used in the request.
    • page - The calculated page number based on limit and offset.

Dependencies

  • Requires an API key credential for Decogro API authentication.

Troubleshooting

  • Ensure the API key credential is correctly configured and has permissions to access admin email templates.
  • If the node returns an error about invalid JSON, verify that the input parameters are correctly set and no malformed JSON is provided.
  • If no email templates are returned, check the limit and offset parameters and confirm that email templates exist in the Decogro system.

Links

Discussion