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

# Stats

> Get backlog, throughput, delivery, retry, and dead-letter counters for a time window.



## OpenAPI

````yaml /openapi.json get /v1/orgs/{orgId}/projects/{projectId}/queues/{queueId}/stats
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/projects/{projectId}/queues/{queueId}/stats:
    get:
      tags:
        - queues
      summary: Stats
      description: >-
        Get backlog, throughput, delivery, retry, and dead-letter counters for a
        time window.
      operationId: queues.stats
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: The project's id (UUID) or slug — either form is accepted.
        - name: queueId
          in: path
          required: true
          schema:
            type: string
        - name: since
          in: query
          required: false
          schema:
            type: string
            format: date-time
        - name: until
          in: query
          required: false
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: Queue statistics.
          content:
            application/json:
              schema:
                type: object
                properties:
                  sampledAt:
                    type: string
                    format: date-time
                  backlogMessages:
                    type: integer
                  backlogBytes:
                    type: integer
                  published:
                    type: integer
                  delivered:
                    type: integer
                  retried:
                    type: integer
                  deadLettered:
                    type: integer
                  oldestMessageAgeSeconds:
                    type:
                      - integer
                      - 'null'
                required:
                  - sampledAt
                  - backlogMessages
                  - backlogBytes
                  - published
                  - delivered
                  - retried
                  - deadLettered
                  - oldestMessageAgeSeconds
        '404':
          description: No such queue in this project.
        '422':
          description: Invalid time window.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````