https://www.webmd.com/skin-problems-and-treatments/ss/slideshow-guide-to-essential-oils
Notice the statements from
@phinds. The link discusses how they are used, but does not promote them. Some plant oils like vanillin (vanilla) and menthols (mint) are used in very small amounts as flavoring.
They are generally not just one simple compound, but rather a mixture, example Mentha (Latin genus name for mint):
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6139362/
As the essential oils are purified, their effects change. Cinnamon is an example:
https://www.webmd.com/vitamins/ai/ingredientmono-330/ceylon-cinnamon
The ground up bark improves nice pastries, for example. Holiday cookies and pies are made with cinnamon bark. Virtually anyone can eat them with no ill effect from the cinnamon.
On the other hand:
The concentrated essential oil is not considered safe to take by mouth and is a terrible irritant to the eyes. It is used in tiny amounts to make redhots - a candy that is hot - hot in the sense of chile pepper, black pepper, or wasabi. It is infused into alcholic beverages too.