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

# Create subscription

> Create a new webhook subscription



## OpenAPI

````yaml api-docs/draft/webhooks.json post /v1/regions/global/webhooks/subscriptions
openapi: 3.1.1
info:
  title: Webhooks API
  version: 1.0.0
  description: >-
    Webhooks API for the k0rdent Enterprise platform. Provides webhook
    management, subscription configuration, and delivery history tracking.
  contact:
    name: k0rdent Enterprise API Support
    email: api-support@example.com
    url: https://support.example.com
  license:
    name: Proprietary
    url: https://k0rdent.example.com/license
servers:
  - url: ''
    description: For documentation only
  - url: https://api.example.com
    description: Arc API Base URL
  - url: https://api.internal.example.com
    description: Atlas API Base URL
  - url: http://localhost:{port}
    description: Local Development
    variables:
      port:
        default: '4080'
        description: Webhooks service port
security: []
paths:
  /v1/regions/global/webhooks/subscriptions:
    post:
      tags:
        - Webhook Subscriptions
      summary: Create subscription
      description: Create a new webhook subscription
      operationId: createSubscription
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                webhookId:
                  type: string
                eventType:
                  type: string
                filters:
                  type: object
                  additionalProperties: true
              required:
                - webhookId
                - eventType
      responses:
        '201':
          description: Subscription created
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/Subscription'
components:
  schemas:
    Subscription:
      type: object
      description: Webhook subscription
      properties:
        id:
          type: string
          description: Subscription identifier
        webhookId:
          type: string
          description: Parent webhook identifier
        eventType:
          type: string
          description: Subscribed event type
        filters:
          type: object
          nullable: true
          additionalProperties: true
          description: Event filters for this subscription
        active:
          type: boolean
          default: true
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - webhookId
        - eventType

````