| description |
|---|
The central page for the API Documentation. |
When authorizing yourself with the Minehut API, you need two values: your token, and your session id.
Currently, there is not a good way to login programmatically, so you will need to grab these two values yourself:
- Open the Minehut panel
- Press CTRL + Shift + I on the panel to open Developer Tools
- Click on the tab named
Applicationin Developer Tools. - Double click
Local Storage, and a new panel labeledhttps://minehut.comwill show up. Click that. - Now write down the values of the fields
minehut_auth_tokenandminehut_session_idas your token and session id respectively. - Now, when making a request to an API endpoint that requires authorization, pass your token as the
authorizationheader, and your session id as thex-session-idheader. - If all has been done correctly, you should now be authorized.
The base URL for the Minehut API is https://api.minehut.com. Whenever you want to make a request to an endpoint, you want to grab it's path and append it to the base URL. For example:
https://api.minehut.com/server/boredcafe?byName=true
https://api.minehut.com/file/5fd6bea356e73b13b37f2527/list//
{% hint style="info" %} Tokens and session ids expire whenever you login or logout of your account. {% endhint %}