# com.getorbyt.send.create

> 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.

- Kind: procedure
- Authority: send.getorbyt.com
- Lexicon: 1
- Published by [getorbyt.com](https://lexicon.garden/identity/did:plc:2xrqztnmzlckb3xfuuukupso), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.send.create)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.send.create/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.send.create/analytics)

## Procedure (`com.getorbyt.send.create`)

Type: procedure · POST

### Input (application/json)

- `clientId` (string): The sender's own id for this send, so a send retried after a lost answer returns the send it already created.
  - Constraints: maxLength: 64
- `note` (string)
  - Constraints: maxLength: 600, maxGraphemes: 150
- `recipients` (array, required)
  - Constraints: minLength: 1, maxLength: 8
  - `items` (string · did)
- `subject` (string · at-uri, required)

### Output (application/json)

- `delivered` (array, required)
  - Constraints: maxLength: 8
  - `items` (string · did)
- `send` (ref, required)
  - Reference: `com.getorbyt.send.defs#sendView`

### Errors

- `AuthenticationRequired`: No description in schema.
- `InvalidRequest`: No description in schema.
- `RateLimitExceeded`: No description in schema.

## Schema

```json
{
  "$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
}
```
