app.didpic.chat.sendMessage

lexicons.didpic.app

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Send a message into a conversation the caller participates in. Content is exactly one of: text and/or an image and/or a linkPreview, or a bare sharedPostUri with none of the others. image and linkPreview don't combine. replyToMessageId, if present, must reference a message in the same conversation. Fails with Blocked for a 2-person conversation frozen by a block either direction.",
      "errors": [
        {
          "name": "Blocked"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "conversationId": {
              "type": "string"
            },
            "image": {
              "properties": {
                "height": {
                  "minimum": 1,
                  "type": "integer"
                },
                "key": {
                  "type": "string"
                },
                "width": {
                  "minimum": 1,
                  "type": "integer"
                }
              },
              "required": [
                "key",
                "width",
                "height"
              ],
              "type": "object"
            },
            "linkPreview": {
              "properties": {
                "description": {
                  "maxLength": 500,
                  "type": "string"
                },
                "imageHeight": {
                  "minimum": 1,
                  "type": "integer"
                },
                "imageKey": {
                  "type": "string"
                },
                "imageWidth": {
                  "minimum": 1,
                  "type": "integer"
                },
                "title": {
                  "maxLength": 300,
                  "type": "string"
                },
                "url": {
                  "format": "uri",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ],
              "type": "object"
            },
            "replyToMessageId": {
              "type": "string"
            },
            "sharedPostUri": {
              "format": "at-uri",
              "type": "string"
            },
            "text": {
              "type": "string"
            }
          },
          "required": [
            "conversationId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "message": {
              "ref": "app.didpic.chat.defs#messageView",
              "type": "ref"
            }
          },
          "required": [
            "message"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.didpic.chat.sendMessage",
  "lexicon": 1
}

Validate Record

Validate a record against app.didpic.chat.sendMessage

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:an2jtp4jgkkbtmwfzhpbxawd
CID
bafyreifi5zg5xso2vt74ucuao7kzj2qrtjnfn55rlh5jg3wr5mjd5pkuga
Indexed At
2026-10-11 02:09 UTC
AT-URI
at://did:plc:an2jtp4jgkkbtmwfzhpbxawd/com.atproto.lexicon.schema/app.didpic.chat.sendMessage

Version History (3 versions)

Referenced Schemas (1)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@