Support optional agent or proxy settings when creating API object
Report initial request errors