You all helped me earlier in the week so here's another... I want to call a view from an erlang function which I can get to work by changing the path_parts on a #httpd such as this: NewReq=Req#httpd{path_parts=[_DbName, _Design, DesignName, <<"_view">>, <<"myView">>]}, couch_httpd_view:handle_view_req(NewReq, Db); This works and returns all the docs from _view/myView. Now, how do I go about adding a query argument such as ?key="someValue" to the #httpd? I see where couch_httpd_view:handle_view_req has a function for method="POST" that extracts a "keys" list but I'm not sure how to set them within the httpd record. Erlang rookie here... Thanks Mike