Skip to main content
GET
/
v2
/
guidances
/
{guidance_id}
/
versions
List Guidance Versions
curl --request GET \
  --url https://public.api.serval.com/v2/guidances/{guidance_id}/versions \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "guidanceId": "<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>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

guidance_id
string
required

The ID of the guidance 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
GuidanceVersion · object[]

The list of guidance versions, newest first.

nextPageToken
string | null

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