Updated documentation to include reference to api as its required