# community.gifthood.feed.getActivity

> 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.feed.getActivity)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.feed.getActivity/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7prvtl4j6wsfmkrfrnwknuxj/community.gifthood.feed.getActivity/examples)

## Definitions

### `community.gifthood.feed.getActivity`

**Type**: `query`

The signed-in viewer's two-directional gifting activity — outgoing interests + incoming raised hands on their listings, merged newest-first by createdAt. Viewer-private: resolved from the session (no actor param); an unauthenticated caller gets an AuthRequired error.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | Maximum rows fetched per direction (interests, hands); the merged feed can return up to twice this. A safety cap, not a pagination control — pagination is reserved (see cursor). |
| `cursor` | `string` | No | Reserved for future pagination; ignored in this version. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No | Reserved; not emitted in this version. |
| `activity` | `array` | Yes | The merged activity rows, newest-first by createdAt. |

#### Errors

- **AuthRequired**: No authenticated viewer. This feed is inherently viewer-private and is never served unauthenticated — the caller (the page) owns any login redirect.

## Raw Schema

```json
{
  "id": "community.gifthood.feed.getActivity",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthRequired",
          "description": "No authenticated viewer. This feed is inherently viewer-private and is never served unauthenticated — the caller (the page) owns any login redirect."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "activity"
          ],
          "properties": {
            "cursor": {
              "type": "string",
              "description": "Reserved; not emitted in this version."
            },
            "activity": {
              "type": "array",
              "items": {
                "ref": "community.gifthood.feed.defs#activityView",
                "type": "ref"
              },
              "description": "The merged activity rows, newest-first by createdAt."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "limit": {
            "type": "integer",
            "default": 100,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum rows fetched per direction (interests, hands); the merged feed can return up to twice this. A safety cap, not a pagination control — pagination is reserved (see cursor)."
          },
          "cursor": {
            "type": "string",
            "description": "Reserved for future pagination; ignored in this version."
          }
        }
      },
      "description": "The signed-in viewer's two-directional gifting activity — outgoing interests + incoming raised hands on their listings, merged newest-first by createdAt. Viewer-private: resolved from the session (no actor param); an unauthenticated caller gets an AuthRequired error."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
