# chat.sprk.convo.sendMessage

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

## Definitions

### `chat.sprk.convo.sendMessage`

**Type**: `procedure`

#### Input

**Encoding**: `application/json`

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

#### Output

**Encoding**: `application/json`

## Raw Schema

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