iframe
Create iframe link
Creates a secure iframe link with a cached JWT token.
/api/v1/iframe/create
Headers
Authorizationrequiredany - API key authentication using Bearer scheme
Request Body
uidrequiredstring - User identifier: The UID of the user to create the iframe for. This is used to track usage and thread history. This can be anything you want, but it must be unique. We recommend using a user ID or email.
srcsrequiredarray - List of Source/Connection IDs: The IDs of the sources/connections to use for the iframe. This is used to determine which sources/connections the user will have access to in the chat.
ttlinteger - Token lifetime in seconds (60-3600, default: 900)
knowledge_base_entriesarray - Array of session-specific (stateless) knowledge base entries. These temporary entries apply only to this iframe instance and do not persist. They work alongside any persistent (stateful) entries previously created through /api/v1/knowledge-base/ for your connection IDs.
reference_queriesarray - Array of session-specific (stateless) reference query objects (e.g., {"title": "...", "query": "..."}). These temporary queries apply only to this iframe instance and do not persist. They work alongside any persistent (stateful) queries previously created through /api/v1/reference-queries/ for your connection IDs.
modelenum<string>: o3, o4-mini, gpt-4.1, gpt-5, gpt-5-codex, sonnet-4, sonnet-4.5, haiku-4.5 - Model to use for generated threads * `o3` - o3 * `o4-mini` - o4-mini * `gpt-4.1` - gpt-4.1 * `gpt-5` - gpt-5 * `gpt-5-codex` - gpt-5-codex * `sonnet-4` - sonnet-4 * `sonnet-4.5` - sonnet-4.5 * `haiku-4.5` - haiku-4.5
response_modeenum<string>: full, basic - Deprecated fallback. Prefer configuring response mode on the theme; this request parameter is only used if the theme is missing a response_mode. * `full` - full * `basic` - basic
themeobject - Theme configuration to apply to the iframe (theme_mode, custom_css_vars, start_message)
theme_idinteger - ID of the theme to apply (mutually exclusive with theme)
show_sidebarboolean - Deprecated fallback. Prefer configuring sidebar visibility on the theme; this request parameter is only used if the theme is missing a show_sidebar value.
show_dashboardsboolean - Deprecated fallback. Prefer configuring dashboard visibility on the theme; this request parameter is only used if the theme is missing a show_dashboards value.
limitsobject - Optional per-uid rate limits
Response
iframe_urlrequiredstring - URL for the iframe view
cache_keyrequiredstring - Cache key for JWT retrieval
expires_inrequiredinteger - Token lifetime in seconds
