Skip to main content
GET
/
v2
/
workflows
/
{workflow_id}
/
versions
List Workflow Versions
curl --request GET \
  --url https://public.api.serval.com/v2/workflows/{workflow_id}/versions \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "workflowId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "content": "<string>",
      "createdByUserId": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "publishedAt": "2023-11-07T05:31:56Z",
      "isPublished": true
    }
  ],
  "nextPageToken": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.serval.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

workflow_id
string
required

The ID of the workflow whose versions to list.

Query Parameters

includeUnpublishedDrafts
boolean

If true, include unpublished draft versions alongside published ones. Default false (only the complete history of published versions).

pageSize
integer<int32>

Maximum number of results to return. Default is 1000, maximum is 2000.

pageToken
string

Token for pagination. Leave empty for the first request.

Response

Success

data
WorkflowVersion · object[]

The list of workflow versions, newest first.

nextPageToken
string | null

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