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

# [DRAFT] List webhook subscriptions

<Note>
  **Coming soon**: The Webhooks API is currently under design review. This documentation describes the target interface and may change before release.
</Note>

## Overview

Retrieves all the webhook subscriptions registered by your integration.

> **Important**: the `signingSecret` is never included in this response. It is only returned when a subscription is created or its secret is rotated.


## OpenAPI

````yaml GET /webhooks/subscriptions
openapi: 3.0.1
info:
  title: Partners API
  description: >-
    Partners API definition where you can check the documentation for the
    different available operations to integrate with the platform.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://pre-partners-api.cobee.io/api/v3
  - url: https://partners-api.cobee.io/api/v3
security:
  - bearerAuth: []
paths:
  /webhooks/subscriptions:
    get:
      summary: List webhook subscriptions
      responses:
        '200':
          description: Webhook subscriptions successfully retrieved
          content:
            application/json:
              schema:
                type: object
                required:
                  - subscriptions
                properties:
                  subscriptions:
                    type: array
                    description: List of webhook subscriptions
                    items:
                      type: object
                      required:
                        - id
                        - url
                        - eventTypes
                        - status
                        - createdAt
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: The unique identifier of the subscription.
                          example: c3d4e5f6-a1b2-4c3d-8e5f-6a7b8c9d0e1f
                        url:
                          type: string
                          format: uri
                          description: >-
                            The HTTPS endpoint that will receive the webhook
                            calls.
                          example: https://partner.example.com/cobee/webhooks
                        eventTypes:
                          type: array
                          description: The event types this subscription will receive.
                          items:
                            type: string
                            enum:
                              - employee.consumption.registered
                              - company.payroll-cycle.closed
                              - employee.committed-expense.requested
                              - employee.committed-expense.finished
                              - employee.committed-expense.cancelled
                              - employee.committed-expense.payment.executed
                              - employee.committed-expense.payment.cancelled
                        status:
                          type: string
                          description: The status of the subscription.
                          enum:
                            - enabled
                            - disabled
                          example: enabled
                        createdAt:
                          type: integer
                          description: >-
                            When the subscription was created, in timestamp
                            format.
                          format: timestamp
                          example: 1753939051
        '500':
          description: Internal Server Error - Something went wrong on our end
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                message: Internal server error
components:
  schemas:
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
      example:
        message: 'Bad request: Invalid field value'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````