Add support for calling API over proxy.