---
title: "GET /resourceGrants"
method: GET
path: "/resourceGrants"
tags: ["Resource Grants"]
---

# GET /resourceGrants

`GET /resourceGrants`

This endpoint allows you to Retrieve a list of resource grants with pagination and filter parameters.  
It is important to note that after using the pageSize parameter, the "totalSize" in the response represents  the total number of available resource grants, not the number of resource grants resulting from the query string.

## Query parameters

- `pageToken` string
- `pageSize` integer
- `resourceType` 'layout' | 'camera' | 'location' | 'account' | 'speaker' | 'multiCamera', required
- `userId__in` string[]
- `resourceId__in` string[]

## Response `200`

OK

- ApiPaginatedResourceGrantResponse — Used to wrap results for a paginated response, containing information on how to retrieve further pages.
  - `nextPageToken` string, nullable, required — Token to retrieve the next page. The value of this token is passed into the field pageToken. This value can be null if there is no next page.
  - `prevPageToken` string, nullable, required — Token to retrieve the previous page. The value of this token is passed into the field pageToken. This value can be null of there is no previous page.
  - `results` ResourceGrant[], required — The result set from a collection API call.
    - `id` string
    - `resourceId` string
    - `userId` string
    - `resourceType` 'layout' | 'camera' | 'location' | 'account' | 'speaker' | 'multiCamera'
    - `createTimestamp` string, date-time
    - `options` ResourceGrantOptions
      - `expirationTimestamp` string, date-time — The date when access to resource ends. This can be only set for accounts.
  - `totalSize` integer, required — Size of the total result set.

## Other responses

- `400` — The supplied object is invalid. Error detail will contain the validation error.
- `401` — You are not authenticated. Please authenticate and try again.
- `403` — You have no permission to access the specified resource.
- `404` — Referenced resource could not be found.
- `500` — Something went wrong in the server. Please try again.

---

[API](https://skmtc.net/eagleeyenetworks/apis/devices.md) · [All operations](https://skmtc.net/eagleeyenetworks/apis/devices/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eagleeyenetworks/devices/revisions/df57313de545/schema)
