Actions13
Overview
This node integrates with a PDF generation and management API, enabling users to perform various PDF-related operations such as creating workspaces, managing templates, converting HTML or URLs to PDFs, generating documents from templates, and applying PDF services like watermarking or encryption.
Specifically for the Workspace - Create operation, the node allows you to create a new workspace by providing a unique identifier. Workspaces help organize templates and users within the PDF generation platform.
Common scenarios:
- Organizing multiple PDF templates and users under distinct workspaces for better management.
- Automating workspace creation as part of onboarding workflows.
- Structuring document generation environments by segregating resources into workspaces.
Practical example:
You want to programmatically create a new workspace named "[email protected]" to group all marketing-related PDF templates and users. This node operation lets you do that by specifying the unique identifier for the workspace.
Properties
Name | Meaning |
---|---|
Identifier | A unique string identifier for the new workspace to be created (e.g., an email or name). |
Output
The output JSON object for the Workspace Create operation typically contains the response from the API confirming the creation of the workspace. It includes success status and details about the newly created workspace.
Example output structure:
{
"success": true,
"identifier": "unique-workspace-identifier",
"message": "Workspace created successfully"
}
No binary data is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the PDF Generator API service.
- The node uses the base URL of the API, defaulting to
https://us1.pdfgeneratorapi.com/api/v4
if not configured otherwise. - Proper network access to the PDF Generator API endpoint is necessary.
Troubleshooting
Error: "The operation 'create' is not supported for resource 'workspace'"
This indicates a misconfiguration or unsupported operation. Ensure the Resource is set to "Workspace" and Operation to "Create".Error related to missing or invalid Identifier
The "Identifier" property is required and must be a non-empty unique string. Verify it is provided correctly.Authentication errors
Confirm that the API key credential is valid and has sufficient permissions.Network or API errors
Check connectivity to the API endpoint and verify the API service status.
Links and References
- PDF Generator API Documentation (general reference for API capabilities)
- n8n documentation on Creating Custom Nodes
- Best practices for API Authentication in n8n