[GH-ISSUE #2265] Add API support to download template & return direct download URL #649

Open
opened 2026-02-26 18:47:55 +03:00 by kerem · 3 comments
Owner

Originally created by @prathaya135 on GitHub (Dec 1, 2025).
Original GitHub issue: https://github.com/documenso/documenso/issues/2265

Feature Description

Currently, there is no API endpoint available to download a stored template or retrieve its direct download URL. This makes it difficult to integrate Documenso with external systems that need to fetch template documents programmatically.

Requested feature

Provide an API endpoint that allows downloading a template file by template ID.

Optionally return a direct download URL in the response (either public or time-limited signed URL).

Problem solved

Many automation and backend workflows require downloading templates dynamically (e.g., generating contracts from an external platform). Since there is no way to fetch the actual template file, integrations become blocked or require manual work.

GET /api/templates/{templateId}/download

{
"templateId": "123",
"fileName": "NDA.pdf",
"downloadUrl": "https://documenso.com/api/.../signed-url"
}

Use Case

No response

Proposed Solution

No response

Alternatives (optional)

No response

Additional Context

No response

Please check the boxes that apply to this feature request.

  • I have searched the existing feature requests to make sure this is not a duplicate.
  • I have provided a detailed description of the requested feature.
  • I have explained the use case or scenario for this feature.
  • I have included any relevant technical details or design suggestions.
  • I understand that this is a suggestion and that there is no guarantee of implementation.
  • I want to work on creating a PR for this issue if approved
Originally created by @prathaya135 on GitHub (Dec 1, 2025). Original GitHub issue: https://github.com/documenso/documenso/issues/2265 ### Feature Description Currently, there is no API endpoint available to download a stored template or retrieve its direct download URL. This makes it difficult to integrate Documenso with external systems that need to fetch template documents programmatically. Requested feature Provide an API endpoint that allows downloading a template file by template ID. Optionally return a direct download URL in the response (either public or time-limited signed URL). Problem solved Many automation and backend workflows require downloading templates dynamically (e.g., generating contracts from an external platform). Since there is no way to fetch the actual template file, integrations become blocked or require manual work. GET /api/templates/{templateId}/download { "templateId": "123", "fileName": "NDA.pdf", "downloadUrl": "https://documenso.com/api/.../signed-url" } ### Use Case _No response_ ### Proposed Solution _No response_ ### Alternatives (optional) _No response_ ### Additional Context _No response_ ### Please check the boxes that apply to this feature request. - [ ] I have searched the existing feature requests to make sure this is not a duplicate. - [ ] I have provided a detailed description of the requested feature. - [ ] I have explained the use case or scenario for this feature. - [ ] I have included any relevant technical details or design suggestions. - [ ] I understand that this is a suggestion and that there is no guarantee of implementation. - [ ] I want to work on creating a PR for this issue if approved
Author
Owner

@github-actions[bot] commented on GitHub (Dec 1, 2025):

Thank you for opening your first issue and for being a part of the open signing revolution!

One of our team members will review it and get back to you as soon as it possible 💚

Meanwhile, please feel free to hop into our community in Discord

<!-- gh-comment-id:3595799413 --> @github-actions[bot] commented on GitHub (Dec 1, 2025): Thank you for opening your first issue and for being a part of the open signing revolution! <br /> One of our team members will review it and get back to you as soon as it possible 💚 <br /> Meanwhile, please feel free to hop into our community in [Discord](https://documen.so/discord)
Author
Owner

@Nabeel-N commented on GitHub (Dec 6, 2025):

can i work on this issue?

<!-- gh-comment-id:3619685765 --> @Nabeel-N commented on GitHub (Dec 6, 2025): can i work on this issue?
Author
Owner

@parthbhanti22 commented on GitHub (Dec 6, 2025):

Can I work on this issue?

<!-- gh-comment-id:3620682295 --> @parthbhanti22 commented on GitHub (Dec 6, 2025): Can I work on this issue?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#649
No description provided.