Sloth Lee mascotSloth LeeSloth Lee The Ninja Sloth for busy Discord servers

Developer

Sloth Lee API Reference

Build moderation dashboards, ticket automations, and operational workflows with a stable REST API designed for real Discord server operations.

Base URL

https://dissident.mastertibbles.co.uk

Authentication

Use a dashboard-issued API key via bearer auth.
Authorization: Bearer sk_live_xxxxxxxxx

Rate Limits

Starter: 120 req/min, Pro: 1200 req/min. Responses include X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers.

Request Example

curl -X GET "https://dissident.mastertibbles.co.uk/api/v1/server/stats" \
  -H "Authorization: Bearer sk_live_xxxxxxxxx" \
  -H "Accept: application/json"

Endpoint Groups

Observability

GET/api/v1/server/statsauth: required

Retrieve moderation and activity metrics for dashboards and weekly reports.

GET/api/v1/logsauth: required

Query moderation actions with filters for actor, action type, and time range.

Ticket Operations

GET/api/v1/ticketsauth: required

List open and historical tickets, including assignee and priority metadata.

POST/api/v1/tickets/createauth: required

Create a ticket from external forms or escalation systems.

Enforcement

PUT/api/v1/config/rulesauth: required

Update moderation thresholds and escalation profiles for a server.

POST/api/v1/actions/banauth: required

Trigger a ban action with reason and audit metadata.

Response Model

Success

{
  "ok": true,
  "request_id": "a9d2f31e3d154a8b",
  "data": {
    "server_id": "123456789012345678",
    "threat_level": "low",
    "tickets_open": 12,
    "actions_24h": 47
  }
}

Error

{
  "ok": false,
  "request_id": "a9d2f31e3d154a8b",
  "error": {
    "code": "RATE_LIMITED",
    "message": "Retry after 24 seconds",
    "retry_after": 24
  }
}

Status Codes

200 OK

Request succeeded and returned usable payload data.

201 Created

A new ticket or config object was created successfully.

400 Bad Request

Payload failed validation or required fields were missing.

401 Unauthorized

Bearer key is missing, invalid, or revoked.

403 Forbidden

Key is valid but lacks server or action scope.

404 Not Found

Requested resource or server context does not exist.

429 Too Many Requests

Rate window exceeded; respect retry headers.

500 Server Error

Unexpected server-side fault; retry with request_id.