POST Request to refresh Box access token


I am trying to replicate what is explained in the following links,

however I always receive the following error;
“error” : “invalid_request”,
“error_description” : “Invalid grant_type parameter or parameter missing”

I am using POST request, put the link in the URL field and requested the header “content-type” as header key and “application/x-www-form-urlencoded” as header value (without quotes).

Can someone help with my set up please? How can I include the request in the body?

    -d "client_id=[CLIENT_ID]" \
     -d "client_secret=[CLIENT_SECRET]" \
     -d "refresh_token=[REFRESH_TOKEN]" \
     -d "grant_type=refresh_token"

or this one;

 -d '{
    "client_id": "[CLIENT_ID]",
    "client_secret": "[CLIENT_SECRET]",
    "refresh_token": "[REFRESH_TOKEN]",
    "grant_type": "refresh_token"

Thanks in advance.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.