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

# Get webhook subscription

> Retrieve one active webhook subscription for the authenticated partner. Responses include `secretPreview`, not the full signing secret.

Retrieves one active webhook subscription for the authenticated partner.

Read responses include `secretPreview`, not the full signing secret. If you lose the full secret returned at creation time, create a new subscription and delete the old one.


## OpenAPI

````yaml GET /partner/webhook-subscriptions/{subscriptionId}
openapi: 3.0.1
info:
  title: Commenda Public APIs
  description: >-
    APIs for Commenda entity management, partner incorporation, indirect tax,
    compliance, and corporate operations.
  license:
    name: NONE
    url: NONE
  version: 1.0.0
servers:
  - url: https://api.prod.commenda.io/api/v1
    description: Commenda platform APIs, including Partner Incorporation and Commenda OS.
  - url: https://transaction-tax.api.in.commenda.io/api/v1
    description: Global Indirect Tax API.
security:
  - bearerAuth: []
paths:
  /partner/webhook-subscriptions/{subscriptionId}:
    get:
      summary: Get webhook subscription
      description: >-
        Retrieve one active webhook subscription for the authenticated partner.
        Responses include `secretPreview`, not the full signing secret.
      operationId: getPartnerWebhookSubscription
      parameters:
        - name: subscriptionId
          in: path
          required: true
          schema:
            type: string
          description: Webhook subscription identifier.
      responses:
        '200':
          description: Webhook subscription retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartnerWebhookSubscriptionResponse'
        '401':
          description: Missing or invalid partner API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliatePublicError'
        '404':
          description: Webhook subscription not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AffiliatePublicError'
      security:
        - xApiKeyAuth: []
      servers:
        - url: https://api.prod.commenda.io/api/v1
components:
  schemas:
    PartnerWebhookSubscriptionResponse:
      type: object
      required:
        - webhookSubscription
      properties:
        webhookSubscription:
          $ref: '#/components/schemas/PartnerWebhookSubscription'
    AffiliatePublicError:
      type: object
      required:
        - statusCode
        - message
        - error
      properties:
        statusCode:
          type: integer
          example: 403
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          example: Company does not belong to this affiliate firm
        error:
          type: string
          example: Forbidden
    PartnerWebhookSubscription:
      type: object
      required:
        - id
        - url
        - eventTypes
        - status
        - secretPreview
        - createdAt
      properties:
        id:
          type: string
          example: whsub_123
        url:
          type: string
          format: uri
          example: https://partner.example.com/commenda/webhooks
        eventTypes:
          type: array
          items:
            $ref: '#/components/schemas/PartnerWebhookEventType'
        status:
          $ref: '#/components/schemas/PartnerWebhookSubscriptionStatus'
        secretPreview:
          type: string
          description: Redacted signing secret preview returned by read/list endpoints.
          example: whsec_...c123
        createdAt:
          type: string
          format: date-time
          example: '2026-04-25T21:00:00.000Z'
    PartnerWebhookEventType:
      type: string
      description: >-
        Partner webhook event type. Commenda may add additional event types in
        future API updates.
      enum:
        - INCORPORATION_ISSUE_CREATED
        - INCORPORATION_ISSUE_RESOLVED
    PartnerWebhookSubscriptionStatus:
      type: string
      enum:
        - ACTIVE
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    xApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````