Use this file to discover all available pages before exploring further.
Use the Chat API to send messages, manage channels, open support conversations, and read reactions. Channels are identified by experience_id or channel_id.
This page covers the server-side Chat API, for calling Whop from your backend to post, read, or moderate messages. If you want to render a live Whop chat UI inside your own frontend, see the embedded chat quickstart instead.
Messages support Markdown and optional attachments uploaded via the Files API.
const message = await client.messages.create({ channel_id: "channel_xxxxxxxxxxxxx", // or an experience_id content: "Hello! **Markdown** is supported.", attachments: [ { id: "file_xxxxxxxxxxxxx" }, // upload via the Files API first ],});
Support channels are 1:1 threads between a user and a company, useful for help desks or concierge flows. create returns the existing channel if one already exists for the user.