Skip to content

Embed SDK

Mount options.

The options TesteeEmbed.mount takes (the container, the invitation link, events, height and title) and the handle it returns to remove the interview.

Last updated 19 November 2026

mount(options)

OptionTypeDescription
containerelement or CSS selector, requiredWhere the iframe goes. An unknown selector throws
linkstring, requiredThe invitation link (link of POST /v1/invitations). Must be https (plain http only for localhost, *.localhost and 127.0.0.1, for development)
onEventfunctionCalled with each event from the interview (see Events)
heightCSS lengthThe iframe's height. Default 720px: the interview needs room for its tool panels
titlestringThe iframe's accessible title. Default Interview

The iframe fills the container's width, and asks for the microphone (for the voice interview), the camera and the screen (only used when your company records them), autoplay and the clipboard.

The handle

mount returns { iframe, destroy() }. destroy() stops listening for events and removes the iframe, for example when the candidate leaves a single-page app's route.

JavaScript
const embed = TesteeEmbed.mount({ container: "#interview", link, height: "800px" });
// laterembed.destroy();

Mount before the script loads

Load the script with async and queue the call: options pushed to window.TesteeEmbedQueue are mounted once the page is parsed, so the script can go in <head> before its container exists, and a push after that mounts at once. A call whose container is missing is logged in the console and doesn't stop the others. Loading the script twice is harmless.

HTML
<script async src="https://interview.testee.ai/embed/v1.js"></script><div id="interview"></div><script>  (window.TesteeEmbedQueue ||= []).push({    container: "#interview",    link: invitationLink,    onEvent: (e) => console.log(e.type),  });</script>