Obtaining token - get HTTP Basic: Access deined

Hi there,

I’ve gone through the steps required and got a code going to my callback page from an oauth approval for an app.

I have correctly included the app id and secret in the basic auth parameters.

I have added the code and grant_type parameters in the body of the post but I still get HTTP Basic: Access denied. and a 401 response from https://api.freeagent.com/v2/token_endpoint

I see quite a few other people get this issue from time to time…any ideas of what I might be doing wrong…edited curl pasted.

curl --location ‘https://api.freeagent.com/v2/token_endpoint’ \

–header ‘Authorization: Basic ********************************************’ \

–form ‘code=“**************************”’ \

–form ‘grant_type=“authorization_code”’