rest api for knp