ServerPublishRequest

Server publish body — used on the control plane with a secret key. Pre-trusted: bypasses your config's publish middleware and authorization.

  • content
    required

    The message payload. Opaque to the platform; ≤ 2 KB.

  • senderId
    Type: string
    required

    The sender's user id. Required on the server path (there is no user JWT to derive it from).

  • kind
    Type: string

    Content class. Defaults to text (the only value in v1).

  • mentions
    Type: array object[] · Mention[]

    Declared mentions. The platform verifies each is a member, dedupes, and caps the count.

    • userId
      Type: string
      required

      The mentioned user's id, or the platform tokens @everyone / @channel (membership channels, capability-gated, rate-limited).

  • to
    Type: string

    A member's user id. Set this to deliver to that member only (no broadcast) and write them an inbox item.

  • type
    Type: string

    Userland discriminator. Defaults to message.