def get_environment_from_request(self) -> Environment:
        """
        Get environment object from URL parameters in request.
        """
        return get_object_or_404(
            Environment, api_key=self.kwargs["environment_api_key"]
        )

        Get environment object from URL parameters in request.
        
api/edge_api/identities/views.py