finding all the attachments

Hello Christoph,
I was able to run the above code but it does not return anything. I am using company_id which has 10+ attachements when I look into Hubspot portal.
The notes section for this company is empty in the portal. Since in the above code we are querying “notes”, my question is are we using the right

“to_object_type”
Thank you all for all the ongoing help with this.