> ## Documentation Index
> Fetch the complete documentation index at: https://docs.snipp.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Block User

Block a user by ID.

## Behavior

* Blocking is bidirectional in effect. Blocked users cannot see your posts or profile, and you cannot see theirs.
* Blocking an already-blocked user succeeds without error.
* You cannot block yourself.

## Examples

```bash theme={null}
curl -X POST "https://relay.snipp.gg/block" \
  -H "relay-key: YOUR_RELAY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"targetId": "123456789012345678"}'
```

## Responses

```json theme={null}
{
  "blocked": true
}
```

Blocking an already-blocked user succeeds and includes a `message`:

```json theme={null}
{
  "blocked": true,
  "message": "User is already blocked."
}
```
