Get Infraction Settings

Gets your guidelines and point thresholds.

GET

/api/v1/server/infraction-settings

Request

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

Response

200

Success

{
  "data": {
    "autoTerm": false,
    "expire": true,
    "expireDuration": 90,
    "flowData": [
      [
        0,
        2,
        "Warning"
      ],
      [
        1,
        4,
        "Suspension"
      ],
      [
        2,
        8,
        "Termination"
      ]
    ],
    "guidelines": {
      "7375594080912281600": {
        "id": "7375594080912281600",
        "name": "Being AFK",
        "points": 2,
        "shortDescription": "Standing still for too long."
      }
    },
    "suspensionDuration": 7
  }
}

Authorization

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

Response

200 Success

autoTermbooleanrequired
Whether reaching the termination threshold removes the member automatically.
flowDataobject[][]required
Point thresholds as [action, points, label].
guidelinesobjectrequired
Guidelines by ID. Each has name, shortDescription, description and points.
expireboolean | null
Whether infractions expire.
expireDurationinteger | null
Days until infractions expire.
suspensionDurationinteger | null
Default suspension length in days.

Errors

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