Skip to main content
GET
/
v2
/
access-requests
List Access Requests
curl --request GET \
  --url https://public.api.serval.com/v2/access-requests \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "teamId": "<string>",
      "status": "ACCESS_REQUEST_STATUS_UNSPECIFIED",
      "createdAt": "<string>",
      "targetUserId": "<string>",
      "requestedRoleId": "<string>",
      "expiresAt": "<string>",
      "linkedTicketId": "<string>",
      "timeAllocations": [
        {
          "id": "<string>",
          "status": "ACCESS_REQUEST_TIME_ALLOCATION_STATUS_UNSPECIFIED",
          "createdAt": "<string>",
          "requestedMinutes": 123,
          "approvedMinutes": 123,
          "businessJustification": "<string>",
          "requestedByUserId": "<string>",
          "invalidationReason": "ACCESS_REQUEST_TIME_ALLOCATION_INVALIDATION_REASON_UNSPECIFIED",
          "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
AccessRequest · object[]

The list of access requests.

nextPageToken
string | null

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