Get Session Settings

Gets your session settings, including the custom AOPs you can pass as customAopId.

GET

/api/v1/server/session-settings

Request

curl -X GET "https://api.melonly.com/api/v1/server/session-settings" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

200

Success

{
  "data": {
    "autoKickWhileDown": false,
    "autoPostFullMessage": true,
    "autoShutdown": true,
    "boostMentionRoles": [],
    "customAops": [
      {
        "id": "7400000000000000123",
        "name": "Springfield only (no highway pursuits)"
      }
    ],
    "defaultAop": 4,
    "defaultAopCustomId": "7400000000000000123",
    "defaultMinVotes": 5,
    "enabled": true,
    "endShiftsOnShutdown": true,
    "pingVotersOnStartup": true,
    "pollMentionRoles": [
      "1100000000000000003"
    ],
    "sessionMentionRoles": [
      "1100000000000000003"
    ],
    "sessionsChannel": "1100000000000000002",
    "shutdownInGame": false
  }
}

Authorization

Authorizationstringrequired
Your API token as Bearer YOUR_TOKEN. Create one in your server's dashboard settings.

Response

200 Success

autoKickWhileDownbooleanrequired
Kick players who join while no session is active.
autoPostFullMessagebooleanrequired
Post the server full message automatically.
autoShutdownbooleanrequired
Shut sessions down automatically when the server empties.
boostMentionRolesstring[]required
Discord role IDs pinged for a boost message.
customAopsobject[]required
The server's custom AOPs, usable as customAopId.
enabledbooleanrequired
Whether the sessions module is on. Session and poll writes are refused while it's off.
endShiftsOnShutdownbooleanrequired
End everyone's shift when a session is shut down.
pingVotersOnStartupbooleanrequired
Ping everyone who voted when the session starts.
pollMentionRolesstring[]required
Discord role IDs pinged for a new poll.
sessionMentionRolesstring[]required
Discord role IDs pinged when a session starts.
shutdownInGamebooleanrequired
Also shut the ER:LC server down in game when a session is shut down.
defaultAopinteger | null
AOP sessions start with in the dashboard. Same values as a session's aop.
defaultAopCustomIdstring | null
The default custom AOP, when defaultAop is 4.
defaultMinVotesinteger | null
Votes a poll needs when votesRequired is left out.
sessionsChannelstring | null
Discord channel sessions and polls are posted in.

Errors

StatusMeaning
401Missing, invalid or expired token
429Rate limited. See Retry-After and details.
500Internal server error