Gmail - read an email by ID

I want to get an Gmail email ID from Google Tasks task and extract the email body, sender, recipients and other metadata, attachments etc. and save it into my PM app, but I don’t see a module that can retrieve an email by ID. I’ve looked into the docs, searched the forum and nothing. Any ideas?