Skip to main content
POST
/
v2
/
app-resource-entitlements
/
search
Search App Resource Entitlements
curl --request POST \
  --url https://public.api.serval.com/v2/app-resource-entitlements/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "teamId": "<string>",
  "appInstanceIds": [
    "<string>"
  ],
  "resourceIds": [
    "<string>"
  ],
  "limit": 123,
  "cursor": "<string>"
}
'
{
  "data": [
    {
      "id": "<string>",
      "resourceId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "requestsEnabled": true,
      "accessPolicyId": "<string>",
      "provisioningMethod": {
        "builtinWorkflow": {},
        "customWorkflow": {
          "provisionWorkflowId": "<string>",
          "deprovisionWorkflowId": "<string>"
        },
        "linkedEntitlements": {
          "linkedEntitlementIds": [
            "<string>"
          ]
        },
        "manual": {
          "assignees": [
            {
              "assigneeId": "<string>",
              "assigneeType": "MANUAL_PROVISIONING_ASSIGNEE_TYPE_UNSPECIFIED"
            }
          ]
        }
      }
    }
  ],
  "nextCursor": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
teamId
string | null

Filter by team ID. Required if app_instance_ids is not provided.

appInstanceIds
string[]

Filter by app instance IDs.

resourceIds
string[]

Filter by resource IDs.

limit
integer<int32> | null

Maximum number of results to return. Default: 5000.

cursor
string | null

Cursor for pagination. Pass the next_cursor from the previous response.

Response

Success

data
Entitlement · object[]

The list of entitlements.

nextCursor
string | null

Cursor for fetching the next page. Null if no more results.