Notes attachment in documents module

Good Morning. I'm trying to display the notes attachment in documents module through programmatically. But I don't know how to start the task. Will it be done through API? 

Francesca Shiekh