GET
/
api
/
v1
/
leaves
Get all leaves
curl --request GET \
  --url https://core.ermbot.xyz/api/v1/leaves \
  --header 'Authorization: <api-key>' \
  --header 'Guild: <api-key>'
{
  "data": [
    {
      "id": {
        "$oid": "<string>"
      },
      "user_id": 123,
      "reason": "<string>",
      "message_id": 123,
      "type_": "<string>",
      "guild": 123,
      "expiry": 123,
      "expired": true,
      "accepted": true,
      "denied": true,
      "voided": true
    }
  ],
  "pagination": {
    "next_cursor": 123,
    "limit": 123,
    "has_more": true
  }
}
Leaves are paginated using Unix epoch timestamps for chronological ordering.

Cursor Format

  • Type: Unix Epoch (int64)
  • Example: 1702544876
  • 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 leaves

The response is of type object.