# Domain-blocks

Manage user-level domain blocks to filter content from specific federated servers. All endpoints require authentication. Domain blocks hide posts and notifications from the blocked domain and remove followers from it.

## List of blocked domains for the user

 - [GET /api/v1/user-domain-block](https://docs.wellesley.social/openapi/domain-blocks/paths/~1api~1v1~1user-domain-block/get.md): Returns the list of all domains currently blocked by the authenticated user. Each entry is a domain string (e.g. 'example.com').

## Unblock previously blocked domain

 - [DELETE /api/v1/user-domain-block/{domain}](https://docs.wellesley.social/openapi/domain-blocks/paths/~1api~1v1~1user-domain-block~1%7Bdomain%7D/delete.md): Removes a domain block for the authenticated user, restoring content visibility from that domain. Returns an error if the domain is not currently blocked.

## Block specific domain

 - [POST /api/v1/user-domain-block/{domain}](https://docs.wellesley.social/openapi/domain-blocks/paths/~1api~1v1~1user-domain-block~1%7Bdomain%7D/post.md): Block a domain to:
            * hide all public posts from it
            * hide all notifications from it
            * remove all followers from it
            * prevent following new users from it (but does not remove existing follows)

