Unable to get token from oauth2 with private app registration

ESmith069
Member

Hi. So I'm attempting to test my app's client id/secret using curl with something like:

curl --request POST --url https://api.hubapi.com/oauth/v1/token --header 'Content-Type: application/x-www-form-urlencoded' --data 'grant_type=authorization_code&client_id=[redacted]&client_secret=[redacted]&code=[redacted]&redirect_uri=http://localhost:3000'

Where the client id/secret are from the auth tab of my private app, and the code is from the installation flow.

When I attempt this connection, I get back

{"status":"BAD_CLIENT_ID","message":"missing or unknown client id","correlationId":"070e1847-7bd3-4d25-98a0-2c4b864df0f9"}

 

However the client id/secret used are correct, I have triple checked them.

I'm not sure what the problem here is. AFAIK anyting except oauth2 is deprecated now so I'm not sure how I can work around this issue?

0 Upvotes
1 Reply 1
Jaycee_Lewis
Thought Leader

Hey, @ESmith069 👋 Welcome to the community! Can you link to the doc/guide you are using, please? I haven't had a chance to test all the updated auth methods. I want to make sure this is a feature that is available to Public and Private apps. — Jaycee





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




0 Upvotes