Skip to main content
GET
/
v2
/
approval-requests
List Approval Requests
curl --request GET \
  --url https://public.api.serval.com/v2/approval-requests \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "accessRequestTimeAllocationId": "<string>",
      "workflowRunId": "<string>",
      "id": "<string>",
      "result": "APPROVAL_REQUEST_RESULT_UNSPECIFIED",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "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
ApprovalRequest · object[]
nextPageToken
string | null

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