added docs for api