HTTP gateway works as an Upstream gateway in iTextHub whereas HTTP API is used to submit the traffic to iTextHub (Downstream).