Natzar Partner API Reference - v1.0.0
    Preparing search index...

    Variable createAgentEmbedSessionSchemaConst

    createAgentEmbedSessionSchema: ZodObject<
        {
            patientId: ZodOptional<ZodString>;
            externalPatientId: ZodOptional<ZodString>;
            ttlSeconds: ZodOptional<ZodNumber>;
        },
        $strict,
    > = ...

    Body of POST /v1/agent/embed-session — a session token for the <natzar-agent> widget.

    Unlike the consult embed sessions this is scoped to a PATIENT, not to a consult: the agent conversation is the patient's continuous history, so there is no episode to name. Mint it server-side and pass the token to the tag; the key never reaches the browser.