Web API for adding notes?

I’d love to be able to do this to create notes based on to-do tasks in other to-do apps, among other things…