In order to list all the available environments you can use the EnvironmentList endpoint:
This will list all the environments the API token creator has access to. If you want to restrict the list to a certain project, you can use the
project=<project-id> query parameter:
The project id is available under the project Settings.