<?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: Help with creating long-lived token in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-with-creating-long-lived-token/m-p/777826#M33970</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1847864"&gt;@CanadianIT&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;My issue is with trying to generate a long-lived token.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Long-lived tokens were deprecated back in 2021 and can no longer be created. You now use refresh tokens to retrieve new short-lived tokens as needed. See here for more information:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/We-need-Long-live-access-token/m-p/629344/highlight/true#M29066" target="_blank"&gt;https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/We-need-Long-live-access-token/m-p/629344/highlight/true#M29066&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Mon, 17 Jun 2024 18:24:40 GMT</pubDate>
    <dc:creator>Rich</dc:creator>
    <dc:date>2024-06-17T18:24:40Z</dc:date>
    <item>
      <title>Help with creating long-lived token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-with-creating-long-lived-token/m-p/777818#M33969</link>
      <description>&lt;P&gt;I'm quite new to using the API, but I was successful once and trying to follow the same steps with no luck.&amp;nbsp; My issue is with trying to generate a long-lived token.&amp;nbsp; I am creating my new app, and getting my "App Key" and "App Secret".&amp;nbsp; I then generate an "Access Token".&amp;nbsp; From there, I use this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/oauth2/authorize?response_type=code&amp;amp;client_id=APP_KEY&amp;amp;redirect_uri=REDIRECT_URI" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize?response_type=code&amp;amp;client_id=APP_KEY&amp;amp;redirect_uri=REDIRECT_URI&lt;/A&gt;&amp;nbsp; which then returns an "auth code" in the URL.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using that Auth Code I use the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -X POST "&lt;A href="https://api.dropboxapi.com/oauth2/token" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token&lt;/A&gt;" ^&lt;BR /&gt;-d code=AUTH_CODE ^&lt;BR /&gt;-d grant_type=authorization_code ^&lt;BR /&gt;-u APP_KEY:APP_SECRET&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But every single time I get "{"error": "invalid_grant", "error_description": "redirect_uri mismatch"}" and not sure what I am doing wrong.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 17:38:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-with-creating-long-lived-token/m-p/777818#M33969</guid>
      <dc:creator>CanadianIT</dc:creator>
      <dc:date>2024-06-17T17:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with creating long-lived token</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-with-creating-long-lived-token/m-p/777826#M33970</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1847864"&gt;@CanadianIT&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;My issue is with trying to generate a long-lived token.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Long-lived tokens were deprecated back in 2021 and can no longer be created. You now use refresh tokens to retrieve new short-lived tokens as needed. See here for more information:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/We-need-Long-live-access-token/m-p/629344/highlight/true#M29066" target="_blank"&gt;https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/We-need-Long-live-access-token/m-p/629344/highlight/true#M29066&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 17 Jun 2024 18:24:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-with-creating-long-lived-token/m-p/777826#M33970</guid>
      <dc:creator>Rich</dc:creator>
      <dc:date>2024-06-17T18:24:40Z</dc:date>
    </item>
  </channel>
</rss>

