I'm trying to make a bot for my minehut server, and I want to start the server with the bot. I'm having trouble at the authorization part because it always says that my session has expired even if it hasn't. I can't seem to figure out the API headers.
@client.command()
async def start(ctx):
payload = {"authorization": "djskj123i2130239", "x-session-id": "kjlhijofghu89238723912"}
r = requests.post("https://api.minehut.com/server/myserverid/start_service", data=payload)
print(r.text)
(the authorization thing and session id thing are obviously fake)