<?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 Refresh OAuth 2.0 Access Token returns &amp;quot;status&amp;quot; JSON key rather than &amp;quot;error&amp;quot; despite documentation in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Refresh-OAuth-2-0-Access-Token-returns-quot-status-quot-JSON-key/m-p/274932#M25013</link>
    <description>&lt;P&gt;A POST request to:&lt;/P&gt;&lt;PRE&gt;https&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;api&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;hubapi&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;com&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;oauth&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;v1&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;token&lt;/PRE&gt;&lt;P&gt;with request parameters as such:&lt;/P&gt;&lt;PRE&gt;data = { &lt;BR /&gt;    "grant_type": "refresh_token",
    "client_id": client_id,
    "client_secret": client_secret,
    "refresh_token": refresh_token
 }&lt;/PRE&gt;&lt;P&gt;returns:&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;    "status": "BAD_REFRESH_TOKEN",&lt;BR /&gt;    "message": "missing or invalid refresh token",&lt;BR /&gt;    "correlationId": "x-x-x-x-x",&lt;BR /&gt;    "requestId": "x"}&lt;/PRE&gt;&lt;P&gt;rather than:&lt;/P&gt;&lt;PRE&gt;{
  "error": "error_code",
  "error_description": "A human readable error message"
}&lt;/PRE&gt;&lt;P&gt;which is specified at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/methods/oauth2/refresh-access-token" target="_blank"&gt;https://developers.hubspot.com/docs/methods/oauth2/refresh-access-token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2019 04:24:51 GMT</pubDate>
    <dc:creator>CoderAcademy</dc:creator>
    <dc:date>2019-06-13T04:24:51Z</dc:date>
  </channel>
</rss>

