Update api.rst

Fix the log uri and adding run with cli example