created webserver to send requests / retrieve messages through an api