LeaderOS API
  • 👋Getting Started
    • Introduction
    • Authentication
  • 🔐Auth
    • Login
    • Register
    • Sessions
  • 🧑‍🦱Users
    • Profiles
    • Roles
    • Tickets
    • Orders
  • 🛍️Store
    • Listing
    • Products
    • Categories
    • Buy
    • Donations
  • 🍏Bazaar
    • Player Storages
    • Servers
  • 🚨Support
    • Tickets
    • Messages
    • Categories
    • Quick Answers
  • 🪙Credits
    • Show Credits
    • Add Credits
    • Remove Credits
    • Send Credits
    • Set Credits
  • 👍Vote
    • Vote Links
  • 🎮Discord
    • Users
    • Settings
    • Roles
Powered by GitBook
On this page
  1. Auth

Sessions

GET https://yourwebsite.com/api/auth/sessions/<token>

{
    "status": true
}
{
    "status": false,
    "error": "SESSION_NOT_FOUND",
    "message": "Session not found!"
}

POST https://yourwebsite.com/api/auth/sessions

Request Body

Name
Type
Description

userID*

int

ip*

string

expires

string

Datetime (2025-01-20 15:30:20)

{
    "status": true,
    "token": "202cb962ac59075b964b07152d234b70"
}
{
    "status": false,
    "error": "USER_NOT_FOUND",
    "message": "User not found!"
}
PreviousRegisterNextUsers

Last updated 4 months ago

🔐