Skip to main content

List org conversations

GET /api/organizations/{org_id}/conversations

List all conversations for an organization. This endpoint returns a paginated list of all conversations within an organization, including details about each conversation such as the creator, timestamps, and metrics. Access Control: Requires VIEW_ORG_CONVERSATIONS permission (Admin or Owner role). Args: org_id: Organization UUID search: Search text matching conversation name, creator name, email, or sandbox ID sort_by: Field to sort by (created_at, updated_at, llm_model, accumulated_cost, title) sort_order: Sort order (desc or asc) execution_status: Filter by execution status (idle, running, paused, finished, error, stuck) sandbox_status: Filter by sandbox status (STARTING, RUNNING, PAUSED, ERROR, MISSING) time_window: Time window filter (all, 7d, 30d, 90d) page: Page number (1-indexed) per_page: Items per page (1-100) include_sub_conversations: If True, include sub-conversations in results user_id: Authenticated user ID (injected by require_permission dependency) service: OrgConversationService instance Returns: OrgConversationPage: Paginated list of conversations with total count Raises: HTTPException: 401 if user is not authenticated HTTPException: 403 if user lacks VIEW_ORG_CONVERSATIONS permission HTTPException: 500 if retrieval fails

Parameters

NameInTypeRequiredDescription
org_idpath`stringnull`yes
searchquery`stringnull`no
sort_byquerystringnoOptions: created_at, updated_at, llm_model, accumulated_cost, title
sort_orderquerystringnoOptions: desc (default), asc
execution_statusquery`string[]null`no
sandbox_statusquery`stringnull`no
time_windowquery`stringnull`no
pagequeryintegerno
per_pagequeryintegerno
include_sub_conversationsquerybooleanno
X-Org-Idheader`stringnull`no

Responses

StatusDescription
200Successful Response
422Validation Error

Response body

FieldTypeRequiredDescription
itemsOrgConversationResponse[]yes
total_itemsintegerno
pageintegerno
per_pageintegerno
total_pagesintegerno
pagination_accuratebooleanno

Operation ID: list_org_conversations_api_organizations__org_id__conversations_get