REST API fro notes