{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Sends a post to up to eight accounts, with an optional note. It reaches a recipient who follows the sender, on Orbyt or the connected network, and who neither blocks nor is blocked by them; a send of the same post to the same account again is not delivered twice. The answer says who it reached, never why it did not reach the rest. Rate-limited per sender.",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "InvalidRequest"
        },
        {
          "name": "RateLimitExceeded"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "clientId": {
              "description": "The sender's own id for this send, so a send retried after a lost answer returns the send it already created.",
              "maxLength": 64,
              "type": "string"
            },
            "note": {
              "maxGraphemes": 150,
              "maxLength": 600,
              "type": "string"
            },
            "recipients": {
              "items": {
                "format": "did",
                "type": "string"
              },
              "maxLength": 8,
              "minLength": 1,
              "type": "array"
            },
            "subject": {
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "subject",
            "recipients"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "delivered": {
              "items": {
                "format": "did",
                "type": "string"
              },
              "maxLength": 8,
              "type": "array"
            },
            "send": {
              "ref": "com.getorbyt.send.defs#sendView",
              "type": "ref"
            }
          },
          "required": [
            "send",
            "delivered"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.getorbyt.send.create",
  "lexicon": 1
}
