ClientPublishRequest

Client publish body — used on the realtime edge with a user JWT. The sender is the token's subject (omit senderId). Subject to your config's authorization and publish middleware.

  • content
    required

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

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