Create an Amazon IVS Chat room, generate chat tokens, and send/moderate messages

domain: docs.aws.amazon.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Call CreateRoom, optionally setting name, maximumMessageLength (default 500, max 500), and maximumMessageRatePerSecond (default 10, max 100); the response returns the room's arn/id.
  2. For each participant, call CreateChatToken with roomIdentifier (the room ARN), userId, a capabilities array (SEND_MESSAGE / DELETE_MESSAGE / DISCONNECT_USER — default is none beyond implicit view access), and sessionDurationInMinutes (default 60).
  3. The client opens a WebSocket connection to the separate real-time Chat Messaging API using the returned token and sends/receives messages there — the control-plane REST API itself has no 'send message' call.
  4. Use SendEvent from your backend to push custom application events into the room, and DeleteMessage to unrender/moderate an existing message for all connected clients.
  5. Optionally attach loggingConfigurationIdentifiers to CreateRoom for archival, and a messageReviewHandler (Lambda URI) for pre-send message review.

Known gotchas

Related routes

Create an Amazon IVS real-time Stage, generate participant tokens, and join with WebRTC
docs.aws.amazon.com · 5 steps · unrated
Stand up real-time chat alongside a live stream using the Amazon IVS Chat API
docs.aws.amazon.com · 5 steps · unrated
Create a low-latency live channel using the Amazon IVS API
docs.aws.amazon.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans