added endpoint to api