Skip to content
Navigation

Get an index

Source-scoped read tokens get the name only; other callers also get file sizes and retention policy.

GET
/indexes/{index}

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • index
    string
    required

    Index name: lowercase letters, digits, underscores and hyphens. The token's index scope applies as well as its source scope.

    maxLength: 63 · minLength: 1 · pattern: ^[a-z0-9][a-z0-9_-]*$

Returns

200

Index information

JSON
  • name
    string
    required
  • size_bytes
    optional
    integer
    format: int64 · minimum: 0
  • database_bytes
    optional
    integer
    format: int64 · minimum: 0
  • wal_bytes
    optional
    integer
    format: int64 · minimum: 0
  • archive_bytes
    optional
    integer
    format: int64 · minimum: 0
  • temp_bytes
    optional
    integer
    format: int64 · minimum: 0
  • other_bytes
    optional
    integer
    format: int64 · minimum: 0
  • max_size_bytes
    optional
    integer | null
    format: int64 · minimum: 1
  • retention_ms
    optional
    integer
    format: int64 · minimum: 1
  • ready
    optional
    boolean

401

Read or admin token required

403

Index outside token scope

404

Unknown index

429

Diagnostics capacity exhausted

503

Filesystem inspection unavailable

Type to search…

↑↓ navigate↵ selectEsc close