Skip to content

Overview

mondochat adds a hosted 1:1 chat with photos, videos, voice notes and video calls to your site with one script tag. You keep your users, roles and money. We host, store and moderate the conversations, and we tell your server what happened through webhooks.

What Where
Dashboard https://dash.mondochat.io, for apps, secrets, origins, settings and webhooks
API https://app.mondochat.io/v1
Embed script https://app.mondochat.io/embed.js
API reference One page per operation in the sidebar under API reference, and a playground for the routes that take a session token
Webhook events One page per event, listed in the event catalog
  1. Your server signs a short-lived client token for the user who is logged in on your site. It holds the app’s server secret and never sends it to a browser.
  2. Your page loads embed.js, which puts the chat in an iframe and asks your token endpoint for that token.
  3. The chat exchanges the token for a session token and talks to the API as that user.
  4. Your server calls the server API to create users, post system messages, ban people and record purchases.
  5. mondochat sends events to your server with webhooks, so you decide what to mail, push or text, with your own sender and branding.