Fragbots

Get Fragbots

GET https://fragbots.antonio32a.com/

This endpoint returns all online fragbots and their queues.

[
    {
        "username": "frag1",
        "guildId": "something",
        "queue": [ 
            "user1", 
            "user2"
        ]
    },
    {
        "username": "frag2",
        "guildId": "something",
        "queue": [ 
            "user3", 
            "user5", 
            "user5" 
        ]
    }
]

Get Whitelist

GET https://fragbots.antonio32a.com/whitelist

This endpoint returns all trimmed Minecraft UUIDs of all people who are whitelisted.

[
    "6c0254d81d9041bdb75fdca14935fd3e",
    "689ff4bbf61e4e0594e01066892b0bbe"
]

Get User

GET https://fragbots.antonio32a.com/user

This endpoint returns your user data.

Path Parameters

{
    "success": true,
    "invites": 32,
    "uuid": "6c0254d81d9041bdb75fdca14935fd3e",
    "discord": "166630166825664512"
}

Authentication

Authenticating allows you to get a token which is used for some of the requests listed above.

1. Send Mojang the hash

POST https://sessionserver.mojang.com/session/minecraft/join

This endpoint tells Mojang that you're joining a server, but in our case it's used to confirm the hash.

Request Body

2. Send neppy backend the hash

POST https://fragbots.antonio32a.com/authenticate

This endpoint tells neppy backend your username and your hash so it can be verified. This must be sent after the first request.

Path Parameters

{
    "success": true,
    "token": "tX2NfdAOIcM19I3PfAtjYDuto8HdAow0d4zQLSM32iMD5H1GIeYY47nktr46NXP",
    "expiresAt": 1616853123922
}

3. Renew the token every 4 hours

POST https://fragbots.antonio32a.com/renew

This endpoint will renew your session.

Path Parameters

{
    "success": true,
    "expiresAt": 1616853123922
}

Last updated