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

# Detections grouped by endpoint/user group



## OpenAPI

````yaml https://api.wirespeed.co/v1/openapi.json post /v1/team/statistics/detections-by-group
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/detections-by-group:
    post:
      tags:
        - Team
      summary: Detections grouped by endpoint/user group
      operationId: TeamController_detectionsByGroup
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TeamAnalyticsQueryDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroupedCountResponse'
        '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
    GroupedCountResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/GroupedCountPoint'
      required:
        - data
    HttpError:
      type: object
      properties:
        message:
          type: string
        statusCode:
          type: number
      required:
        - message
        - statusCode
    GroupedCountPoint:
      type: object
      properties:
        name:
          type: string
          description: Group label (category, integration, or group)
        count:
          type: number
          description: Count for this group
      required:
        - name
        - count
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````