# List stores by slice Retrieve a paginated list of vector stores belonging to a specific knowledge slice. Returns all vector stores associated with the specified knowledge slice. Use this endpoint to see which stores are grouped under a particular slice. #### Path Parameters **`organization_id`** string required The unique identifier of the organization (format: `org_*`). **`slice_id`** string required The unique identifier of the knowledge slice (format: `kslice_*`). #### 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 vector store objects with `items`, `total`, `skip`, `limit`, and `has_more` fields. Request ```bash cURL curl "https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/slices/kslice_abc123/stores?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_stores_by_slice( organization_id="org_xyz789", slice_id="kslice_abc123", limit=10, ) print(result) ``` ```python Python import requests org_id = "org_xyz789" slice_id = "kslice_abc123" url = f"https://api.aitronos.com/v1/organizations/{org_id}/knowledge/slices/{slice_id}/stores" 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 sliceId = "kslice_abc123"; const response = await fetch( `https://api.aitronos.com/v1/organizations/${orgId}/knowledge/slices/${sliceId}/stores?limit=10`, { headers: { "Authorization": `Bearer ${accessToken}` }, } ); const data = await response.json(); console.log(data); ``` Response ```json 200 OK { "items": [ { "id": "vs_store123", "name": "API Documentation Store", "description": "Vector store for API docs", "slice_id": "kslice_abc123", "organization_id": "org_xyz789", "created_by": "usr_owner1", "is_active": true, "access_mode": "organization", "file_count": 15, "data_size": 1048576, "created_at": "2025-06-15T10:00:00Z", "updated_at": "2025-06-15T10:00:00Z" } ], "total": 1, "skip": 0, "limit": 10, "has_more": false } ``` ```json 404 Error { "success": false, "error": { "code": "KNOWLEDGE_SLICE_NOT_FOUND", "message": "The requested knowledge slice could not be found.", "system_message": "Knowledge slice not found", "type": "client_error", "status": 404, "details": { "slice_id": "kslice_invalid" }, "trace_id": "abc-123-def", "timestamp": "2025-11-02T08:21:45Z" } } ``` ## Related Resources - [Create Store in Slice](/docs/api-reference/knowledge/create-store) - [List All Stores](/docs/api-reference/knowledge/list-stores) - [Get Store](/docs/api-reference/knowledge/get-store) - [Get Slice](/docs/api-reference/knowledge/get-slice)