For posterity and anyone else who happens to run across this thread while scratching their head about how Server-to-Server OAuth works:
- Requesting a new Server-to-Server OAuth token invalidates the previous one.
- Zoom can increase the “index” count for your account, allowing you to request different tokens with different indexes that do not interfere with each other (i.e. requesting a token for index 1 doesn’t invalidate the token requested for index 2).
- The token index is specified in the call to https://zoom.us/oauth/token by passing the
token_index
query parameter (https://zoom.us/oauth/token?token_index=2)
This should allow folks to build out a background oauth token rotation strategy where the token is updated in a central place, using a new index value (e.g. database, AWS SSM or secrets manager, etc.) allowing applications to continue using the previous token until they can read the new value from the central location.