List Insight Workflow Executions
List a workflow's execution rows.
/api/v1/insights/workflows/{workflow_id}/executionsAuthentication
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
string[]
query
optional
String names of fields to search. Correspond by index to search field values
[]Example statusItem schema
itemsstringrequiredstatussearch_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
["id","status","created_at","started_at","priority","session_id","upload_file_id","event_type"]Example nameorder_by_direction
enum<string> | null
query
optional
The direction in which to order the results
["asc","desc"]fields
enum<string>[] | null
query
optional
The fields to include in the response
[]Example []Item schema
itemsenum<string>required["id","status","created_at","started_at","priority","session_id","upload_file_id","event_type"]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_InsightWorkflowExecutionOutput_
required
5 fields
itemsInsightWorkflowExecutionOutput[]requiredList of items returned from the query
Item schema
itemsInsightWorkflowExecutionOutputrequiredResponse model for a row in the insight_workflow_execution table.
11 fields
idintegerrequiredUnique ID of the workflow execution row
workflow_idintegerrequiredID of the workflow this execution belongs to
statusstringrequiredStatus of the workflow execution
priorityintegerrequiredPriority of the workflow execution
session_idinteger | nulloptionalSession ID processed by this execution, if applicable
upload_file_idinteger | nulloptionalUpload file ID processed by this execution, if applicable
retry_countintegerrequiredNumber of times this execution has been retried
error_messagestring | nulloptionalError message from the last processing attempt, if any
started_atstring (date-time) | nulloptionalTimestamp at which the most recent processing attempt started
created_atstring (date-time)requiredTimestamp at which the execution row was created (i.e. when the work was queued)
event_typestring | nulloptionalEvent type that triggered the execution, if applicable
pageintegerrequiredThe 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": [
{
"id": 0,
"workflow_id": 0,
"status": "string",
"priority": 0,
"session_id": "string",
"upload_file_id": "string",
"retry_count": 0,
"error_message": "string",
"started_at": "string",
"created_at": "string",
"event_type": "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"
}
]
}
