Jump to content

Minehut API Auth


succpw

Recommended Posts

Hi there,

I couldn't find the authentication required for the Minehut API. It says in the docs "Requires authorization." but I can not find how to get authorization.

I guessed this would be with request headers, but can anyone tell me the type?

Thanks!

Link to comment
Share on other sites

Requires authorization means it's limited to staff.

First Joined: July 2015
VIP: January 2020
Jr.Mod: 1st April 2020
Mod: 16th July 2020

Info:

~ Skript Developer
~ Discord: @nicholxs#0001
~ Previous names: Nichxlxs, Deterno, iHaveSkills, Retrical

Link to comment
Share on other sites

POST /users/login with the email and password should return a token and a session ID. You will need "authorization" and "x-session-id" headers for any request that requires authorization. If you do not send a request every few minutes, the session will expire and a new one will be needed. "Requires authorization" does not mean it's limited to staff. I have some code examples using JS, but I'm replying on my phone right now, so let me know if you need them and I can provide them.

  • Like 1

Member of the Minehut community since June 2016
        Contact me on Discord: @iGalaxy#2018

 Check me out on the Minehut Market: Click Here

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...