Skip to main content
GET
/
v2
/
access-profiles
List Access Profiles
curl --request GET \
  --url https://public.api.serval.com/v2/access-profiles \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "teamId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "isTeamDefault": true,
      "createdAt": "2023-11-07T05:31:56Z",
      "matchingCriteria": {
        "groups": {
          "matchType": "ACCESS_PROFILE_GROUP_MATCH_TYPE_UNSPECIFIED",
          "includedGroupIds": [
            "<string>"
          ],
          "excludedGroupIds": [
            "<string>"
          ]
        }
      },
      "grants": {
        "appResourceRoles": [
          {
            "appResourceRoleId": "<string>",
            "useTeamDefaultAccessProfile": true
          }
        ],
        "workflows": [
          {
            "workflowId": "<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
required

The ID of the team to list access profiles for.

pageSize
integer<int32>

Maximum number of access profiles to return (default 50, max 1000).

pageToken
string

Page token for pagination.

Response

Success

data
AccessProfile · object[]
nextPageToken
string | null