Notion API call in Code block

Hello Community,

for a workflow I am building, I would like to send an API request within a code node (explicitly not in a resource node).

For the authentication, I would like to use the same setup as used when adding it to the connected resources (see screenshot), but I don't know how to properly set up this connection in the code block.

If there might even be a way, how to refer to the already connected resource within my code node, I would be happy as well - the only requirement is - as mentioned before - that I don't want to use a resource node or loop node.

Thanks in advance for your hints:)