Session

Class Basics

Class Path /v4/sessions
Identifier Property accessToken
Class Methods None
Instance Methods GET, DELETE

Example Instance

{
  "accessToken": "4Il6iHU68VuZc3e7VrqksTu0UIC_8haalgYelsOn-Og",
  "refreshToken": "ARbbvXzPHjXGNQgHH4uRgBCrMp2hAcT_YVAIvENOVWg",
  "accessTokenExpiration": 1748468482,
  "refreshTokenExpiration": 1751056882,
  "userId": "e51fe8d0-3db2-40ec-9323-bbaeedfb6f1a",
  "application": {
    "id": "413d18e9-790c-4477-bcbe-ae31cf1227f0",
    "name": "Dingbot",
    "website": "https://jiinuko.edu/ehreg"
  },
  "scopes": [
    "common",
    "users:read"
  ]
}

Properties

Property Type Notes
accessToken String  
refreshToken String  
accessTokenExpiration Timestamp  
refreshTokenExpiration Timestamp  
userId UUID  
application Object Object containing keys id, name, and website which describe the authorized application.
scopes Array List of scopes the user has authorized

Alias

The path /v4/session serves as an alias for /v4/sessions/{sessionId} to access the current session instance. This means requests GET /v4/session and DELETE /v4/session are valid requests to avoid unnecessarily repeating the access token in both the path and headers.