wizard

Return the single most-recent wizard session for a workflow (and optional skill), or 204 if none exists. Unlike list, this is a point lookup the app shell uses to decide whether to open the live SSE stream — it never returns a collection, and 'no run' is a 204 rather than a 404 so clients don't conflate it with a missing endpoint.

get/api/projects/{project_id}/wizard/sessions/latest/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/wizard/sessions/latest/
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Query parameters

skill_idstring

Optional skill within the workflow.

workflow_idstring required

Workflow to inspect.

Response

session_idstring required
team_idinteger required
workflow_idstring required
skill_idstring required
started_atstring date-time required
run_phase'idle' | 'running' | 'completed' | 'error' required
  • idle - IDLE
  • running - RUNNING
  • completed - COMPLETED
  • error - ERROR
event_planobject nullable required
errorobject nullable required
handoff_textstring nullable required

Markdown handoff doc the wizard produced for this run (its setup report), or null while the run hasn't written one.

created_atstring date-time required
updated_atstring date-time required
is_staleboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.