Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.corti.ai/llms.txt

Use this file to discover all available pages before exploring further.

Use getStatus() to inspect the current application state, including authentication, current URL, interaction details, documents, and facts.
Applies to Web Component, Window API, and PostMessage. Examples on this page use the Web Component API shape.

Usage

const status = await api.getStatus();

Prerequisites

  • None

Input validation

  • None

Possible errors

  • This action does not typically throw structured error codes.
  • In rare cases, partial data may be returned if specific state queries fail.

Returns

{
  auth: {
    isAuthenticated: boolean,
    user: {
      id: string,
      email: string
    } | null
  },
  currentUrl: string,
  interaction: {
    id: string,
    title: string,
    state: "planned" | "ongoing" | "paused" | "disconnected" | "ending" | "parsing" | "ended",
    startedAt: string,
    endedAt: string | null,
    endsAt: string | null,
    transcripts: Array<unknown>,
    documents: Array<unknown>,
    facts: Array<unknown>,
    websocketUrl: string
  } | null
}

Notes

  • This method is useful for debugging and for checking whether prerequisites are already satisfied.
  • interaction may be null if no interaction is active or if interaction lookup fails.