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

# Show totals

> Returns aggregated duration totals for activities matching the given filters, broken down by validation status.



## OpenAPI

````yaml 26.06.25 post /api/activity/activities.show-totals
openapi: 3.1.0
info:
  title: tipee
  version: 26.06.25
servers: []
security:
  - basicAuth: []
tags:
  - name: Activity
    description: Activity
  - name: Balances
    description: Balances
  - name: Directory
    description: Directory
  - name: Schedule
    description: Schedule
  - name: Timeclock
    description: Timeclock
paths:
  /api/activity/activities.show-totals:
    post:
      tags:
        - Activity
      summary: Show totals
      description: >-
        Returns aggregated duration totals for activities matching the given
        filters, broken down by validation status.
      operationId: post_app_ui_api_activity_entry_activityquery_showactivitiestotals
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShowActivitiesTotalsQuery'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivityTotalsView'
components:
  schemas:
    ShowActivitiesTotalsQuery:
      properties:
        filters:
          type: array
          items:
            $ref: '#/components/schemas/ShowActivitiesTotalsQueryFilter'
      type: object
    ActivityTotalsView:
      required:
        - total
        - billable
        - validated
        - non_validated
        - rejected
        - non_submitted
      properties:
        total:
          $ref: '#/components/schemas/Duration'
        billable:
          $ref: '#/components/schemas/Duration'
        validated:
          $ref: '#/components/schemas/Duration'
        non_validated:
          $ref: '#/components/schemas/Duration'
        rejected:
          $ref: '#/components/schemas/Duration'
        non_submitted:
          $ref: '#/components/schemas/Duration'
      type: object
    ShowActivitiesTotalsQueryFilter:
      discriminator:
        propertyName: key
      oneOf:
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: activity.date_range
              enum:
                - activity.date_range
            value:
              $ref: '#/components/schemas/LocalDateInterval'
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: activity.tags_ids
              enum:
                - activity.tags_ids
            value:
              $ref: '#/components/schemas/TagsFilterValue'
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: activity.projects_ids
              enum:
                - activity.projects_ids
            value:
              type: array
              items:
                $ref: '#/components/schemas/Snowflake'
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: activity.project_name
              enum:
                - activity.project_name
            value:
              type: string
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: activity.tasks_ids
              enum:
                - activity.tasks_ids
            value:
              type: array
              items:
                $ref: '#/components/schemas/Snowflake'
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: activity.task_name
              enum:
                - activity.task_name
            value:
              type: string
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: activity.billable
              enum:
                - activity.billable
            value:
              type: boolean
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: activity.projects_resources
              enum:
                - activity.projects_resources
            value:
              type: array
              items:
                oneOf:
                  - $ref: '#/components/schemas/Snowflake'
                  - type: 'null'
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: activity.day_task_status
              enum:
                - activity.day_task_status
            value:
              type: array
              items:
                $ref: '#/components/schemas/DayTaskStatus'
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: activity.resources
              enum:
                - activity.resources
            value:
              type: array
              items:
                $ref: '#/components/schemas/Snowflake'
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: activity.has_remark
              enum:
                - activity.has_remark
            value:
              type: boolean
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: activity.has_budget
              enum:
                - activity.has_budget
            value:
              type: boolean
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: or
              enum:
                - or
            value:
              type: array
              items:
                $ref: '#/components/schemas/ShowActivitiesTotalsQueryFilter'
          type: object
        - required:
            - key
            - value
          properties:
            key:
              type: string
              example: and
              enum:
                - and
            value:
              type: array
              items:
                $ref: '#/components/schemas/ShowActivitiesTotalsQueryFilter'
          type: object
    Duration:
      description: '[ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations)'
      type: string
      format: duration
      example: PT1H30M20S
    LocalDateInterval:
      type: string
      format: local-date-interval
      example: 2019-11-11/2019-12-12
    TagsFilterValue:
      required:
        - tags
        - operator
      properties:
        tags:
          type: array
          items:
            oneOf:
              - $ref: '#/components/schemas/Snowflake'
              - type: 'null'
        operator:
          $ref: '#/components/schemas/LogicalOperator'
      type: object
    Snowflake:
      type: string
      format: snowflake
      example: '872815618512410358'
    DayTaskStatus:
      type: string
      example: editing
      enum:
        - editing
        - submitted
        - validated
        - rejected
    LogicalOperator:
      type: string
      example: or
      enum:
        - or
        - and

````