Instructions followed as described here: https://developer.zendesk.com/documentation/live-chat/getting-started/auth/ (which was very difficult to find, by the way!)
Making a POST request to this:
https://www.zopim.com/oauth2/token?grant_type=authorization_code&code=<redacted>&client_id=<redacted>&client_secret=<redacted>&redirect_uri=<redacted>&scope=read
Code is the code as provided to the redirect_uri in the previous step. An API client is active on the account. Response is as follows:
{
"error": "invalid_grant"
}
What am I doing wrong?
It looks like you're putting the parameters as query strings when you should be including these in the body of the request. If you adjust the request so that the params are in the body as x-www-form-urlencoded key/value pairs it should function as expected.
Hope this helps,