melonly logomelonly logo
melonly logo
Dashboard
Log in

List Log Types

Lists the log types you can create: the five built-in types, then your server's custom types. Use this to build a punishment picker in your bot.

GET

/api/v1/server/log-types

Request

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

Response

200

Success

{
  "data": [
    {
      "custom": true,
      "dontCount": true,
      "name": "Strongly Worded Warning",
      "premium": true,
      "type": 5,
      "typeId": "7334638128784740352",
      "verb": "Strongly Worded"
    }
  ]
}

Authorization

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

Response

200 Success

custombooleanrequired
Whether it's one of the server's custom types.
dontCountbooleanrequired
Whether logs of this type are left out of punishment counts.
namestringrequired
Display name.
premiumbooleanrequired
Whether creating this type needs premium.
typeintegerrequired
Value for a log's type.
typeIdstring | null
Value for a log's typeId. Custom types only.
verbstring | null
Past tense action, such as Warned. Missing for notes and ban BOLOs.

Errors

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