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

# Get Session Score Analytics Trend

> Time series of average session scores by metric.

Auth: ``Bearer`` + ``X-Project-ID`` | ``X-API-Key`` + ``X-Project-Name``



## OpenAPI

````yaml /openapi.json get /evaluations/analytics/session-scores/trend
openapi: 3.1.0
info:
  title: PandaProbe API
  description: >-
    Open-source agent engineering platform — trace LLM calls, evaluate agent
    performance, and monitor AI pipelines.
  version: 0.1.0
  contact:
    name: PandaProbe
    url: https://www.pandaprobe.com
    email: support@pandaprobe.com
servers:
  - url: https://api.pandaprobe.com
    description: Production
security: []
tags:
  - name: health
    description: Service health and readiness probes.
  - name: user
    description: Authenticated user profile.
  - name: traces
    description: Trace ingestion, querying, updating, and analytics.
  - name: sessions
    description: Session-based trace aggregation and analytics.
  - name: evaluations
    description: Evaluation runs, scores, analytics, and monitoring.
  - name: organizations
    description: Organization management and membership.
  - name: projects
    description: Project CRUD within organizations.
  - name: api-keys
    description: API key lifecycle management.
paths:
  /evaluations/analytics/session-scores/trend:
    get:
      tags:
        - evaluations
      summary: Get Session Score Analytics Trend
      description: |-
        Time series of average session scores by metric.

        Auth: ``Bearer`` + ``X-Project-ID`` | ``X-API-Key`` + ``X-Project-Name``
      operationId: >-
        get_session_score_analytics_trend_evaluations_analytics_session_scores_trend_get
      parameters:
        - name: metric_name
          in: query
          required: true
          schema:
            type: string
            description: Metric name to get trend for
            title: Metric Name
          description: Metric name to get trend for
        - name: date_from
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Date From
        - name: date_to
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Date To
        - name: granularity
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/AnalyticsGranularity'
            default: day
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ScoreTrendItem'
                title: >-
                  Response Get Session Score Analytics Trend Evaluations
                  Analytics Session Scores Trend Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
        - ApiKey: []
        - ProjectID: []
        - ProjectName: []
components:
  schemas:
    AnalyticsGranularity:
      type: string
      enum:
        - hour
        - day
        - week
      title: AnalyticsGranularity
      description: Time-bucket granularity for analytics queries.
    ScoreTrendItem:
      properties:
        bucket:
          anyOf:
            - type: string
            - type: 'null'
          title: Bucket
        metric_name:
          type: string
          title: Metric Name
        avg_score:
          type: number
          title: Avg Score
        count:
          type: integer
          title: Count
      type: object
      required:
        - bucket
        - metric_name
        - avg_score
        - count
      title: ScoreTrendItem
      description: Time-bucketed average score for a metric.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
    ProjectID:
      type: apiKey
      in: header
      name: X-Project-ID
    ProjectName:
      type: apiKey
      in: header
      name: X-Project-Name

````