List conversations
Retrieves a paginated list of conversations. Standard users see only conversations belonging to their own genies. Admin users see all conversations.string
required
conversationsstring
required
allobject
Response
Conversation[]
Array of conversation objects, each joined with basic genie info.
string | null
Opaque cursor string. Pass as
cursor in the next request to fetch the next page. null when there are no more results.boolean
Whether more results are available beyond this page.
Get conversation
Retrieves a single conversation by ID, including analysis details and associated media. The conversation is automatically marked as viewed on fetch. If analysis details exist but are incomplete, analysis runs automatically before the response is returned.string
required
conversationsstring
required
getstring
required
The conversation ID.
Response
Returns the full conversation object spread directly intodata, with nested genie, analysis details, and media.
string
Unique conversation identifier.
string | null
ID of the genie this conversation belongs to.
string | null
Conversation status.
object | null
Arbitrary metadata associated with the conversation.
boolean
Whether the conversation has been viewed. Always
true after a successful get call — the conversation is marked viewed automatically.string
ISO 8601 timestamp.
object | null
The genie that handled this conversation, including its full configuration and lead-info preset.
object[] | null
Analysis details for this conversation. Contains
summary, transcript, goals, topics, lead_info, and analysis_result. If these fields were missing when the conversation was fetched, analysis is triggered automatically and the populated details are returned in this response.object[]
Media records (recordings, attachments) associated with this conversation. Empty array when no media exists.
Sync conversations
Triggers a sync of conversations from the voice agent system for a specific genie.string
required
conversationsstring
required
syncobject
required
Response
boolean
true if the sync completed without errors.boolean
true if new conversation data was pulled from the voice agent system.object
The synced conversation record with the latest data from the voice agent system.
Sync pulls the latest conversation data from the voice agent system, including updated transcripts, status, and metadata. The authenticated user must own the genie specified by
agentId. A 403 FORBIDDEN error is returned otherwise.Analyze conversation
Runs an analysis on a specific conversation.string
required
conversationsstring
required
analyzestring
required
The conversation ID to analyze.
object
Additional parameters to pass to the analysis function.
Response
Returns a detailed analysis object generated by thehandle-conversation edge function.
object
The analysis result for the conversation.
Analysis is performed asynchronously. For longer conversations, the response may take several seconds to return while the analysis is generated.
Update conversation
Updates metadata or fields on an existing conversation. Standard users can only update their own conversations.string
required
conversationsstring
required
updatestring
required
The conversation ID to update.
object
required
Fields to update. Can be provided directly or nested under an
updates key.
Allowed fields: agent_id, el_agent_id, metadata, status, type, user_id, viewed.Response
Returns the updated conversation object directly indata.
Delete conversation
Permanently deletes a conversation. Standard users can only delete their own conversations. Admin users can delete any conversation.string
required
conversationsstring
required
deletestring
required
The conversation ID to delete.
Response
boolean
true if the conversation was deleted.string
The ID of the deleted conversation.
Mark all viewed
Marks all conversations as viewed for the authenticated user.string
required
conversationsstring
required
mark-all-viewedResponse
boolean
true if the operation completed.Clear agent data
Permanently deletes all conversation history and activity records for a specific genie. Typically used when reassigning a genie to a different customer to ensure no prior data carries over.string
required
conversationsstring
required
clear-agent-dataobject
required
boolean
true if the operation completed successfully.number
The number of conversation records that were deleted.

