I am trying to refresh a token but keep getting “response_type or grant_type is required” error message and status code 400.
In docs there is no mention of response_type parameter so not sure what to enter and I do have grant_type:refresh_token defined as parameter.
My post url is :
https://api.infusionsoft.com/token?grant_type=refresh_token&refresh_token=mysecret-refresh-token
and my headers are defined as
Content-Type:application/x-www-form-urlencoded
Authorization:Basic A2o41234MzRoXmF1bmZ4a3FmdXgzb1234560V2g3NVFt123=
Host:api.infusionsoft.com
In both postman and my code I get error
{
“error”: “invalid_request”,
“error_description”: “response_type or grant_type is required”
}