To get the environment ids that can be used while making API requests, use the "List all environments endpoint". The response will contain a list of all available environments along with their identifiers (id).