> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quivr.thevibecompany.co/llms.txt
> Use this file to discover all available pages before exploring further.

# List corpora

> Authorized Corpora only. Opaque page cursor bound to action/filter/scope; not a Change Cursor or a Record page cursor (either is 422 invalid_cursor).



## OpenAPI

````yaml /openapi.yaml get /v0/corpora
openapi: 3.1.0
info:
  title: Quivr V2 public text foundation contract
  version: 0.0.0-draft
  description: >-
    THE-543 and THE-547 evaluation contracts; endpoint implementations are
    separate work. Matching criterion is plugin-owned and deferred. One
    configured webhook destination, immutable Matches, independent at-least-once
    Delivery and reference-only notifications. OpenAPI is authoritative for
    transport shapes. THE-640 adds text search and asynchronous Corpus
    projection rebuild initiation.
servers: []
security:
  - ApiKey: []
paths:
  /v0/corpora:
    get:
      tags:
        - Corpora
      summary: List corpora
      description: >-
        Authorized Corpora only. Opaque page cursor bound to
        action/filter/scope; not a Change Cursor or a Record page cursor (either
        is 422 invalid_cursor).
      operationId: listCorpora
      parameters:
        - name: page_cursor
          in: query
          required: false
          schema:
            type: string
            minLength: 1
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 100
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CorpusPage'
        default:
          description: Structured error; see contract HTTP mapping.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CorpusPage:
      type: object
      additionalProperties: false
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Corpus'
        next_page_cursor:
          type: string
          minLength: 1
      required:
        - items
    Error:
      type: object
      additionalProperties: false
      properties:
        code:
          type: string
          minLength: 1
        message:
          type: string
          minLength: 1
        retryable:
          type: boolean
        field:
          type: string
          minLength: 1
          description: >-
            JSON Pointer (RFC 6901) to the request member that caused a 422,
            when known (for example /config/url or /credential/secret/token on
            connector commands).
        resync_url:
          type: string
          format: uri-reference
      required:
        - code
        - message
        - retryable
    Corpus:
      type: object
      additionalProperties: false
      properties:
        corpus_id:
          type: string
          minLength: 1
        name:
          type: string
          minLength: 1
        effective_retrieval:
          $ref: '#/components/schemas/RetrievalConfig'
      required:
        - corpus_id
        - name
        - effective_retrieval
    RetrievalConfig:
      type: object
      additionalProperties: false
      properties:
        plugin_profile:
          type: string
          minLength: 1
        fields:
          type: array
          items:
            $ref: '#/components/schemas/FieldMapping'
      required: []
      description: >-
        Pin a plugin-provided profile when resolving config. Explicit fields
        override default fields by logical name; unmapped source data remains
        preserved. getCorpus returns the effective resolved fields. The only
        built-in profile, example.editorial, is illustrative (paired with the
        example extension namespace), not a product default; an uninstalled
        profile is 422 unsupported_profile.
    FieldMapping:
      type: object
      additionalProperties: false
      properties:
        name:
          type: string
          minLength: 1
        source_pointer:
          type: string
          minLength: 1
        type:
          type: string
          enum:
            - string
            - number
            - boolean
            - datetime
            - string_array
        roles:
          type: array
          items:
            type: string
            enum:
              - search
              - filter
          minItems: 1
      required:
        - name
        - source_pointer
        - type
        - roles
      description: >-
        v0 logical field mapping. name is a logical name matching
        ^[a-z][a-z0-9_]{0,63}$, never a search-engine field name. source_pointer
        is an RFC 6901 JSON Pointer into the canonical source view of a Version,
        rooted at /manifest, /provenance or /extensions/{namespace} with a
        declared namespace (built in, or owned by the startup-pinned plugin);
        other roots are rejected as invalid_mapping. Core validates role/type
        compatibility (search requires string or string_array). A search field
        named title replaces the projected title; other search fields add text
        once per Record Version. Filter roles are validated and preserved; no
        public filter API consumes them in v0.
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      description: >-
        API key, not necessarily a JWT. Server derives Organization, permitted
        actions and Corpus scope; every resource access is authorized.

````