<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot download a file through the api call in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-download-a-file-through-the-api-call/m-p/548060#M26097</link>
    <description>&lt;P&gt;A 200 status code indicates that the call succeeded, which for /2/files/download means that the requested file data is returned in the response body. So, it looks like your "a.csv" file actually contains that sample curl code, and your client is showing it as text there in that "Body" section.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 15:04:09 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-09-30T15:04:09Z</dc:date>
    <item>
      <title>Cannot download a file through the api call</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-download-a-file-through-the-api-call/m-p/546647#M26054</link>
      <description>&lt;P&gt;I cannot download files with the api-call bellow&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;curl --location --request POST '&lt;A href="https://content.dropboxapi.com/2/files/download" target="_blank" rel="noopener"&gt;https://content.dropboxapi.com/2/files/download&lt;/A&gt;' \ --header 'Authorization: Bearer &amp;lt;REDACTED&amp;gt;' \ --header 'Content-Type: application/octet-stream; charset=utf-8' \ --header 'Dropbox-API-Select-User: dbmid:AADVooZVTYhULkIUtBUVxhZRu0VePEYdr8A' \ --header 'Dropbox-API-Arg: {"path": "/TasosFolder/a.csv"}'&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The path is correct but I get&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{ "error_summary": "path/not_found/.", "error": { ".tag": "path", "path": { ".tag": "not_found" } } }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The file as you can see in the image bellow is in the correct path:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-09-23 at 7.18.02 PM.png" style="width: 200px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/25372iBDD88F7D648148D7/image-size/small?v=v2&amp;amp;px=200" role="button" title="Screenshot 2021-09-23 at 7.18.02 PM.png" alt="Screenshot 2021-09-23 at 7.18.02 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is important since I have implemented code for getting all the files from a directory and I have stuck here and this is for a customer who want to have access in getting data from Dropbox through my company's product.&lt;/P&gt;
