GET
/
api
/
v1
/
moderations
/
search
Search moderations
curl --request GET \
  --url https://core.ermbot.xyz/api/v1/moderations/search \
  --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
  }
}

Authorizations

Authorization
string
header
required
Guild
string
header
required

Query Parameters

snowflake
integer
username
string
user_id
integer
type
string
reason
string
moderator
string
moderator_id
integer
epoch
integer
until_epoch
integer
after
integer
limit
integer

Response

200 - application/json

Search results

The response is of type object.