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

> Returns paginated delivery logs for a webhook subscription with filtering options.



## OpenAPI

````yaml GET /api/v1/mgt/workspaces/{workspaceId}/webhook-subscriptions/{subscriptionId}/logs
openapi: 3.1.0
info:
  title: Xenia Team API - Get Webhook Subscription Logs
  version: 1.0.0
  description: Retrieve delivery logs for a specific webhook subscription.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/mgt/workspaces/{workspaceId}/webhook-subscriptions/{subscriptionId}/logs:
    get:
      tags:
        - Webhooks
      summary: Get Subscription Logs
      description: >-
        Returns paginated delivery logs for a webhook subscription with
        filtering options.
      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: eventType
          in: query
          schema:
            type: string
          description: Filter by event type
        - name: status
          in: query
          schema:
            type: string
            enum:
              - success
              - failed
              - pending
          description: Filter by delivery status
        - name: startDate
          in: query
          schema:
            type: string
            format: date-time
          description: Start of date range
        - name: endDate
          in: query
          schema:
            type: string
            format: date-time
          description: End of date range
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
            maximum: 100
          description: Number of results
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
          description: Results to skip
      responses:
        '200':
          description: Logs retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: boolean
                  code:
                    type: integer
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        eventId:
                          type: string
                        eventType:
                          type: string
                        status:
                          type: string
                        responseStatus:
                          type: integer
                        responseTimeMs:
                          type: integer
                        attemptCount:
                          type: integer
                        error:
                          type: string
                        createdAt:
                          type: string
                          format: date-time
                  pagination:
                    type: object
                    properties:
                      total:
                        type: integer
                      limit:
                        type: integer
                      offset:
                        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

````