---
title: Web widget
description: Configure allowed origins and create secure browser voice sessions.
---
import Endpoint from '../../../components/Endpoint.astro';
Widget configuration includes allowed origins, session duration from 1–60 minutes (default 5), and an optional daily maximum. Session creation accepts `agent_id`, `origin`, and optional `force_audio`.
Never put the Developer API key in the browser. Your server creates the widget session, then returns only the short-lived session data to the page. Match allowed origins exactly and include production HTTPS origins before release.