APIs & Integrations

ANavghane
Member

Missing or unknown auth code

Hello All,

I am new to hubspot OAuth integration.

this is my request body:

 

 

{
      grant_type: 'authorization_code',
      client_id: '549a5b94-63de-433f-9665-blabla',
      client_secret: 'xxxxxxxxxxxxxx',
      redirect_uri: 'blabla',
      code: 'eu1-950d-da6c-4c18-b1d2-cd733a5de4aa'
}

 

 

 After getting the authorization code from the browser I am hitting postman API with the above request body to get refresh & access tokens.

Here is the error I am getting.

 

 

{
    "status": "BAD_AUTH_CODE",
    "message": "missing or unknown auth code",
    "correlationId": "7bacae46-e492-4e2b-ac0c-0df0f7ccd044"
}

 

 

Thanks in advance.

1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

Missing or unknown auth code

@ANavghane 

Is this still occurring?  can you take a screengrab of your postman setup (blur out the secret)

0 Upvotes