# List assistant grants Retrieve all access grants for a specific assistant. Returns a paginated list of access grants associated with a specific assistant. This is a convenience endpoint equivalent to listing grants filtered by `entity_type=assistant` and `entity_id={assistant_id}`. #### Path Parameters **`organization_id`** string required The unique identifier of the organization (format: `org_*`). **`assistant_id`** string required The unique identifier of the assistant (format: `asst_*`). #### Query Parameters **`skip`** integer optional · Defaults to `0` Number of items to skip for pagination. **`limit`** integer optional · Defaults to `20` Maximum number of items to return (1-100). ## Returns A paginated list of access grant objects with `items`, `total`, `skip`, `limit`, and `has_more` fields. Request ```bash cURL curl -s -X GET "https://api.aitronos.com/v1/organizations/org_xyz789/assistants/asst_abc123/grants?limit=10" \ -H "Authorization: Bearer $ACCESS_TOKEN" ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") result = client.access_control.list_assistant_grants( organization_id="org_xyz789", assistant_id="asst_abc123", limit=10, ) print(result) ``` ```python Python import requests org_id = "org_xyz789" assistant_id = "asst_abc123" url = f"https://api.aitronos.com/v1/organizations/{org_id}/assistants/{assistant_id}/grants" headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"} params = {"limit": 10} response = requests.get(url, headers=headers, params=params) print(response.json()) ``` ```javascript JavaScript const orgId = "org_xyz789"; const assistantId = "asst_abc123"; const response = await fetch( `https://api.aitronos.com/v1/organizations/${orgId}/assistants/${assistantId}/grants?limit=10`, { headers: { "Authorization": `Bearer ${accessToken}`, }, } ); const data = await response.json(); console.log(data); ``` Response ```json 200 OK { "items": [ { "id": "agrant_asst001", "entity_type": "assistant", "entity_id": "asst_abc123", "grantee_type": "role", "grantee_id": "role_viewer01", "access_level": "read", "granted_by": "usr_owner1", "organization_id": "org_xyz789", "created_at": "2025-06-15T10:00:00Z", "updated_at": "2025-06-15T10:00:00Z" } ], "total": 1, "skip": 0, "limit": 10, "has_more": false } ``` ```json 401 Error { "success": false, "error": { "code": "AUTHENTICATION_REQUIRED", "message": "Please log in to continue.", "system_message": "Authentication required", "type": "client_error", "status": 401, "details": {}, "trace_id": "abc-123-def", "timestamp": "2025-11-02T08:21:45Z" } } ``` ## Related Resources - [List Grants](/docs/api-reference/access-control/list-grants) - [Create Grant](/docs/api-reference/access-control/create-grant) - [Bulk Create Grants](/docs/api-reference/access-control/bulk-create-grants) - [Update Grant](/docs/api-reference/access-control/update-grant) - [Revoke Grant](/docs/api-reference/access-control/revoke-grant) - [Slice Grants](/docs/api-reference/access-control/slice-grants) - [Store Grants](/docs/api-reference/access-control/store-grants) - [Resolved Access](/docs/api-reference/access-control/resolved-access) - [Users with Access](/docs/api-reference/access-control/users-with-access) - [List Assistants](/docs/api-reference/assistants/list) - [Retrieve Assistant](/docs/api-reference/assistants/retrieve)