Passwork icon

Passwork

Interact with Passwork API

Overview

The node interacts with the Passwork API to retrieve attachments related to stored passwords. Specifically, the "Get Attachment" operation under the "Password" resource fetches a file attachment associated with a particular password entry in Passwork. This is useful when you need to programmatically access documents or files securely stored alongside passwords, such as license keys, configuration files, or any sensitive attachments.

Practical examples include:

  • Automatically downloading and processing password-related attachments for audit or backup purposes.
  • Integrating Passwork attachments into workflows that require secure document retrieval.
  • Fetching attachments to display or use them in other systems without manual intervention.

Properties

Name Meaning
Password ID The unique identifier of the password entry from which to retrieve the attachment.
Attachment ID The unique identifier of the specific attachment file to be fetched.
Raw Result Boolean flag indicating whether to return the raw API response instead of processed data.

Output

The node outputs the retrieved attachment data in the json output field. This typically includes metadata about the attachment and the content itself. Since this operation deals with attachments (likely binary files), the node may also output binary data representing the actual file content, enabling further processing or saving within n8n workflows.

Dependencies

  • Requires an active connection to the Passwork API using valid API credentials (an API key or token).
  • The base URL for the Passwork API must be configured in the node's credentials.
  • Network access to the Passwork service endpoint is necessary.

Troubleshooting

  • Invalid Password ID or Attachment ID: If either ID is incorrect or does not exist, the API will likely return an error indicating the resource was not found. Verify IDs before running the node.
  • Authentication Errors: Missing or invalid API credentials will cause authentication failures. Ensure the API key/token is correctly set up in the node credentials.
  • Permission Issues: The authenticated user must have permission to access the specified password and its attachments.
  • Raw Result Flag Misuse: Setting the "Raw Result" flag to true returns unprocessed API responses, which might be harder to parse downstream. Use it only if raw data inspection is needed.

Links and References

Discussion