<?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: I'm struggleing to download a single file from the API in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635424#M29316</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587824"&gt;@novaut&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I'm following the &lt;SPAN&gt;App Authentication example&lt;/SPAN&gt;&amp;nbsp;from&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/reference/auth-types#app" target="_blank" rel="noopener"&gt;https://www.dropbox.com/developers/reference/auth-types#app&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why it doesn't work? I just want to use the API in a simple way.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587824"&gt;@novaut&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Wow, wow, wow... &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt; I haven't seen this big fault of Dropbox documentation. You can call some API endpoints with application authorization only when public data are handled (i.e. data for links etc). The examples shown there are completely wrong! Application authorization is designated for application confirmation (no some user authentication), that's why you can NOT access any user data in such a way. As noted in your error message for such thing bearer access token is needed (something showing that the particular user grant access to its data) - something you miss. That's why it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; Another stupid thing is statement:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;... This can be done either as separate strings, as shown in the first two examples below, or as an base64-encoded Basic authorization string in the Authorization header ...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The Basic authentication is ALWAYS performed with base64 encoding!!! You can do it explicitly or let curl does it internally. The person typing this documentation needs some tutorials...&lt;/P&gt;&lt;P&gt;Anyway... since you need user access, you need &lt;A title="User Authentication" href="https://www.dropbox.com/developers/reference/auth-types#user" target="_blank" rel="noopener"&gt;user authentication too&lt;/A&gt;. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; You need least access token (as noted there). Keep in mind that such a token is short lived. It's enough for single time use or use in relatively short period of time. If you need to gain access for longer period (without automatic expiration), than refresh token is needed too. You can take a look &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/m-p/592921/highlight/true#M27586" target="_blank" rel="noopener"&gt;here&lt;/A&gt; how you can manage this.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 13:41:17 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2022-11-09T13:41:17Z</dc:date>
    <item>
      <title>I'm struggleing to download a single file from the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635413#M29315</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm struggleing to download a single file from the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm &lt;SPAN&gt;supplying the app key and secret for App Authentication but I'm getting this error:&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Error&amp;nbsp;in&amp;nbsp;call&amp;nbsp;to&amp;nbsp;API&amp;nbsp;function&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"files/download"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;Invalid&amp;nbsp;authorization&amp;nbsp;value&amp;nbsp;in&amp;nbsp;HTTP&amp;nbsp;header&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Authorization"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Basic YWFhYWFhYWFhYWFhYWFhOmJiYmJiYmJiYmJiYmJiYg=="&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp;&amp;nbsp;Expecting&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Bearer&amp;nbsp;&amp;lt;oauth2-access-token&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm following the &lt;SPAN&gt;App Authentication example&lt;/SPAN&gt;&amp;nbsp;from&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/reference/auth-types#app" target="_blank" rel="noopener"&gt;https://www.dropbox.com/developers/reference/auth-types#app&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why it doesn't work? I just want to use the API in a simple way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and all the best &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 09:32:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635413#M29315</guid>
      <dc:creator>novaut</dc:creator>
      <dc:date>2022-11-10T09:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: I'm struggleing to download a single file from the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635424#M29316</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587824"&gt;@novaut&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I'm following the &lt;SPAN&gt;App Authentication example&lt;/SPAN&gt;&amp;nbsp;from&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/reference/auth-types#app" target="_blank" rel="noopener"&gt;https://www.dropbox.com/developers/reference/auth-types#app&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why it doesn't work? I just want to use the API in a simple way.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587824"&gt;@novaut&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Wow, wow, wow... &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@D88F213CAFB196B6AB70612B08AD9D31/emoticons/1f601.png" alt=":beaming_face_with_smiling_eyes:" title=":beaming_face_with_smiling_eyes:" /&gt; I haven't seen this big fault of Dropbox documentation. You can call some API endpoints with application authorization only when public data are handled (i.e. data for links etc). The examples shown there are completely wrong! Application authorization is designated for application confirmation (no some user authentication), that's why you can NOT access any user data in such a way. As noted in your error message for such thing bearer access token is needed (something showing that the particular user grant access to its data) - something you miss. That's why it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; Another stupid thing is statement:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;... This can be done either as separate strings, as shown in the first two examples below, or as an base64-encoded Basic authorization string in the Authorization header ...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The Basic authentication is ALWAYS performed with base64 encoding!!! You can do it explicitly or let curl does it internally. The person typing this documentation needs some tutorials...&lt;/P&gt;&lt;P&gt;Anyway... since you need user access, you need &lt;A title="User Authentication" href="https://www.dropbox.com/developers/reference/auth-types#user" target="_blank" rel="noopener"&gt;user authentication too&lt;/A&gt;. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; You need least access token (as noted there). Keep in mind that such a token is short lived. It's enough for single time use or use in relatively short period of time. If you need to gain access for longer period (without automatic expiration), than refresh token is needed too. You can take a look &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/m-p/592921/highlight/true#M27586" target="_blank" rel="noopener"&gt;here&lt;/A&gt; how you can manage this.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 13:41:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635424#M29316</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-09T13:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: I'm struggleing to download a single file from the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635434#M29318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for helping me.&lt;/P&gt;&lt;P&gt;I need to find an easy way to get the file from my Dropbox account.&lt;/P&gt;&lt;P&gt;I have API key, API Secret and I can't get the Authorization Code to get the Bearer Token because&amp;nbsp;it asks me to login with my Dropbox username and password.&lt;/P&gt;&lt;P&gt;How can I do it with a request from my server?&lt;/P&gt;&lt;P&gt;It's complex to understand.&lt;/P&gt;&lt;P&gt;Thanks again &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 14:15:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635434#M29318</guid>
      <dc:creator>novaut</dc:creator>
      <dc:date>2022-11-09T14:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: I'm struggleing to download a single file from the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635436#M29319</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587824"&gt;@novaut&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... it asks me to login with my Dropbox username and password.&lt;/P&gt;&lt;P&gt;How can I do it with a request from my server?&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hm... &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Sometime ago was an option to generate long lived access token for long term access. Unfortunately, since long lived access token is retired already, no way to generate credentials for long term access in such a way (not yet at least). That's why you need to login once (at least) to create your credentials (such login doesn't need to be on the server - you can do it anywhere) and after that you can use available credentials on your server without logging in anymore (the refresh token keeps your granting). &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; That's it.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 14:25:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635436#M29319</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-09T14:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: I'm struggleing to download a single file from the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635482#M29323</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have generated credentials once as authorization_code and bearer_token but it expires.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to refresh the authorization_code and got "error_description": "code does not exist or expired".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you confirm if this information still alive? "refresh_token String? A unique, long-lived token that can be used to request new short-lived access tokens without direct interaction from a user in your app."&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have to refresh the&amp;nbsp;authorization_code every 3 hours to keep it long-lived?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 17:12:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635482#M29323</guid>
      <dc:creator>novaut</dc:creator>
      <dc:date>2022-11-09T17:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: I'm struggleing to download a single file from the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635488#M29324</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587824"&gt;@novaut&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I have generated credentials once as authorization_code and bearer_token but it expires.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, that exactly what I said!!!&lt;/P&gt;&lt;P&gt;Seems you haven't read my posts before (my post before the last my post too). Read them with care! Code is for one time use - it can't be reused.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: The code is NOT part of your credentials!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 17:31:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635488#M29324</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-09T17:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: I'm struggleing to download a single file from the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635511#M29327</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587824"&gt;@novaut&lt;/a&gt; To download a file, it is correct to use the /2/files/download endpoint. You can find the information for using that endpoint in &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_blank"&gt;the documentation for /2/files/download here&lt;/A&gt;. As shown there, that endpoint supports "&lt;A href="https://www.dropbox.com/developers/reference/auth-types#user" target="_blank"&gt;User Authentication&lt;/A&gt;", but not "&lt;A href="https://www.dropbox.com/developers/reference/auth-types#app" target="_blank"&gt;App Authentication&lt;/A&gt;". There's also an curl example for that endpoint in endpoint documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, &lt;A href="https://www.dropbox.com/developers/reference/auth-types" target="_blank"&gt;the "Authentication types" page&lt;/A&gt; lists different types that are used by different endpoints of the Dropbox API, but not every endpoint supports every type. The examples under each type show some example(s) of an endpoint which do support that type. For instance, the examples under "App Authentication" show the use of /2/files/get_thumbnail_v2, which does support App Authentication, but not /2/files/download.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, to call /2/files/download, you need to use "&lt;A href="https://www.dropbox.com/developers/reference/auth-types#user" target="_blank"&gt;User Authentication&lt;/A&gt;", which requires the an OAuth 2 access token as a "Bearer" token. It's not possible to successfully call /2/files/download using an app key/secret as "Basic" authorization.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And as Здравко noted, you need to authorize the app manually once, after which you can use the (short-lived) access token and refresh token. The "authorization code" can only be used once, in the process of retrieving the access token and refresh token. The refresh token doesn't expire automatically though, and can be re-used repeatedly without manual intervention to retrieve new short-lived access tokens whenever needed. You can find more information in the &lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank" rel="noopener noreferrer"&gt;OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank" rel="noopener noreferrer"&gt;authorization documentation&lt;/A&gt;. There's a basic outline of processing this flow in &lt;A href="https://dropbox.tech/developers/using-oauth-2-0-with-offline-access" target="_blank"&gt;this blog post&lt;/A&gt; which may serve as a useful example.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 18:44:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635511#M29327</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-11-09T18:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: I'm struggleing to download a single file from the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635517#M29328</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... For instance, the examples under "App Authentication" show the use of /2/files/get_thumbnail_v2, which does support App Authentication, ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; Hm.. really... let's see this ' for instance':&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;PRE&gt;curl -X POST "https://content.dropboxapi.com/2/files/get_thumbnail_v2" -u "&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;APP_KEY&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;:&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt;APP_SECRET&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;" \
  --header "Dropbox-API-Arg: {\"resource\": {\".tag\": \"path\",\"path\": \"/a.docx\"},\"format\": \"jpeg\",\"size\": \"w64h64\",\"mode\": \"strict\"}"&lt;/PRE&gt;&lt;PRE&gt;curl -X POST "https://&amp;lt;APP_KEY&amp;gt;:&amp;lt;APP_SECRET&amp;gt;@content.dropboxapi.com/2/files/get_thumbnail_v2" \
  --header "Dropbox-API-Arg: {\"resource\": {\".tag\": \"path\",\"path\": \"/a.docx\"},\"format\": \"jpeg\",\"size\": \"w64h64\",\"mode\": \"strict\"}"&lt;/PRE&gt;&lt;PRE&gt;curl -X POST "https://content.dropboxapi.com/2/files/get_thumbnail_v2" \&lt;BR /&gt;  --header "Authorization: Basic &amp;lt;base64(APP_KEY:APP_SECRET)&amp;gt;" \
  --header "Dropbox-API-Arg: {\"resource\": {\".tag\": \"path\",\"path\": \"/a.docx\"},\"format\": \"jpeg\",\"size\": \"w64h64\",\"mode\": \"strict\"}"&lt;/PRE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Which one is correct? 🧐 If any...&lt;/P&gt;&lt;P&gt;... Where is the error? 🙋&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 19:01:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635517#M29328</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-09T19:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: I'm struggleing to download a single file from the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635522#M29329</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt; Those three examples show three different ways of supplying the app key and secret to curl. I seems you're hinting that the calls overall don't make sense otherwise though as the use of the "path" in the sample parameters won't work for app authentication in particular. I'll ask the team to fix that up.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 19:29:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635522#M29329</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-11-09T19:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: I'm struggleing to download a single file from the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635660#M29333</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I understood how it works.&lt;/P&gt;&lt;P&gt;One question for how long refresh_token is alive? Is it long-lived?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I s&lt;SPAN&gt;uccessfully&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;got the file from Dropbox using the refresh_token and it doesn't ask for http authentication &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you so much for your help &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 09:37:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635660#M29333</guid>
      <dc:creator>novaut</dc:creator>
      <dc:date>2022-11-10T09:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: I'm struggleing to download a single file from the API</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635695#M29334</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587824"&gt;@novaut&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;One question for how long refresh_token is alive? Is it long-lived?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587824"&gt;@novaut&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, it's long lived token. The refresh token remains valid till explicit revoke either from application itself or user that granted access for your application to its data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1587824"&gt;@novaut&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;...&lt;/P&gt;&lt;P&gt;I s&lt;SPAN&gt;uccessfully&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;got the file from Dropbox using the refresh_token and it doesn't ask for http authentication &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You make me doubt you have understand everything correctly. You can download a file only with access token authentication, not directly with refresh token!!! The refresh token helps you keep receiving valid access token without further user actions. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Hope this was just a confusion while typing.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 13:02:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/I-m-struggleing-to-download-a-single-file-from-the-API/m-p/635695#M29334</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-11-10T13:02:13Z</dc:date>
    </item>
  </channel>
</rss>

