Actions12
- File Actions
- Template Actions
- Job Actions
Overview
This node interacts with the Json2Doc API to manage files, templates, and document generation jobs. Specifically, for the 'File' resource and 'Generate Public Link' operation, it generates a public link for a specified file ID, allowing easy sharing or access to the file via a public URL. This is useful in scenarios where users need to share documents or files stored in Json2Doc without requiring authentication, such as sharing reports, contracts, or images publicly.
Use Case Examples
- Generate a public link for a file uploaded to Json2Doc to share it with external users.
- Automate the creation of public URLs for files stored in Json2Doc to embed in emails or websites.
Properties
| Name | Meaning |
|---|---|
| File ID | The ID of the file for which to generate a public link. This is a required string input. |
Output
JSON
url- The generated public URL link to access the file.fileId- The ID of the file for which the public link was generated.
Dependencies
- Json2Doc API key credential for authentication
Troubleshooting
- Ensure the provided File ID is valid and exists in the Json2Doc system; otherwise, the API call will fail.
- Check that the Json2Doc API key credential is correctly configured and has the necessary permissions to generate public links.
- If the API returns an error, verify network connectivity and that the Json2Doc API endpoint is reachable.
- Common error messages include invalid file ID, unauthorized access due to missing or incorrect API key, and API rate limits being exceeded.
Links
- Json2Doc API Documentation - Official documentation for the Json2Doc API, including file management and public link generation endpoints.