&lt;P&gt;Can anyone help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance,&lt;/P&gt;
&lt;P&gt;Tasos&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 20:26:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-download-a-file-through-the-api-call/m-p/546647#M26054</guid>
      <dc:creator>tasos91</dc:creator>
      <dc:date>2021-09-24T20:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot download a file through the api call</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-download-a-file-through-the-api-call/m-p/546664#M26055</link>
      <description>&lt;P&gt;It looks like the file you're referring to is located in the "team space". API calls default to the "member folder", not the team space though, so to access anything in the team space you will need to also specify the "Dropbox-API-Path-Root" header. Please refer to&amp;nbsp;the Team Files Guide for information on using that: &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank"&gt;https://developers.dropbox.com/dbx-team-files-guide&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, note that access tokens enable access to Dropbox accounts/teams, so for the sake of security, you should never share access tokens like this. I redacted it from your post, but since this access token has been shared here, you should disable this access token. You can do so by revoking access to the app entirely, if the access token is for your team and you are a team admin, here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/team/admin/settings/team_apps" rel="noreferrer" target="_blank"&gt;https://www.dropbox.com/team/admin/settings/team_apps&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Or, you can disable just this access token using the API:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke" rel="noreferrer" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Note that doing so will cause any further API calls made using this access token to fail. This cannot be undone, and you would need to get a new access token to replace this one.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 17:08:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-download-a-file-through-the-api-call/m-p/546664#M26055</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-09-23T17:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot download a file through the api call</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-download-a-file-through-the-api-call/m-p/547898#M26092</link>
      <description>&lt;P&gt;Ok now this is my request&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl &lt;/SPAN&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;location &lt;/SPAN&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;request POST &lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://content.dropboxapi.com/2/files/download" target="_blank"&gt;https://content.dropboxapi.com/2/files/download&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;header &lt;/SPAN&gt;&lt;SPAN&gt;'Authorization: Bearer &amp;lt;token&amp;gt;'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;header &lt;/SPAN&gt;&lt;SPAN&gt;'Content-Type: application/octet-stream; charset=utf-8'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;header &lt;/SPAN&gt;&lt;SPAN&gt;'Dropbox-API-Select-User: dbmid:AABpiqc0an7cRcBJJuGjlVKAqP4NcHekymI'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;header &lt;/SPAN&gt;&lt;SPAN&gt;'Dropbox-API-Path-Root: {".tag": "root", "root":"2005609681"}'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;header &lt;/SPAN&gt;&lt;SPAN&gt;'Dropbox-API-Arg: {"path": "/TasosFolder/a.csv"}'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And the response I get is three curls with status 200..I don't think that this is what I expected right? &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;curl -X POST &lt;A href="https://api.dropboxapi.com/2/auth/token/from_oauth1" target="_blank"&gt;https://api.dropboxapi.com/2/auth/token/from_oauth1&lt;/A&gt; \&lt;BR /&gt;--header "Authorization: Basic ==" \&lt;BR /&gt;--header "Content-Type: application/json" \&lt;BR /&gt;--data "{\"oauth1_token\": \"\",\"oauth1_token_secret\": \"\"}"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;curl -X POST &lt;A href="https://api.dropboxapi.com/2/check/user" target="_blank"&gt;https://api.dropboxapi.com/2/check/user&lt;/A&gt; \&lt;BR /&gt;--header "Authorization: Bearer &amp;lt;token&amp;gt;" \&lt;BR /&gt;--header "Content-Type: application/json" \&lt;BR /&gt;--data "{\"query\": \"foo\"}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -X POST &lt;A href="https://api.dropboxapi.com/2/files/get_metadata" target="_blank"&gt;https://api.dropboxapi.com/2/files/get_metadata&lt;/A&gt; \&lt;BR /&gt;--header "Authorization: Bearer &amp;lt;token&amp;gt;" \&lt;BR /&gt;--header "Content-Type: application/json" \&lt;BR /&gt;--header "Dropbox-API-Select-User: tasos.sotiriou91@gmail.com" \&lt;BR /&gt;--data "{\"path\": \"/Homework/math\",\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false}"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;curl -X POST &lt;A href="https://api.dropboxapi.com/2/file_requests/list_v2" target="_blank"&gt;https://api.dropboxapi.com/2/file_requests/list_v2&lt;/A&gt; \&lt;BR /&gt;--header "Authorization: Bearer &amp;lt;token&amp;gt;" \&lt;BR /&gt;--header "Content-Type: application/json" \&lt;BR /&gt;--data "{\"limit\": 1000}"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;curl -X POST &lt;A href="https://api.dropboxapi.com/2/files/get_metadata" target="_blank"&gt;https://api.dropboxapi.com/2/files/get_metadata&lt;/A&gt; \&lt;BR /&gt;--header "Authorization: Bearer &amp;lt;token&amp;gt;" \&lt;BR /&gt;--header "Content-Type: application/json" \&lt;BR /&gt;--header 'Dropbox-API-Select-User: dbmid:AADVooZVTYhULkIUtBUVxhZRu0VePEYdr8A' \&lt;BR /&gt;--data "{\"path\": \"/Content/Aisera/\",\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false}"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;curl --location --request POST '&lt;A href="https://api.dropboxapi.com/2/files/list_folder" target="_blank"&gt;https://api.dropboxapi.com/2/files/list_folder&lt;/A&gt;' \&lt;BR /&gt;--header 'Authorization: Bearer &amp;lt;token&amp;gt;' \&lt;BR /&gt;--header 'Content-Type: application/json' \&lt;BR /&gt;--header 'Dropbox-API-Select-User: dbmid:AADVooZVTYhULkIUtBUVxhZRu0VePEYdr8A' \&lt;BR /&gt;--data-raw '{&lt;BR /&gt;"path": "/Nested_Folder/",&lt;BR /&gt;"shared_link": {&lt;BR /&gt;"url": "&lt;A href="https://www.dropbox.com/scl/fo/c226494o7l56vislcx3e6/AACvV0kUpMlUupr-4zcwnZRma?dl=0" target="_blank"&gt;https://www.dropbox.com/scl/fo/c226494o7l56vislcx3e6/AACvV0kUpMlUupr-4zcwnZRma?dl=0&lt;/A&gt;"&lt;BR /&gt;}&lt;BR /&gt;}'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;curl -X POST &lt;A href="https://api.dropboxapi.com/2/files/get_metadata" target="_blank"&gt;https://api.dropboxapi.com/2/files/get_metadata&lt;/A&gt; \&lt;BR /&gt;--header "Authorization: Bearer &amp;lt;token&amp;gt;" \&lt;BR /&gt;--header 'Dropbox-API-Select-User: dbmid:AADVooZVTYhULkIUtBUVxhZRu0VePEYdr8A' \&lt;BR /&gt;--header "Content-Type: application/json" \&lt;BR /&gt;--data "{\"path\": \"/\",\"include_media_info\": false,\"include_deleted\": false,\"include_has_explicit_shared_members\": false}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;{"path":"\/Aisera","shared_link":{"url":"https:\/\/&lt;A href="http://www.dropbox.com\" target="_blank"&gt;www.dropbox.com\&lt;/A&gt;/scl\/fo\/c226494o7l56vislcx3e6\/AACvV0kUpMlUupr-4zcwnZRma?dl=0"}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Also, You can see the image bellow of what I get&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-09-30 at 12.41.07 AM.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/25476iD24401626423B059/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-09-30 at 12.41.07 AM.png" alt="Screenshot 2021-09-30 at 12.41.07 AM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Sep 2021 21:45:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-download-a-file-through-the-api-call/m-p/547898#M26092</guid>
      <dc:creator>tasos91</dc:creator>
      <dc:date>2021-09-29T21:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot download a file through the api call</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-download-a-file-through-the-api-call/m-p/548060#M26097</link>
      <description>&lt;P&gt;A 200 status code indicates that the call succeeded, which for /2/files/download means that the requested file data is returned in the response body. So, it looks like your "a.csv" file actually contains that sample curl code, and your client is showing it as text there in that "Body" section.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:04:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-download-a-file-through-the-api-call/m-p/548060#M26097</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-09-30T15:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot download a file through the api call</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-download-a-file-through-the-api-call/m-p/548064#M26099</link>
      <description>&lt;P&gt;I confirmed with customer! You have right! Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:16:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Cannot-download-a-file-through-the-api-call/m-p/548064#M26099</guid>
      <dc:creator>tasos91</dc:creator>
      <dc:date>2021-09-30T15:16:40Z</dc:date>
    </item>
  </channel>
</rss>

