Port apiv3 doc to middleman