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

# Get Subscription

> Get a specific webhook subscription by ID.

Authentication: Requires X-API-Key header with valid API key.

Args:
    subscription_id: Subscription UUID
    identity: Authenticated API key identity
    repository: Repository for accessing subscriptions (injected)

Returns:
    WebhookSubscriptionResponse with subscription details

Raises:
    401: If API key missing or invalid
    403: If subscription belongs to different workspace
    404: If subscription not found

Example:
    GET /api/v1/integrations/webhooks/subscriptions/550e8400-e29b-41d4-a716-446655440000

    Response (200):
    {
        "id": "550e8400-...",
        "workspace_id": "660e8400-...",
        "endpoint_url": "https://example.com/webhooks",
        "secret": "whsec_...",
        "event_types": ["asset.processing.completed"],
        "description": "Production webhook",
        "enabled": true,
        "created_at": "2026-04-09T12:00:00Z",
        "updated_at": "2026-04-09T12:00:00Z"
    }



## OpenAPI

````yaml get /api/integrations/webhooks/subscriptions/{subscription_id}
openapi: 3.1.0
info:
  title: Midmarket Integrations API
  description: An API for Midmarket integrations.
  version: 0.1.0
servers:
  - url: https://mm-midmarket-integrations-api-preview.azurewebsites.net
    description: preview
security: []
paths:
  /api/integrations/webhooks/subscriptions/{subscription_id}:
    get:
      tags:
        - webhooks
      summary: Get Subscription
      description: |-
        Get a specific webhook subscription by ID.

        Authentication: Requires X-API-Key header with valid API key.

        Args:
            subscription_id: Subscription UUID
            identity: Authenticated API key identity
            repository: Repository for accessing subscriptions (injected)

        Returns:
            WebhookSubscriptionResponse with subscription details

        Raises:
            401: If API key missing or invalid
            403: If subscription belongs to different workspace
            404: If subscription not found

        Example:
            GET /api/v1/integrations/webhooks/subscriptions/550e8400-e29b-41d4-a716-446655440000

            Response (200):
            {
                "id": "550e8400-...",
                "workspace_id": "660e8400-...",
                "endpoint_url": "https://example.com/webhooks",
                "secret": "whsec_...",
                "event_types": ["asset.processing.completed"],
                "description": "Production webhook",
                "enabled": true,
                "created_at": "2026-04-09T12:00:00Z",
                "updated_at": "2026-04-09T12:00:00Z"
            }
      operationId: >-
        get_subscription_api_integrations_webhooks_subscriptions__subscription_id__get
      parameters:
        - name: subscription_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Subscription Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookSubscriptionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - apiKey: []
components:
  schemas:
    WebhookSubscriptionResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Subscription ID
        workspaceId:
          type: string
          format: uuid
          title: Workspaceid
          description: Workspace ID
        endpointUrl:
          type: string
          title: Endpointurl
          description: Webhook endpoint URL
        eventTypes:
          items:
            type: string
          type: array
          title: Eventtypes
          description: Subscribed event types
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Subscription description
        enabled:
          type: boolean
          title: Enabled
          description: Whether subscription is active
        createdAt:
          type: string
          format: date-time
          title: Createdat
          description: Creation timestamp
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
          description: Last update timestamp
      type: object
      required:
        - id
        - workspaceId
        - endpointUrl
        - eventTypes
        - enabled
        - createdAt
        - updatedAt
      title: WebhookSubscriptionResponse
      description: Response model for webhook subscription (GET/LIST/PATCH operations).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Workspace-scoped API key. Format: sk_live_{64 hex chars}'
      x-default: sk_live_your_api_key_here

````