Overview
This node, named "Narratheque URLs," is designed to send URLs extracted from incoming data items to the Narratheque API. It reads a specified field containing URLs from each input item and posts these URLs in bulk to the Narratheque service for further processing or storage.
Common scenarios where this node is beneficial include:
- Automating the upload of image or document URLs stored in your workflow data to the Narratheque platform.
- Integrating external URL sources into Narratheque without manual intervention.
- Batch processing multiple URLs efficiently by sending them in one request.
For example, if you have a list of images with their URLs in a field called image_url, this node can extract all those URLs and send them to Narratheque's API endpoint to register or process those images.
Properties
| Name | Meaning |
|---|---|
| Nom Du Champ Contenant L’URL | The name of the field in each input item that contains the URL to be sent. |
| Predefined URL | Selects a predefined base API URL to send requests to. Options: Europe or Canada. |
| Use Custom URL | Boolean toggle to decide whether to use a custom API URL instead of the predefined ones. |
| Custom URL | If "Use Custom URL" is enabled, this string specifies the custom API URL to send requests to. |
Output
The node outputs an array of items with a single JSON object containing:
status: A string indicating the operation status, here always"uploaded via urls".sentUrls: An array of the URLs that were extracted from the input and sent to the API.response: The full response data returned from the Narratheque API after posting the URLs.
No binary data output is produced by this node.
Dependencies
- Requires an API authentication token credential to access the Narratheque API.
- Uses the Axios HTTP client library internally to make POST requests.
- The node expects network connectivity to the selected Narratheque API endpoint (either predefined or custom).
Troubleshooting
- No URLs found error: If the specified input field does not contain any string URLs, the node throws an error stating no URLs were found in the given field. Ensure the field name matches exactly and that the input data contains valid URLs as strings.
- Authentication errors: If the API token is missing or invalid, the API call will fail. Verify that the correct API key credential is configured.
- Network or endpoint issues: Using an incorrect or unreachable custom URL will cause request failures. Double-check the URL and network access.
- Unexpected API responses: If the API changes or returns errors, inspect the
responseoutput for details.
Links and References
- Narratheque API Documentation (as referenced in the node metadata)