JavaScript
Corpus Management
List Corpora
Retrieve every corpus you own along with indexing metadata.
GET
JavaScript
Overview
List all corpora owned by the authenticated user with pagination support. This endpoint is safe for multi-tenant environments as it automatically filters results to only show corpora you created.Use this for: Building corpus selection UI, monitoring corpus status, tracking indexing progress, auditing corpus inventory.
Authentication
Requires valid JWT token or session authentication. Anonymous requests return401 Unauthorized.
Query Parameters
Page number for pagination. Use with
page_size to navigate through large corpus lists.Number of corpora per page. Maximum value depends on server configuration (typically 100).Recommendation: Use smaller page sizes (20-50) for better performance.
Example request
Example response
Response Structure
Total number of corpora owned by you (across all pages).
URL to fetch the next page of results.
null if on the last page.URL to fetch the previous page of results.
null if on the first page.Array of corpus objects. See Create Corpus for full field documentation.Key fields:
id- Corpus UUIDcorpora_name- Normalized name (lowercase snake_case)indexing_status- Current status (PND,PRS,IND,ERR)size_on_disk- Storage size in bytesindex_type- Indexing strategy (VSI,SMI,DSI)is_published- Public visibility flag
Best Practices
Efficient Pagination
Efficient Pagination
Handle large corpus lists efficiently:
Filter by Status
Filter by Status
Client-side filtering for specific corpus states:
Display Corpus Names
Display Corpus Names
Use normalized names consistently:Why: The server may apply additional normalization beyond simple lowercasing and underscore replacement.
Check Name Uniqueness
Check Name Uniqueness
Before creating a new corpus, validate the name:Returns
200 OK if name is available, 400 Bad Request if already taken.Monitoring & Analytics
Client examples
- Python
- TypeScript / JavaScript
- Java
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
A page number within the paginated result set.
Number of results to return per page.

