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

# Mean time to close over time



## OpenAPI

````yaml https://api.wirespeed.co/v1/openapi.json post /v1/team/statistics/mean-time-to-close-over-time
openapi: 3.0.0
info:
  title: Wirespeed API
  description: The public Wirespeed API. v1 is the first stable contract.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.wirespeed.co
security: []
tags: []
paths:
  /v1/team/statistics/mean-time-to-close-over-time:
    post:
      tags:
        - Team
      summary: Mean time to close over time
      operationId: TeamController_meanTimeToCloseOverTime
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamAnalyticsQueryDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeanTimeSeriesResponse'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
        '404':
          description: ''
      security:
        - bearer: []
components:
  schemas:
    TeamAnalyticsQueryDto:
      type: object
      properties:
        startDate:
          type: string
          description: ISO start date
        endDate:
          type: string
          description: ISO end date
        granularity:
          type: string
          enum:
            - day
            - week
            - month
          description: Time bucket granularity
      required:
        - granularity
    MeanTimeSeriesResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/MeanTimeSeriesPoint'
      required:
        - data
    HttpError:
      type: object
      properties:
        message:
          type: string
        statusCode:
          type: number
      required:
        - message
        - statusCode
    MeanTimeSeriesPoint:
      type: object
      properties:
        bucket:
          type: string
          description: Time bucket label
        avgSeconds:
          type: number
          description: Average duration in seconds
        count:
          type: number
          description: Number of samples in bucket
      required:
        - bucket
        - avgSeconds
        - count
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````