How to download work item attachments using Zoho Sprints API?

How to download work item attachments using Zoho Sprints API?

Hello, Community!

I am adding an attachment to a work item using Zoho Sprints API and the endpoint Additemattachments https://sprints.zoho.com/apidoc.html#Additemattachments.
The response contains links in props DOWNLOAD_URL and DOCS_DOWNLOAD_URL (as in documentation example) like: https://docs.zoho.eu/api/v2/files/download?resourceId=dbiu145a6f90eacea472591c41b308a07e7c6

When I try to download it using the same credentials with scope ZohoSprints.items.ALL I get the 401 status and the response with the message "Invalid Oauth Scope".
Which scope do I have to use?

I'm able to download the file using this link in a browser when I logged in, but I am looking for a way to download it programmatically .

The same result I get when I try to read the list of work item's attachments using the same URL with GET method /team/{teamId}/projects/{projectId}/sprints/{sprintId}/item/{itemId}/attachments/. The same link in the response as in Additemattachments.

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation
                                              • Sticky Posts

                                              • Launching the API Guide for Zoho Sprints

                                                The term "API" stands for "Application Programming Interface". It is a set of rules that help you create and integrate applications that can access the data from a different server or an application. Breaking this definition further, it is a medium for two different platforms to interact with each other without any glitches. How important is an API to a customer? APIs play a significant role in our daily routine. Right from booking a cab to one's workplace, making an online money transfer to a friend,


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now