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-webversions earlier than0.3.0, usenavigate("/session/..."). - On
@corti/embedded-web@0.3.0and later, both shapes are accepted.