# List access profile environment grants

`GET /v1/projects/{project}/accessProfiles/{accessProfile}/environmentGrants`, operation `environments.ListAccessProfileEnvironmentGrants`

Lists standalone environments granted a project access profile, newest grant first.

Requires connections.accessProfiles.getIamPolicy on the access profile. Returns grant IDs so admins can revoke access directly.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `project` | path | Yes | `string` | The project's ID. |
| `accessProfile` | path | Yes | `string` | The access profile's ID. |
| `pageSize` | query | No | `integer (int32)` | Maximum number of items to return. |
| `pageToken` | query | No | `string` | Page token from a previous response. |

## Responses

### 200

OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `grants` | `ResourceEnvironmentGrant[]` | Yes | Standalone environments granted access to this resource, newest grant first. |
| `nextPageToken` | `string` | Yes | Token for the next page; empty on the last page. |

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.