clean up process_response_body
adding function stubs for api endpoints

copied from API doc index