Skip to main content
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 return 401 Unauthorized.

Query Parameters

integer
default:"1"
Page number for pagination. Use with page_size to navigate through large corpus lists.
integer
default:"20"
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

integer
Total number of corpora owned by you (across all pages).
string | null
URL to fetch the next page of results. null if on the last page.
string | null
URL to fetch the previous page of results. null if on the first page.
array
Array of corpus objects. See Create Corpus for full field documentation.Key fields:
  • id - Corpus UUID
  • corpora_name - Normalized name (lowercase snake_case)
  • indexing_status - Current status (PND, PRS, IND, ERR)
  • size_on_disk - Storage size in bytes
  • index_type - Indexing strategy (VSI, SMI, DSI)
  • is_published - Public visibility flag

Best Practices

Handle large corpus lists efficiently:
Client-side filtering for specific corpus states:
Use normalized names consistently:
Why: The server may apply additional normalization beyond simple lowercasing and underscore replacement.
Before creating a new corpus, validate the name:
Returns 200 OK if name is available, 400 Bad Request if already taken.

Monitoring & Analytics

Use this endpoint to build monitoring dashboards that track:
  • Total corpus count over time
  • Storage usage (size_on_disk aggregation)
  • Indexing pipeline health (indexing_status distribution)
  • Published vs private corpus ratio

Client examples

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

Response

200 - application/json
count
integer
required
Example:

123

results
object[]
required
next
string<uri> | null
Example:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Example:

"http://api.example.org/accounts/?page=2"