Actions56
- Book Actions
- Page Actions
- Chapter Actions
- Shelf Actions
- User Actions
- Role Actions
- Attachment Actions
- Tag Actions
Overview
This node integrates with the BookStack API, allowing users to manage various BookStack resources such as books, pages, chapters, shelves, users, roles, attachments, and tags. Specifically for the Attachment - Get operation, it retrieves a single attachment resource by its ID.
Common scenarios where this node is beneficial include:
- Fetching metadata or details about a specific attachment stored in BookStack.
- Automating workflows that require accessing attachment information for documentation or processing.
- Integrating BookStack attachments into other systems or processes by retrieving their data programmatically.
Example use case:
- You want to retrieve an attachment's details (e.g., file name, URL, size) by providing its unique ID to display or process it further in your automation.
Properties
| Name | Meaning |
|---|---|
| Tool Description | Choose how to determine the resource and operation: - Set Automatically - Set Manually |
| Request Description | (Shown if "Set Automatically" selected) Describe what you want to do; the system auto-selects resource and operation based on this text. Example: "Get attachment with ID 123". |
| ID | The unique identifier of the attachment resource to retrieve. Required for get operation. |
Output
The output JSON contains the full response from the BookStack API for the requested attachment. This typically includes fields such as:
- Attachment ID
- File name
- URL or path to the attachment
- Metadata like size, creation date, etc.
If the attachment includes binary data (e.g., the actual file content), it would be represented in the binary output field, but this node primarily returns metadata in JSON format.
Dependencies
- Requires connection to a BookStack instance via its API.
- Needs an API authentication token credential configured in n8n with:
- Base URL of the BookStack API.
- Token and token secret for authorization.
- The node uses HTTP requests authenticated with these credentials to interact with the BookStack API.
Troubleshooting
- Missing or invalid ID: The "ID" property is required for the Get operation. If omitted or incorrect, the API will return an error indicating the resource was not found.
- Authentication errors: Ensure the API token and base URL are correctly set in the credentials. Authentication failures will result in 401 or 403 HTTP errors.
- Resource not found: If the specified attachment ID does not exist, the API will return a 404 error.
- Network issues: Verify network connectivity to the BookStack server and that the API endpoint is reachable.
- Automatic detection inaccuracies: When using "Set Automatically," ambiguous or unclear request descriptions may lead to incorrect resource or operation selection. In such cases, switch to "Set Manually" and specify the resource and operation explicitly.