List Insight Workflow Sessions
List the sessions under a workflow, one row per session, with each tool's results grouped into a `results` dict keyed by tool name.
Sessions come from the workflow's execution queue, so pending, processing and failed sessions show up too, not just completed ones. A session that was queued more than once appears only once. Insights reused from another workflow still show up here.
/api/v1/insights/workflows/{workflow_id}/sessionsAuthentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Path parameters
workflow_id
integer
path
required
Query parameters
page
integer | null
query
optional
The page number from which to start (0-based)
0Minimum 0Example 0limit
integer
query
optional
The maximum number of items to return
25Minimum 0Example 25search_fields
enum<string>[]
query
optional
String names of fields to search. Correspond by index to search field values
[]Example session_idItem schema
itemsenum<string>required["session_id","status"]search_field_values
string[]
query
optional
Values of fields to search. Correspond by index to search fields. Unless field name contains "list", an individual search field value cannot be a list
[]Example Some Object NameItem schema
itemsstringrequiredorder_by
enum<string> | null
query
optional
The field whose value should be used to order the results
["session_id","status","started_at","created_at"]Example session_idorder_by_direction
enum<string> | null
query
optional
The direction in which to order the results
["asc","desc"]start_datetime
string | null
query
optional
The start datetime for filtering results
2023-01-01T00:00:00Zend_datetime
string | null
query
optional
The end datetime for filtering results
2024-01-01T00:00:00ZResponses
200Successful Response
application/json
response
ListResponse_WorkflowSessionRow_
required
5 fields
itemsWorkflowSessionRow[]requiredList of items returned from the query
Item schema
itemsWorkflowSessionRowrequiredOne session under a workflow: its execution status plus the insight results, grouped by tool name and then by `insight_key in the results` dict.
A session that is still pending, processing, or failed has an empty `results dict; status and error_message` say why.
6 fields
session_idintegerrequiredSession ID
analyzed_atstring (date-time) | nulloptionalWhen the workflow execution started processing this session; null while the row is still PENDING
queued_atstring (date-time)requiredWhen the session was queued for this workflow
statusstringrequiredExecution status of this session under the workflow
error_messagestring | nulloptionalError message from the last processing attempt, if any
resultsobjectoptionalResults per tool, keyed by tool name then insight_key. Each insight_key holds a list of values: a single value comes back as a one-item list.
1 field
{key}objectoptional1 field
{key}unspecified[]optionalItem schema
itemsunspecifiedrequiredpageintegerrequiredThe page number of the results (0-based)
page_sizeintegerrequiredThe number of items returned per page
total_pagesinteger | nulloptionalThe total number of pages of results given the indicated page size
total_countinteger | nulloptionalThe total number of items returned from the query
Response example
{
"items": [
{
"session_id": 0,
"analyzed_at": "string",
"queued_at": "string",
"status": "string",
"error_message": "string",
"results": "string"
}
],
"page": 0,
"page_size": 0,
"total_pages": "string",
"total_count": "string"
}422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
