Hello, previously on other account I created app on marketplace and successfully
authenticated by Server-to-Server OAuth and were getting access token a few days.
And today with same credentials I can’t to get access token, nothing has changed for credentials during that period while were researching API. Now I’m getting 400 response status and body:
{
"reason": "Invalid client_id or client_secret",
"error": "invalid_client"
}
I tried to regenerate client secret at app page and I’m getting message fail_to_regenerate_secret and at network it shows 500 response status.
Created another app and there everything is working fine, but not sure what caused that issue and after that issue basically I can’t use that application and have to move every scopes from first app to second app.
Hi @peterculazh
Thanks for reaching out to us.
Could you make sure that you are using the account_credentials as the grant type?
You can check out this guide to make sure you are making the request correctly:
So both with that code or Postman, for first application I’m getting 400 status (and 500 status for regenerating client secret) and for second application I receiving access token as expected. But there no way to get 400 status on first app cuz I’m using correct credentials (copy-pasting every time)
Hello, thanks for responses. As I said, code was working fine and started at some moment receiving 400 status and message Invalid client_id or client_secret without changing code.
Today I faced same issue on another application that I’ve created at same day as first application broke and started receiving 500 status too while trying to regenerate client secret or change scope.
I’m not sure how I achieved to broke application, because used just a few endpoints: Server-to-Server OAuth, creating/deleting meetings endpoints and once used endpoint for receiving ZAK token for specified account.