...
To generate a personal access token in the web client, navigate to your Settings page, scroll to the bottom of the screen, and click the Manage Personal Access Tokens button. You can view a list of the existing tokens and their permissions, or click Create New Token to generate a new personal access token with customized access to your Synapse account.
See Client Configuration /wiki/spaces/DOCS/pages/1985446156 for more information on configuring Synapse clients using an access token.
...
Synapse also currently supports a legacy API key that can be used in place of a password, however api API key support is considered deprecated in favor of personal access tokens.
...