List sessions
niche_list_sessionsEnumerate the user's recent sessions. Returns id, niche_input, status, outcome, target_platforms, picked story/angle ids, and created/updated_at for each. Use this when the session_id has been lost (across agent invocations, hours of work, etc.) or to find an in-flight session to resume. Returns newest-first.
Judge a terminal run by outcome, not raw status: a failed status is usually a walk-away, not an error. outcome ∈ {complete, expired (a slate was produced but nobody picked; re-open and choose), interrupted (a restart ended it, credits refunded; just re-run), cancelled (stopped on purpose), failed (a real error; see error_message), running}. (status_filter still matches the raw status value.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max sessions to return (default 25, max 100). | |
| offset | No | Skip this many sessions before returning, for paging through history. Default 0. | |
| brand_id | No | Optional filter to sessions tied to one brand profile slot. | |
| status_filter | No | Optional status filter, e.g. 'cp1_awaiting_story', 'cp3_awaiting_review', 'complete', 'failed'. Omit for all. | |
| niche_contains | No | Optional case-insensitive substring filter on the niche input, to find sessions on a topic (e.g. 'walnut'). | |
| include_outputs | No | When true, also returns `recent_outputs`: the account's produced posts/images/reels across all sessions, newest first, each with its session_id, cell, a reachable asset_url, and publish state. Use it to locate a past asset (e.g. an image made on a prior run). Default false. |