pass docs and callback url in params