Auhtorization bearer token / mchat upload server url


Trying to automate some task at work, and one of the script requires authorization bearer token, to upload some text file via api request, and Im new to mchat platform, is there a way to generate authentication bearer token via curl, I checked from settings under profile, it’s not there either, or this need to ask our admin for this. Also for the upload server url, I notice the end is like /api/v4/files , is this the default?