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

# Get

> Request, error, and CPU-time analytics for the project's deployed app, bucketed by hour (default) or UTC day. The window defaults to the last 24 hours. Scale-to-zero apps report CPU-time percentiles; always-on apps answer requests and errors with null CPU fields — the platform edge does not observe CPU time.



## OpenAPI

````yaml /openapi.json get /v1/orgs/{orgId}/projects/{projectId}/analytics
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}/analytics:
    get:
      tags:
        - analytics
      summary: Get
      description: >-
        Request, error, and CPU-time analytics for the project's deployed app,
        bucketed by hour (default) or UTC day. The window defaults to the last
        24 hours. Scale-to-zero apps report CPU-time percentiles; always-on apps
        answer requests and errors with null CPU fields — the platform edge does
        not observe CPU time.
      operationId: analytics.get
      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: since
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: >-
            Include traffic at or after this time (RFC 3339). Defaults to 24
            hours before until.
        - name: until
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: >-
            Include traffic strictly before this time (RFC 3339). Defaults to
            now.
        - name: granularity
          in: query
          required: false
          schema:
            type: string
            enum:
              - hour
              - day
          description: 'Bucket size: "hour" (default) or "day". Buckets are UTC.'
        - name: environment
          in: query
          required: false
          schema:
            type: string
            pattern: ^[a-z][a-z0-9-]{0,38}$
          description: >-
            Environment slug to scope this operation to. Defaults to
            "production". An environment that does not exist on the project
            answers 404. Analytics are per app: production answers for the
            project's app, custom environments for their own.
      responses:
        '200':
          description: Bucketed traffic series with window totals.
          content:
            application/json:
              schema:
                type: object
                properties:
                  series:
                    type: array
                    description: >-
                      Ascending by bucket. Buckets the window saw no traffic for
                      are omitted.
                    items:
                      type: object
                      properties:
                        bucket:
                          type: string
                          format: date-time
                          description: Start of the bucket (UTC).
                        requests:
                          type: number
                        errors:
                          type: number
                        cpuP50Us:
                          type:
                            - number
                            - 'null'
                          description: >-
                            Median CPU time per request in microseconds —
                            execution time, not wall-clock latency. Null when
                            the bucket reports none; always-on apps never do.
                        cpuP99Us:
                          type:
                            - number
                            - 'null'
                          description: >-
                            99th-percentile CPU time per request in microseconds
                            — execution time, not wall-clock latency. Null when
                            the bucket reports none; always-on apps never do.
                      required:
                        - bucket
                        - requests
                        - errors
                        - cpuP50Us
                        - cpuP99Us
                  totals:
                    type: object
                    properties:
                      requests:
                        type: number
                      errors:
                        type: number
                      errorRate:
                        type: number
                        description: >-
                          errors / requests across the window; 0 when the window
                          saw no requests.
                    required:
                      - requests
                      - errors
                      - errorRate
                  note:
                    type: string
                    description: >-
                      Present when there is context worth surfacing — for
                      example the environment has no runtime yet.
                required:
                  - series
                  - totals
        '404':
          description: No such project or environment in this organization.
        '422':
          description: Invalid since, until, or granularity.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````