Actions16
- Rooms Actions
- Create a new group chat
- Leave/Delete a group chat
- Get detail
- Update info
- Get members
- Change associated members
- Get messages
- Send message
- Get message detail
- Update the specified message
- Delete message
- Get tasks
- Get task detail
- Add a new task to the chat
- Get the list of files
- Get information about the specified file
Overview
This node interacts with the Chatwork API to retrieve various data related to chatrooms, contacts, messages, tasks, and files. Specifically, for the Rooms resource with the Get the list of files operation, it fetches a list of files uploaded in a specified chatroom. This is useful when you want to automate file management or auditing within your Chatwork rooms, such as listing all shared documents or media files for further processing or reporting.
Practical examples:
- Automatically retrieving all files from a project chatroom to back them up.
- Filtering files uploaded by a specific user in a room for compliance checks.
- Integrating file lists into other workflows like cloud storage synchronization or notifications.
Properties
| Name | Meaning |
|---|---|
| Chatroom ID | The unique numeric identifier of the chatroom from which to retrieve the files. |
| Account Id | (Optional) The numeric ID of the account who uploaded the files; filters files by uploader. |
Output
The output is an array of JSON objects representing the files retrieved from the specified chatroom. Each object contains metadata about a file, such as its ID, name, size, upload date, uploader information, and possibly URLs for downloading or previewing the file.
If binary data is involved (e.g., file content), the node would provide relevant binary fields, but this operation primarily returns metadata about files rather than the files themselves.
Dependencies
- Requires an active connection to the Chatwork API via an API key credential configured in n8n.
- The node uses HTTP requests to communicate with Chatwork endpoints.
- No additional external dependencies beyond the Chatwork API and proper authentication.
Troubleshooting
Common issues:
- Invalid or missing Chatroom ID will cause the API request to fail.
- Providing an invalid Account Id filter may result in no files being returned.
- Network or authentication errors if the API key is incorrect or expired.
Error messages:
"operation is not supported."— indicates that the selected operation is not implemented for the Rooms resource."resource is not supported."— means the chosen resource is not recognized by the node.- API errors from Chatwork (e.g., 401 Unauthorized, 404 Not Found) typically indicate credential or parameter issues.
Resolutions:
- Verify the Chatroom ID exists and is accessible with the provided credentials.
- Check the API key validity and permissions.
- Ensure optional Account Id is correct or omit it to get all files.
