# community.gifthood.graph.getBlocks

> Published by [gifthood.community](https://lexicon.garden/identity/did:plc:7prvtl4j6wsfmkrfrnwknuxj)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.graph.getBlocks)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.graph.getBlocks/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.graph.getBlocks/examples)

## Definitions

### `community.gifthood.graph.getBlocks`

**Type**: `query`

Enumerate the accounts blocked by the authenticated viewer (their own block list). Viewer-private: requires a session (AuthRequired logged-out). No actor parameter — only the caller's own list is accessible. Each row is the medium profileView (identity-only; no viewer object, since the block relationship is trivially known). Unbounded and unordered this version; cursor is reserved for future pagination and is never emitted.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No | Reserved for future pagination; the full list is returned this version and no cursor is emitted. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `blocks` | `array` | Yes | The blocked accounts, identity-only. |
| `cursor` | `string` | No | Reserved for future pagination; absent this version. |

#### Errors

- **AuthRequired**: The caller is not authenticated; the block list is viewer-private and requires a session.

## Raw Schema

```json
{
  "id": "community.gifthood.graph.getBlocks",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthRequired",
          "description": "The caller is not authenticated; the block list is viewer-private and requires a session."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "blocks"
          ],
          "properties": {
            "blocks": {
              "type": "array",
              "items": {
                "ref": "community.gifthood.actor.defs#profileView",
                "type": "ref"
              },
              "description": "The blocked accounts, identity-only."
            },
            "cursor": {
              "type": "string",
              "description": "Reserved for future pagination; absent this version."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "cursor": {
            "type": "string",
            "description": "Reserved for future pagination; the full list is returned this version and no cursor is emitted."
          }
        }
      },
      "description": "Enumerate the accounts blocked by the authenticated viewer (their own block list). Viewer-private: requires a session (AuthRequired logged-out). No actor parameter — only the caller's own list is accessible. Each row is the medium profileView (identity-only; no viewer object, since the block relationship is trivially known). Unbounded and unordered this version; cursor is reserved for future pagination and is never emitted."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
