How to authenticate request made from custom plugin?

Use the helper plugin, per answer here …
How to call default api endpoint in custom plugin