# List knowledge slices Retrieve a paginated list of knowledge slices within an organization. Returns all knowledge slices belonging to the specified organization. Results can be filtered by status and type, and are returned in a paginated format. #### Path Parameters **`organization_id`** string required The unique identifier of the organization (format: `org_*`). #### Query Parameters **`status`** string optional Filter slices by status (e.g., `active`, `archived`). **`type`** string optional Filter slices by type. Allowed values: `standard`, `personal`, `chat_space`. **`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 knowledge slice objects with `items`, `total`, `skip`, `limit`, and `has_more` fields. Request ```bash cURL curl "https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/slices?status=active&limit=10" \ -H "Authorization: Bearer $ACCESS_TOKEN" ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") result = client.knowledge.list_slices( organization_id="org_xyz789", status="active", limit=10, ) print(result) ``` ```python Python import requests org_id = "org_xyz789" url = f"https://api.aitronos.com/v1/organizations/{org_id}/knowledge/slices" headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"} params = {"status": "active", "limit": 10} response = requests.get(url, headers=headers, params=params) print(response.json()) ``` ```javascript JavaScript const orgId = "org_xyz789"; const response = await fetch( `https://api.aitronos.com/v1/organizations/${orgId}/knowledge/slices?status=active&limit=10`, { headers: { "Authorization": `Bearer ${accessToken}` }, } ); const data = await response.json(); console.log(data); ``` Response ```json 200 OK { "items": [ { "id": "kslice_abc123def456", "name": "Product Documentation", "description": "All product-related knowledge", "type": "standard", "is_composite": false, "owner_type": "organization", "owner_id": "org_xyz789", "status": "active", "member_slice_ids": [], "store_count": 3, "organization_id": "org_xyz789", "created_by": "usr_owner1", "created_at": "2025-06-15T10:00:00Z", "updated_at": "2025-06-15T10:00:00Z", "archived_at": null, "archived_by": null } ], "total": 1, "skip": 0, "limit": 10, "has_more": false } ``` ```json 401 Error { "success": false, "error": { "code": "AUTHENTICATION_REQUIRED", "message": "Authentication is required to access this resource.", "system_message": "Missing or invalid authentication", "type": "client_error", "status": 401, "details": {}, "trace_id": "abc-123-def", "timestamp": "2025-11-02T08:21:45Z" } } ``` ## Related Resources - [Get Slice](/docs/api-reference/knowledge/get-slice) - [Create Slice](/docs/api-reference/knowledge/create-slice) - [Update Slice](/docs/api-reference/knowledge/update-slice) - [Archive Slice](/docs/api-reference/knowledge/archive-slice) - [Unarchive Slice](/docs/api-reference/knowledge/unarchive-slice) - [List Composites](/docs/api-reference/knowledge/list-composites) - [List Stores by Slice](/docs/api-reference/knowledge/list-stores-by-slice)