> ## 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.

# Get received stats

> Documents received by the key's Organization over the window per source namespace, in the buckets of getPluginCallStats. A document is counted when a command reserves a new revision of a Record; a replayed command or a revision the Record already had is not. Lists the limit namespaces with most documents, largest first; total and sources cover every namespace. Requires observability:read on a key that grants every Corpus.



## OpenAPI

````yaml /openapi.yaml get /v0/admin/stats/received
openapi: 3.1.0
info:
  title: Quivr HTTP API
  version: 0.0.0-draft
  description: >-
    Every endpoint of the Quivr v0 HTTP API. Send an API key as a bearer token;
    the key decides the Organization, the actions and the Corpora a request may
    reach.
servers: []
security:
  - ApiKey: []
paths:
  /v0/admin/stats/received:
    get:
      tags:
        - Admin
      summary: Get received stats
      description: >-
        Documents received by the key's Organization over the window per source
        namespace, in the buckets of getPluginCallStats. A document is counted
        when a command reserves a new revision of a Record; a replayed command
        or a revision the Record already had is not. Lists the limit namespaces
        with most documents, largest first; total and sources cover every
        namespace. Requires observability:read on a key that grants every
        Corpus.
      operationId: getReceivedStats
      parameters:
        - name: window
          in: query
          required: false
          schema:
            type: string
            enum:
              - 1h
              - 24h
              - 7d
            default: 1h
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReceivedStatsList'
        default:
          description: >-
            Structured error; 401 unauthenticated, 403 without
            observability:read on every Corpus, 422 invalid_window or
            invalid_limit, 503 storage unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ReceivedStatsList:
      type: object
      additionalProperties: false
      properties:
        window:
          $ref: '#/components/schemas/StatsWindowName'
        resolution_seconds:
          type: integer
          minimum: 1
        from:
          type: string
          format: date-time
        to:
          type: string
          format: date-time
        total:
          type: integer
          minimum: 0
          description: Documents received from every source namespace, listed or not.
        sources:
          type: integer
          minimum: 0
          description: >-
            Source namespaces that received at least one document, listed or
            not.
        items:
          type: array
          description: Most documents first.
          items:
            $ref: '#/components/schemas/ReceivedStats'
      required:
        - window
        - resolution_seconds
        - from
        - to
        - total
        - sources
        - 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
    StatsWindowName:
      type: string
      enum:
        - 1h
        - 24h
        - 7d
    ReceivedStats:
      type: object
      additionalProperties: false
      properties:
        source_namespace:
          type: string
          minLength: 1
        count:
          type: integer
          minimum: 1
        points:
          type: array
          description: Non-empty buckets, oldest first.
          items:
            $ref: '#/components/schemas/CountPoint'
      required:
        - source_namespace
        - count
        - points
    CountPoint:
      type: object
      additionalProperties: false
      description: >-
        One non-empty bucket, starting at start and lasting the list's
        resolution_seconds.
      properties:
        start:
          type: string
          format: date-time
        count:
          type: integer
          minimum: 1
      required:
        - start
        - count
  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.

````