Custom plugin api token

i am making a custom plugin and i want to target api/upload/files, so i am wondering if there is a way i could automatically recieve an api token inside a plugin to make this available? i assume it should be done by creating an api token inside admin panel but i want the plugin to use it automatically

This topic has been created from a Discord post (1251524942881886300) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord