# chat.sprk.moderation.getActorMetadata

> Published by [sprk.so](https://lexicon.garden/identity/did:plc:cveom2iroj3mt747sd4qqnr2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/chat.sprk.moderation.getActorMetadata)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/chat.sprk.moderation.getActorMetadata/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/chat.sprk.moderation.getActorMetadata/examples)

## Definitions

### `chat.sprk.moderation.getActorMetadata`

**Type**: `query`

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `string` (did) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `all` | `ref` → `#metadata` | Yes |  |
| `day` | `ref` → `#metadata` | Yes |  |
| `month` | `ref` → `#metadata` | Yes |  |

### `chat.sprk.moderation.getActorMetadata#metadata`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `convos` | `integer` | Yes |  |
| `messagesSent` | `integer` | Yes |  |
| `convosStarted` | `integer` | Yes |  |
| `messagesReceived` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "chat.sprk.moderation.getActorMetadata",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "day",
            "month",
            "all"
          ],
          "properties": {
            "all": {
              "ref": "#metadata",
              "type": "ref"
            },
            "day": {
              "ref": "#metadata",
              "type": "ref"
            },
            "month": {
              "ref": "#metadata",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "actor"
        ],
        "properties": {
          "actor": {
            "type": "string",
            "format": "did"
          }
        }
      }
    },
    "metadata": {
      "type": "object",
      "required": [
        "messagesSent",
        "messagesReceived",
        "convos",
        "convosStarted"
      ],
      "properties": {
        "convos": {
          "type": "integer"
        },
        "messagesSent": {
          "type": "integer"
        },
        "convosStarted": {
          "type": "integer"
        },
        "messagesReceived": {
          "type": "integer"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
