App Events API: Auth endpoint response does not include fields documented in the API reference

Hi @shunten31, I had a look for you and the endpoint currently returns only access_token and token_type: "Bearer" for the client credentials grant. The scope and expires_in fields shown in the App Events API reference don’t match the actual response.

Scope and expiry moved into the token itself. Decode the JWT (the docs suggest jwt.io) and the exp claim gives the expiry (tokens last 60 minutes), while the space-separated scopes claim shows what was granted. Refresh before exp rather than relying on expires_in. This thread took the same approach, using the scopes claim to check granted scopes.

For the 403, I can confirm a blank User-Agent header gets rejected, so it’s worth keeping one set in whatever HTTP client you’re using.

I’ve raised the docs mismatch with the team so the reference can be corrected - thanks for raising this here!