# chat.sprk.convo.sendMessageBatch

> 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.convo.sendMessageBatch)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/chat.sprk.convo.sendMessageBatch/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/chat.sprk.convo.sendMessageBatch/examples)

## Definitions

### `chat.sprk.convo.sendMessageBatch`

**Type**: `procedure`

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `items` | `array` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `items` | `array` | Yes |  |

### `chat.sprk.convo.sendMessageBatch#batchItem`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `convoId` | `string` | Yes |  |
| `message` | `ref` → `chat.sprk.convo.defs#messageInput` | Yes |  |

## Raw Schema

```json
{
  "id": "chat.sprk.convo.sendMessageBatch",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "items"
          ],
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "ref": "#batchItem",
                "type": "ref"
              },
              "maxLength": 100
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "items"
          ],
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "ref": "chat.sprk.convo.defs#messageView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      }
    },
    "batchItem": {
      "type": "object",
      "required": [
        "convoId",
        "message"
      ],
      "properties": {
        "convoId": {
          "type": "string"
        },
        "message": {
          "ref": "chat.sprk.convo.defs#messageInput",
          "type": "ref"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
