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.
- contentrequired
The message payload. Opaque to the platform; ≤ 2 KB.
- kindType: string
Content class. Defaults to
text(the only value in v1). - mentionsType: array object[] · Mention[]
Declared mentions. The platform verifies each is a member, dedupes, and caps the count.
- userType: string
Id requiredThe mentioned user's id, or the platform tokens
@everyone/@channel(membership channels, capability-gated, rate-limited).
- toType: string
A member's user id. Set this to deliver to that member only (no broadcast) and write them an inbox item.
- typeType: string
Userland discriminator. Defaults to
message.