Skip to main content

List blacklist entries

List organization blacklist entries (email and domain). Requires an authenticated user session with admin permission in the organization.

GET/api/blacklist
HTTP referenceScope session (admin)Updated September 27, 2026

This page documents the canonical HTTP contract for this endpoint.

This endpoint is organization-scoped and requires user_admin. Developer API keys are blocked; use an authenticated user session. The handler catches admin-check exceptions and returns HTTP 500 Failed to fetch blacklist, rather than propagating the expected permission 403. Pagination and search are read-only; unknown query parameters are ignored by FastAPI.

Query parameters

  • type_filter · optional

    string

    Exact stored type filter; use all (default), email, or domain.

  • search · optional

    string

    Case-insensitive regex search over value, reason, and notes.

  • page · optional

    integer

    1-based page number (default: 1).

  • limit · optional

    integer

    Page size (default: 100). The route declares no explicit min/max.

Errors

StatusMeaning
401Missing or invalid user session.
403Developer API keys are blocked; an authenticated user_admin session is required.
422Invalid query parameter type.
500List handler returns Failed to fetch blacklist for caught query or admin-check errors.

Docs