a couple of utility functions for making API requests to Charon, can also work as express middleware.