hacked support for ag-api response types, added authorization header to support writes