- Your backend mints a session for the signed-in agent:
POST /v1/web-sessions→ a token (5 minutes to 12 hours). Revoke it withDELETE /v1/web-sessions/{id}. - Hand the token to the agent’s browser. The
@mergenlab/voice-webSDK does the rest: connects, places and ends calls, saves dispositions.
- Web calls are human calls (
human.agent_channel: "web"): same hours, recording,GET /v1/callsand webhooks. - Keep the token in page memory. Never ship your API key to the browser.