# app.lovesky.chat.sendMessage

> Published by [toddlambert.com](https://lexicon.garden/identity/did:plc:r5pj64joaywqnvk2obembpt7)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:r5pj64joaywqnvk2obembpt7/app.lovesky.chat.sendMessage)
- [Documentation](https://lexicon.garden/lexicon/did:plc:r5pj64joaywqnvk2obembpt7/app.lovesky.chat.sendMessage/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:r5pj64joaywqnvk2obembpt7/app.lovesky.chat.sendMessage/examples)

## Definitions

### `app.lovesky.chat.sendMessage`

**Type**: `procedure`

Send a message in one of the caller's conversations. Requires an authenticated Lovesky session.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `convoId` | `string` | Yes |  |
| `text` | `string` | Yes |  |

#### Output

**Encoding**: `application/json`

#### Errors

- **ConvoNotFound**: No such conversation, or the caller is not part of it.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Send a message in one of the caller's conversations. Requires an authenticated Lovesky session.",
      "errors": [
        {
          "description": "No such conversation, or the caller is not part of it.",
          "name": "ConvoNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "convoId": {
              "type": "string"
            },
            "text": {
              "maxGraphemes": 1000,
              "maxLength": 10000,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "convoId",
            "text"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "app.lovesky.chat.defs#messageView",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.lovesky.chat.sendMessage",
  "lexicon": 1
}
```
