Skip to main content
GET
/
v2
/
workflow-runs
List Workflow Runs
curl --request GET \
  --url https://public.api.serval.com/v2/workflow-runs \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "workflowId": "<string>",
      "teamId": "<string>",
      "createdAt": "<string>",
      "completedAt": "<string>",
      "initiatedByUserId": "<string>",
      "targetUserId": "<string>",
      "inputs": "<string>",
      "output": "<string>",
      "linkedTicketId": "<string>",
      "approvalRequestId": "<string>",
      "statusUpdatedAt": "<string>",
      "parentWorkflowRunId": "<string>",
      "parentWorkflowRunStepNumber": "<unknown>"
    }
  ],
  "nextPageToken": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

teamId
string

The ID of the team. Required.

pageSize
integer<int32>

Maximum number of results to return. Default is 50, maximum is 200. Larger values are silently coerced server-side; the actual value used is returned in the X-Served-Page-Size response header.

pageToken
string

Token for pagination. Leave empty for the first request.

includeOutput
boolean

When true (default), each returned run includes its output field (the full workflow result). For multi-row list responses this can be megabytes per row — set to false if you only need run metadata; you can then fetch full output per-run via GetWorkflowRun. Strongly recommended false for any caller that does not need output.

Response

Success

data
WorkflowRun · object[]

The list of workflow runs.

nextPageToken
string | null

Token for retrieving the next page of results. Empty if no more results.