How to get your Minecraft bearer token

What is a Minecraft bearer token?

A bearer token is a long string of letters and numbers used to authenticate your account with their private API.

NOTE: Bearer tokens only last 24 hours.

Get your bearer token

You now have your minecraft account's bearer token.

IMPORTANT: if you give someone this token they basically have full control of your Minecraft account. They could even change the password.