Forum Discussion

Ashley B.10's avatar
Ashley B.10
Explorer | Level 3
5 years ago

Export API

I've been looking at the current API https://www.dropbox.com/developers/documentation/http/documentation#files-export and was wondering if you could help

 

I assume this the endpoint I used to export Google Docs, Sheets etc?

 

I get the following error:

path/restricted_content/
 
I have the header Dropbox-API-Select-Admin set with the team admin id
Dropbox-API-Arg header set with {"path":"id:MY_FILE_ID"}
 
Am I missing something?
Thanks
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    That's correct, that's the endpoint you should use for exporting the content of files that can't be downloaded in the normal way, like cloud-hosted docs such as Google Docs.

     

    That 'path/restricted_content/' error indicates that the file you're requesting has been flagged as restricted (e.g., for malware, DMCA, etc.). If you believe that the file has been incorrectly flagged, contact support for help:

    https://www.dropbox.com/support

    • Ashley B.10's avatar
      Ashley B.10
      Explorer | Level 3
      Hi,
      Thanks for the reply, the document is a google document with three lines of text?

      Seems abit extreme
      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        Thanks for following up. It's possible it is incorrectly marked, so feel free to contact support for review it.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 2 days ago
351 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!