API for notes