Esc
ZeroIndex
GuidesAPI referenceSDKsChangelogOverviewBuy ZeroIndex

List indexes

View as MarkdownThe page as plain text

Return every index in the project, with its primary key and document count.

GET/v1/indexes

Indexes are sorted by name. Requires an admin key.

Query parameters

limitintegerdefault 20

How many indexes to return, from 1 to 100.

offsetintegerdefault 0

How many indexes to skip.

Response

resultsIndex[]

The indexes on this page.

results[].uidstring

The name of the index.

results[].primaryKeystring

The field that identifies each document.

results[].numberOfDocumentsinteger

How many documents the index holds.

totalinteger

How many indexes the project has in total.

Request

curl https://api.zeroindex.test/v1/indexes?limit=20 \
  -H "Authorization: Bearer $ZEROINDEX_KEY"
const { results, total } = await client.getIndexes({ limit: 20 });
page = client.get_indexes(limit=20)

Response

200
{
  "results": [
    {
      "uid": "products",
      "primaryKey": "id",
      "numberOfDocuments": 18240,
      "createdAt": "2026-08-02T10:21:44Z",
      "updatedAt": "2026-10-12T08:03:10Z"
    },
    {
      "uid": "articles",
      "primaryKey": "slug",
      "numberOfDocuments": 912,
      "createdAt": "2026-09-14T16:40:02Z",
      "updatedAt": "2026-10-11T19:55:31Z"
    }
  ],
  "limit": 20,
  "offset": 0,
  "total": 2
}