Invalid client when using authCode from /app/central/home

I’m working on an api client for .NET - and for testing the functionality without the whole UI flow, I want to use the authCodes generated on the page
https://accounts.infusionsoft.com/app/central/home
The API returns 401:
{
“error”: “invalid_client”
}
But the same client id is ok for generating the code (API Access => Partner). I can even generate token in the ‘Personal’ section. I triple checked my client secret. The only thing I’m not sure about is, which redirect_uri should I specify for the call to https://api.infusionsoft.com/token

I tried https://accounts.infusionsoft.com/app/central/home and also https://accounts.infusionsoft.com/app/oauth/userToken, but it’s the same.

Any help is appreciated!

The documentation on the Partner version is not public. Sorry about that. You need to send in the string null. Ideally the redirect_uri should not be needed by OAuth Spec, but out OAuth proxy provider requires it.

POST /token HTTP/1.1
Host: api.infusionsoft.com
Content-Type: application/x-www-form-urlencoded
Accept: application/json
Authorization: Basic {{super secret}}
Cache-Control: no-cache

grant_type=authorization_code&redirect_uri=null&code={{code}}

Nice, works now!

Thank you, and please add a hint in the ‘Partner’ screen.

For sure. Already created a story for it.