# ai.newnal.trustsquare.getActorHistory

> Published by [bezalel-newnal.bsky.social](https://lexicon.garden/identity/did:plc:75qhtany5zmo7d3i2ni5d7nf)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.getActorHistory)
- [Documentation](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.getActorHistory/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:75qhtany5zmo7d3i2ni5d7nf/ai.newnal.trustsquare.getActorHistory/examples)

## Definitions

### `ai.newnal.trustsquare.getActorHistory`

**Type**: `query`

Everything an account wrote on Trust Square, newest first.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `kind` | `string` | No |  |
| `actor` | `string` (at-identifier) | Yes |  |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `items` | `array` | Yes |  |
| `cursor` | `string` | No |  |

#### Errors

- **NotFound**
- **HistoryHidden**

## Raw Schema

```json
{
  "id": "ai.newnal.trustsquare.getActorHistory",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "HistoryHidden"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "items"
          ],
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "ref": "ai.newnal.trustsquare.defs#historyItem",
                "type": "ref"
              }
            },
            "cursor": {
              "type": "string"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "actor"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "default": "all",
            "knownValues": [
              "all",
              "comment",
              "chat"
            ]
          },
          "actor": {
            "type": "string",
            "format": "at-identifier"
          },
          "limit": {
            "type": "integer",
            "default": 30,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "description": "Everything an account wrote on Trust Square, newest first."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
