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

# Get aggregate survey analytics

> Workspace timezone and current plan analytics entitlement. Dashboard metric parity is a release gate; as_of is query time, not event freshness guarantee. Zero views gives null conversion. Requires the analytics:read permission.



## OpenAPI

````yaml /openapi.yaml get /v1/surveys/{survey_id}/analytics/summary
openapi: 3.1.0
info:
  title: Novella API
  version: 1.0.0
  description: >-
    Read surveys, responses, respondents, and survey analytics in your Novella
    workspace.
servers:
  - url: https://api.novellahq.com
    description: Production
security:
  - WorkspaceApiKey: []
tags:
  - name: System
  - name: Surveys
  - name: Responses
  - name: Respondents
  - name: Analytics
externalDocs:
  description: Novella API guides
  url: https://docs.novellahq.com
paths:
  /v1/surveys/{survey_id}/analytics/summary:
    get:
      tags:
        - Analytics
      summary: Get aggregate survey analytics
      description: >-
        Workspace timezone and current plan analytics entitlement. Dashboard
        metric parity is a release gate; as_of is query time, not event
        freshness guarantee. Zero views gives null conversion. Requires the
        analytics:read permission.
      operationId: getSurveyAnalyticsSummary
      parameters:
        - $ref: '#/components/parameters/survey_idPath'
        - $ref: '#/components/parameters/DateFrom'
        - $ref: '#/components/parameters/DateTo'
      responses:
        '200':
          description: Successful response.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/RequestId'
            Cache-Control:
              $ref: '#/components/headers/CacheControl'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsSummaryEnvelope'
              example:
                data:
                  survey_id: 35cdd1d7-cb61-40aa-bdfa-7da240617703
                  date_from: '2026-09-30'
                  date_to: '2026-09-30'
                  timezone: Europe/Amsterdam
                  views: 100
                  completions: 40
                  conversion_rate: 0.4
                  as_of: '2026-09-30T18:00:00Z'
                meta:
                  request_id: req_example
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  parameters:
    survey_idPath:
      name: survey_id
      in: path
      required: true
      description: Stable opaque public ID.
      schema:
        $ref: '#/components/schemas/PublicId'
    DateFrom:
      name: date_from
      in: query
      required: true
      description: >-
        Inclusive start calendar date in workspace timezone; range maximum 366
        days.
      schema:
        $ref: '#/components/schemas/Date'
    DateTo:
      name: date_to
      in: query
      required: true
      description: >-
        Inclusive end calendar date in workspace timezone; cannot exceed
        available retention or today.
      schema:
        $ref: '#/components/schemas/Date'
  headers:
    RequestId:
      description: Server-generated request correlation ID.
      schema:
        type: string
    CacheControl:
      description: private, no-store on business resource responses.
      schema:
        type: string
      example: private, no-store
    RateLimitLimit:
      description: Workspace plan allowance per UTC minute.
      schema:
        type: integer
        minimum: 1
      example: 60
    RateLimitRemaining:
      description: Remaining allowance shared across all keys.
      schema:
        type: integer
        minimum: 0
      example: 59
    RateLimitReset:
      description: Unix seconds at next UTC minute boundary.
      schema:
        type: integer
      example: 1790791260
    WWWAuthenticate:
      description: Bearer challenge.
      schema:
        type: string
      example: Bearer
    Allow:
      description: Allowed business operation.
      schema:
        type: string
      example: GET
    RetryAfter:
      description: Whole seconds to wait before retrying. Required on quota 429.
      schema:
        type: integer
        minimum: 1
      example: 30
  schemas:
    AnalyticsSummaryEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/AnalyticsSummary'
        meta:
          $ref: '#/components/schemas/RequestMeta'
      required:
        - data
        - meta
      additionalProperties: false
    PublicId:
      type: string
      format: uuid
      pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
      description: Stable opaque public ID. Lowercase UUIDv4. Consumers must not parse it.
    Date:
      type: string
      format: date
      pattern: ^\d{4}-\d{2}-\d{2}$
    AnalyticsSummary:
      type: object
      properties:
        score:
          $ref: '#/components/schemas/ScoreBreakdown'
        survey_id:
          $ref: '#/components/schemas/PublicId'
        date_from:
          $ref: '#/components/schemas/Date'
        date_to:
          $ref: '#/components/schemas/Date'
        timezone:
          type: string
          minLength: 1
          description: Configured workspace IANA timezone.
        views:
          type: integer
          minimum: 0
        completions:
          type: integer
          minimum: 0
        conversion_rate:
          type:
            - number
            - 'null'
          minimum: 0
          description: >-
            Completions/views with existing dashboard metric semantics;
            fraction, null when views=0.
        as_of:
          $ref: '#/components/schemas/UtcTimestamp'
      required:
        - survey_id
        - date_from
        - date_to
        - timezone
        - views
        - completions
        - conversion_rate
        - as_of
      additionalProperties: false
    RequestMeta:
      type: object
      properties:
        request_id:
          type: string
          minLength: 1
      required:
        - request_id
      additionalProperties: false
    ErrorEnvelope:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      additionalProperties: false
    ScoreBreakdown:
      type: object
      description: >-
        Completed scored responses grouped by submission date in the workspace
        timezone. NPS uses promoter percentage minus detractor percentage. Other
        types report the mean in native scale units.
      required:
        - survey_type
        - metric
        - value
        - scored_responses
        - distribution
      properties:
        survey_type:
          type: string
        metric:
          type: string
          enum:
            - nps
            - mean_rating
        value:
          type:
            - number
            - 'null'
        scored_responses:
          type: integer
          minimum: 0
        distribution:
          type: array
          items:
            type: object
            required:
              - rating
              - count
            properties:
              rating:
                type: number
              count:
                type: integer
                minimum: 1
    UtcTimestamp:
      type: string
      format: date-time
      pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,6})?Z$
      description: UTC RFC3339 timestamp with Z suffix.
    ErrorDetail:
      type: object
      properties:
        type:
          type: string
          enum:
            - validation_error
            - authentication_error
            - authorization_error
            - not_found_error
            - method_error
            - rate_limit_error
            - server_error
        code:
          type: string
          minLength: 1
        message:
          type: string
        request_id:
          type: string
          minLength: 1
      required:
        - type
        - code
        - message
        - request_id
      additionalProperties: false
  responses:
    BadRequest:
      description: >-
        400: Invalid query parameter. Quota headers appear only after
        eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: validation_error
              code: invalid_parameter
              message: Invalid query parameter.
              request_id: req_example
    Unauthorized:
      description: >-
        401: A valid API key is required. Quota headers appear only after
        eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        WWW-Authenticate:
          $ref: '#/components/headers/WWWAuthenticate'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: authentication_error
              code: invalid_credentials
              message: A valid API key is required.
              request_id: req_example
    Forbidden:
      description: >-
        403: This API key does not have the required permission. Quota headers
        appear only after eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: authorization_error
              code: forbidden
              message: Access denied.
              request_id: req_example
    NotFound:
      description: >-
        404: Resource not found. Quota headers appear only after eligible-key
        attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: not_found_error
              code: resource_not_found
              message: Resource not found.
              request_id: req_example
    MethodNotAllowed:
      description: >-
        405: Unsupported HTTP method. Quota headers appear only after
        eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
        Allow:
          $ref: '#/components/headers/Allow'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: method_error
              code: method_not_allowed
              message: Unsupported HTTP method.
              request_id: req_example
    TooManyRequests:
      description: >-
        429: Workspace request limit exceeded. Quota headers appear only after
        eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: rate_limit_error
              code: rate_limit_exceeded
              message: Workspace request limit exceeded.
              request_id: req_example
    InternalError:
      description: >-
        500: An unexpected error occurred. Quota headers appear only after
        eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: server_error
              code: internal_error
              message: An unexpected error occurred.
              request_id: req_example
    ServiceUnavailable:
      description: >-
        503: The requested service is temporarily unavailable. Quota headers
        appear only after eligible-key attribution.
      headers:
        X-Request-Id:
          $ref: '#/components/headers/RequestId'
        Cache-Control:
          $ref: '#/components/headers/CacheControl'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              type: server_error
              code: service_unavailable
              message: The requested service is temporarily unavailable.
              request_id: req_example
  securitySchemes:
    WorkspaceApiKey:
      type: http
      scheme: bearer
      bearerFormat: Random 32-byte Base64URL secret
      description: Send your workspace API key as an Authorization Bearer token.

````

## Related topics

- [Get daily survey analytics](https://docs.novellahq.com/api-reference/analytics/get-daily-survey-analytics.md)
- [Read survey analytics](https://docs.novellahq.com/survey-analytics.md)
- [Authentication](https://docs.novellahq.com/authentication.md)
- [Novella API](https://docs.novellahq.com/index.md)
- [Get a current survey definition](https://docs.novellahq.com/api-reference/surveys/get-a-current-survey-definition.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.