Error
A valid request URL is required to generate request examples{
"success": true,
"data": {
"cartItemCount": 123,
"user": {
"id": 123,
"username": "<string>",
"displayName": "<string>",
"email": "<string>",
"credits": 123,
"avatar": "<string>",
"isEmailVerified": true,
"isStaff": true,
"isTfaRequired": true,
"discordUserID": "<string>",
"roles": [
{
"id": 123,
"name": "<string>",
"slug": "<string>",
"usernameCSS": "<string>",
"badgeCSS": "<string>"
}
],
"permissions": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"creditsFormatted": "<string>"
}
},
"message": "<string>"
}{
"success": false,
"error": {
"code": "UNAUTHENTICATED",
"message": "..."
}
}{
"success": false,
"error": {
"code": "LICENSE_INVALID",
"message": "..."
}
}Site
Visitor session
Only the visitor-specific part of the bootstrap: the current user (if a Bearer token is sent) and the cart item count. Much lighter than /site/bootstrap, so a frontend can cache the public bootstrap and call this per visitor, in parallel with the page data.
GET
/
site
/
session
Error
A valid request URL is required to generate request examples{
"success": true,
"data": {
"cartItemCount": 123,
"user": {
"id": 123,
"username": "<string>",
"displayName": "<string>",
"email": "<string>",
"credits": 123,
"avatar": "<string>",
"isEmailVerified": true,
"isStaff": true,
"isTfaRequired": true,
"discordUserID": "<string>",
"roles": [
{
"id": 123,
"name": "<string>",
"slug": "<string>",
"usernameCSS": "<string>",
"badgeCSS": "<string>"
}
],
"permissions": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"creditsFormatted": "<string>"
}
},
"message": "<string>"
}{
"success": false,
"error": {
"code": "UNAUTHENTICATED",
"message": "..."
}
}{
"success": false,
"error": {
"code": "LICENSE_INVALID",
"message": "..."
}
}