# List blocked domains (Admin)

Retrieves the complete list of domains that are blocked, including all metadata such as private comments, exact domain names, and internal settings. This endpoint is for administrators only.

RBAC:
- requires ANY of Federation.Read, Federation.Manage

Endpoint: GET /api/v1/admin/domain-block
Version: 1.0
Security: header

## Query parameters:

  - `lastId` (string,null)
    Get older records (records with IDs less than this value) Alias maxId/max_id
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

  - `limit` (integer,null)

  - `offset` (integer,null)

  - `sortBy` (string,null)

  - `sortOrder` (string,null)
    Sort order. Supported values: ASC or DESC

  - `untilId` (string,null)
    Get newer records (records with IDs greater than this value) Alias minId/min_id
    Example: "us_01hxcvk1hjexere4pvtrj0ymqq"

## Response 200 fields (application/json):

  - `domain` (string, required)
    The blocked domain name. May be obfuscated in public endpoints if obfuscate flag is set.
    Example: "spam.example"

  - `publicComment` (string, required)
    Public-facing comment explaining why the domain was blocked
    Example: "Repeated spam violations"

  - `state` (string, required)
    The severity level of the domain block
    Enum: "SUSPEND", "LIMIT", "NOOP"

  - `rejectMedia` (boolean, required)
    Whether to reject and remove media files from this domain
    Example: true

  - `rejectReports` (boolean, required)
    Whether to ignore reports coming from this domain

  - `privateComment` (string, required)
    Internal comment visible only to moderators and administrators
    Example: "Multiple verified spam reports from trusted instances"

  - `obfuscate` (boolean, required)
    Whether to partially obfuscate the domain name in public listings

  - `createdAt` (string, required)
    Timestamp when the domain block was created
    Example: "2022-03-10T16:15:50Z"

  - `updatedAt` (string, required)
    Timestamp when the domain block was last updated
    Example: "2022-03-10T16:15:50Z"


