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>",
      "status": "WORKFLOW_RUN_STATUS_UNSPECIFIED",
      "createdAt": "<string>",
      "completedAt": "<string>",
      "initiatedByUserId": "<string>",
      "targetUserId": "<string>",
      "inputs": "<string>",
      "output": "<string>",
      "linkedTicketId": "<string>",
      "approvalRequestId": "<string>"
    }
  ],
  "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 1000, maximum is 5000.

pageToken
string

Token for pagination. Leave empty for the first request.

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.