If you are a developer and you want to integrate MCLeaks into your client here is all you need.
The MCLeaks REST API handles requests and gives responses in JSON.
If you have problems or questions according to the API contact us on Twitter.


Info

If an error occurs whilst handling the request the response will be like the following example:

{
  "success": false,
  "errorMessage": "Some example error message here"
}
POST http://auth.mcleaks.net/v1/redeem

Redeems an ALT-TOKEN and returns the username of the alt and a Session-ID for further requests with this alt.

Request-Body: (Example)

{
  "token": "GFUGuKqxCDHjdNAz"
}

Response: (Example)

{
  "success": true,
  "result": {
    "mcname": "Notch",
    "session": "KPwjccRMHq3Rv866HVCTSNzdKNxq7nXH3kR5nzGVPAC9yy56kyQ3be7LTu2RGQqz"
  }
}
POST http://auth.mcleaks.net/v1/joinserver

Sends the request to the Mojang sessionserver with the alt's accesstoken (https://sessionserver.mojang.com/session/minecraft/join) to validate the alt.

Request-Body: (Example)

{
  "session": "KPwjccRMHq3Rv866HVCTSNzdKNxq7nXH3kR5nzGVPAC9yy56kyQ3be7LTu2RGQqz",   # Session-ID from /redeem request
  "mcname": "Notch",                                                               # McName from /redeem request
  "serverhash": "-1ja8s98dhj92h9aasd8",                                            # ServerHash
  "server": "mc.hypixel.net:25565"                                                 # Address and port to target server
}

Response: (Example)

{
  "success": true,
  "result": []
}