Skip to content

Get Workflow Run Results

Request

The agent workflow runs of one document, oldest first: which agents ran, what each was asked, what it looked up, what it answered and what the workflow returned. Use it to archive the decisions behind a result.

Only finished runs are returned: runs still in progress and test runs from Hypatos Setup are left out. When a run failed and was repeated automatically, only the repeated run is returned; it contains the steps the failed run had already finished. A failed run read before its repetition finishes is therefore replaced later.

For a case, pass the documentId of the case from /v2/cases/{id}. The response then also contains the classification runs of the batch the case was created from: usually one, more when the batch was classified again. A classification run covers every case of the batch, and its documentId is the batch's.

Security
OAuth2(Required scopes: workflow-run-results.read)
Query
documentIdstring, non-empty(Documentid)required

Return the runs of this document. For a case, the documentId of the case from /v2/cases/{id}.

limitinteger(Limit)

Maximum number of runs to return. Capped at 50.

Default:20
offsetinteger, >= 0(Offset)

Number of runs to skip.

Default:0
curl -i -X GET \
  'https://api.cloud.hypatos.ai/v2/workflow-run-results?documentId=string&limit=20&offset=0' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Successful Response

Bodyapplication/json
dataArray of objects(Data)required

The page of results.

limitinteger(Limit)required

The limit applied to this page. Equal to the limit query parameter unless it exceeded the maximum allowed value, in which case it is that maximum.

Example:20
offsetinteger(Offset)required

The offset applied to this page (echoes the offset query parameter).

Example:0
totalCountinteger(Totalcount)required

The total number of elements across all pages.

Example:137
Response
{ "data": [ { … } ], "limit": 20, "offset": 0, "totalCount": 137 }