Start an unauthenticated Salesforce Enhanced Chat API (formerly Messaging for In-App and Web / MIAW) session and exchange messages

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

In-depth guide

Salesforce Bulk API 2.0 limits — the full failure-mode walkthrough related to developer.salesforce.com, checked against official docs, with linked verified routes.

Steps

  1. Publish an Enhanced Chat/MIAW deployment in Salesforce and note its esDeveloperName, which must be included on every API call
  2. Generate an access token for an unauthenticated session with POST https://{scrt-url}/iamessage/api/v2/authorization/unauthenticated/access-token, supplying organizationId, esDeveloperName, capabilitiesVersion, and platform
  3. Create a conversation with POST https://{scrt-url}/iamessage/api/v2/conversation, including a client-generated lowercase UUID conversationId, esDeveloperName, routingAttributes, and language
  4. Send a message with POST https://{scrt-url}/iamessage/api/v2/conversation/{conversationId}/message, authenticating with the Bearer token and typing the message body as StaticContentMessage, ChoicesMessage, ChoicesResponseMessage, or FormMessage/FormResponseMessage
  5. Consume conversation delivery over Server-Sent Events (SSE) rather than polling

Known gotchas

Related routes

Configure Salesforce Embedded Service Chat (Messaging for Web) for a website via Setup
help.salesforce.com · 6 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