Skip to main content
Use this page when you want end-to-end examples that combine multiple Embedded API methods into a realistic integration flow.
These workflows complement the individual method reference pages. Use the method pages when you need payload details, validation rules, or return shapes for one specific method.

Initialize and start recording

In the examples below, api refers to your Embedded API instance.
  • Web Component / vanilla: const api = document.querySelector("corti-embedded");
  • React: const api = useCortiEmbeddedApi(cortiRef);
navigate({ path: ... }) is used for cross-surface consistency.
  • On @corti/embedded-web versions earlier than 0.3.0, use navigate("/session/...").
  • On @corti/embedded-web@0.3.0 and later, both shapes are accepted.

Handle recording startup errors

Complete session lifecycle