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

# Get Workspace Webhook Stats

> Returns aggregate webhook delivery statistics for the entire workspace.



## OpenAPI

````yaml GET /api/v1/mgt/workspaces/{workspaceId}/webhook-stats
openapi: 3.1.0
info:
  title: Xenia Team API - Get Workspace Webhook Stats
  version: 1.0.0
  description: Retrieve webhook delivery statistics for a workspace.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/mgt/workspaces/{workspaceId}/webhook-stats:
    get:
      tags:
        - Webhooks
      summary: Get Workspace Webhook Stats
      description: Returns aggregate webhook delivery statistics for the entire workspace.
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Workspace ID
        - name: period
          in: query
          schema:
            type: string
            enum:
              - 24h
              - 7d
              - 30d
            default: 24h
          description: Time period for statistics
      responses:
        '200':
          description: Statistics retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                  code:
                    type: integer
                  data:
                    type: object
                    properties:
                      period:
                        type: string
                      totalDeliveries:
                        type: integer
                      successfulDeliveries:
                        type: integer
                      failedDeliveries:
                        type: integer
                      successRate:
                        type: number
                      averageLatencyMs:
                        type: integer
                      byEventType:
                        type: object
                        additionalProperties:
                          type: integer
              example:
                status: true
                code: 200
                data:
                  period: 7d
                  totalDeliveries: 1250
                  successfulDeliveries: 1230
                  failedDeliveries: 20
                  successRate: 98.4
                  averageLatencyMs: 145
                  byEventType:
                    task.status_changed: 800
                    submission.submitted: 350
                    user.activated: 100
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````