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

# Receive integration webhook



## OpenAPI

````yaml https://api.contracting.kukkingu.software/api/v1/docs.json post /api/v1/webhooks/{endpointKey}
openapi: 3.1.0
info:
  title: Contracting Backend API
  version: 0.1.0
  description: API documentation for the Contracting backend service.
servers:
  - url: https://api.contracting.kukkingu.software
    description: API server
security:
  - bearerAuth: []
paths:
  /api/v1/webhooks/{endpointKey}:
    post:
      tags:
        - Webhooks
      summary: Receive integration webhook
      parameters:
        - schema:
            type: string
            pattern: ^[A-Za-z0-9_-]{43}$
          in: path
          name: endpointKey
          required: true
        - schema:
            type: string
            minLength: 1
          in: header
          name: x-atlassian-webhook-identifier
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                timestamp:
                  type: integer
                  minimum: -9007199254740991
                  maximum: 9007199254740991
                webhookEvent:
                  type: string
                  enum:
                    - jira:issue_created
                    - jira:issue_updated
                    - jira:issue_deleted
                matchedWebhookIds:
                  type: array
                  items:
                    anyOf:
                      - type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      - type: string
                        minLength: 1
                issue:
                  type: object
                  properties:
                    id:
                      type: string
                      minLength: 1
                    key:
                      type: string
                      minLength: 1
                    fields:
                      type: object
                      properties:
                        project:
                          type: object
                          properties:
                            key:
                              type: string
                              minLength: 1
                          required:
                            - key
                          additionalProperties: {}
                      required:
                        - project
                      additionalProperties: {}
                  required:
                    - id
                    - key
                    - fields
                  additionalProperties: {}
              required:
                - timestamp
                - webhookEvent
                - matchedWebhookIds
                - issue
              additionalProperties: {}
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      accepted:
                        type: boolean
                        const: true
                    required:
                      - accepted
                    additionalProperties: false
                required:
                  - data
                additionalProperties: false
                description: Standard success response payload wrapped in a data property.
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Machine-readable error code.
                    example: ValidationError
                  message:
                    type: string
                    description: Human-readable validation error summary.
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          description: Request field that failed validation.
                        message:
                          type: string
                          description: Validation failure message for the field.
                        constraint:
                          type: string
                          description: Validation rule that was violated.
                      required:
                        - field
                        - message
                        - constraint
                      additionalProperties: false
                required:
                  - error
                  - message
                additionalProperties: false
                description: Error response returned when request validation fails.
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    default: Unauthorized
                    description: Machine-readable error code.
                    example: Unauthorized
                    type: string
                  message:
                    default: Unauthorized
                    description: Human-readable error message.
                    example: Unauthorized
                    type: string
                required:
                  - error
                  - message
                additionalProperties: false
                description: Error response for requests without valid authentication.
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    default: NotFound
                    description: Machine-readable error code.
                    example: NotFound
                    type: string
                  message:
                    default: Not Found
                    description: Human-readable error message.
                    example: Not Found
                    type: string
                required:
                  - error
                  - message
                additionalProperties: false
                description: Error response when the requested resource does not exist.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````