Authenticate via API
Some Loculus endpoints require authentication in order to use them. In order to use these endpoints you need to get a JSON web token.
To determine the URL to the Keycloak server, see Where are the APIs?. Given the URL, you can get the token with the following cURL call:
This will print the JSON web token. The access token is in the field access_token
.