GET
/
api
/
v1
/
moderations
Get all moderations
curl --request GET \
  --url https://core.ermbot.xyz/api/v1/moderations \
  --header 'Authorization: <api-key>' \
  --header 'Guild: <api-key>'
{
  "data": [
    {
      "id": {
        "$oid": "<string>"
      },
      "user_id": 123,
      "username": "<string>",
      "guild": 123,
      "type_": "<string>",
      "reason": "<string>",
      "moderator": "<string>",
      "moderator_id": 123,
      "epoch": 123,
      "until_epoch": 123
    }
  ],
  "pagination": {
    "next_cursor": 123,
    "limit": 123,
    "has_more": true
  }
}
Moderations are paginated using Discord snowflakes for guaranteed sequential ordering.

Cursor Format

  • Type: Discord Snowflake (int64)
  • Example: 1090340521350131742
  • Ordering: Descending (newest first)

Authorizations

Authorization
string
header
required
Guild
string
header
required

Query Parameters

after
integer
limit
integer

Response

200 - application/json

List of moderations

The response is of type object.