> ## 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 Subscription Stats

> Returns delivery statistics for a specific webhook subscription.



## OpenAPI

````yaml GET /api/v1/mgt/workspaces/{workspaceId}/webhook-subscriptions/{subscriptionId}/stats
openapi: 3.1.0
info:
  title: Xenia Team API - Get Webhook Subscription Stats
  version: 1.0.0
  description: Retrieve delivery statistics for a specific webhook subscription.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/mgt/workspaces/{workspaceId}/webhook-subscriptions/{subscriptionId}/stats:
    get:
      tags:
        - Webhooks
      summary: Get Subscription Stats
      description: Returns delivery statistics for a specific webhook subscription.
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Workspace ID
        - name: subscriptionId
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Subscription 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:
                      subscriptionId:
                        type: string
                      period:
                        type: string
                      totalDeliveries:
                        type: integer
                      successfulDeliveries:
                        type: integer
                      failedDeliveries:
                        type: integer
                      successRate:
                        type: number
                      averageLatencyMs:
                        type: integer
                      byEventType:
                        type: object
                        additionalProperties:
                          type: integer
        '401':
          description: Unauthorized
        '404':
          description: Subscription not found
      security:
        - clientKey: []
          clientSecret: []
components:
  securitySchemes:
    clientKey:
      type: apiKey
      in: header
      name: x-client-key
    clientSecret:
      type: apiKey
      in: header
      name: x-client-secret

````