Gladly icon

Gladly

Interact with Gladly API

Overview

This node interacts with the "Export" resource of an API to retrieve a specific file associated with a job. The primary use case is to download or fetch exported data files generated by a job identified by its unique ID. For example, if a user has initiated a data export job in an external system, this node can be used to obtain the resulting file by specifying the job's ID and the filename.

Practical scenarios include:

  • Automating the retrieval of export files after a data export job completes.
  • Integrating exported data into further workflows for processing or analysis.
  • Archiving or backing up exported files programmatically.

Properties

Name Meaning
Job Id The unique identifier of the export job whose file you want to retrieve.
Filename The exact name of the file to be fetched from the export job.

Output

The node outputs JSON data representing the contents of the requested file. The structure of the JSON output depends on the file content but typically contains the exported data as parsed JSON.

If the file is binary (not indicated here), the node would provide the binary data accordingly, but based on the properties and typical usage, it primarily handles JSON/text files.

Dependencies

  • Requires access to the external API that manages export jobs and files.
  • Needs an API authentication token or key configured in n8n credentials to authorize requests to the API.
  • The base URL for the API is set to https://petstore3.swagger.io/api/v3 in the source code, which is likely a placeholder; users must configure the actual API endpoint.

Troubleshooting

  • Invalid Job Id or Filename: If the job ID or filename does not exist or is incorrect, the API will likely return an error or empty response. Verify these values before running the node.
  • Authentication Errors: Missing or invalid API credentials will cause authorization failures. Ensure the API key/token is correctly set up in n8n.
  • Network Issues: Connectivity problems to the API endpoint will prevent file retrieval. Check network access and API availability.
  • File Not Ready: If the export job is still processing, the file may not be available yet. Implement checks or delays to wait for job completion.

Links and References

Discussion