---
title: "The endpoint receives internal webhooks for testing purposes."
url: "https://developer-qual.migros.ch/apis/webhook-receiver-qual-1/versions/75e1bbe8-af91-435c-b484-6a2e746bfb27/operations/WebHookController_receive-internal"
---

> Full API specification: https://developer-qual.migros.ch/apis/webhook-receiver-qual-1/versions/75e1bbe8-af91-435c-b484-6a2e746bfb27.md

# The endpoint receives internal webhooks for testing purposes.

`POST` `/migros/enterprise-support/content/v1/webhooks/receive`

Operation ID: `WebHookController_receive-internal`

## Header parameters

- `x-contentful-topic` (string, required) - This value originates from Contentful and contains the event type. Example: ContentManagement.Entry.auto_save

## Request body (required)

Content types: `application/json`

## Responses

- `204` - Webhook processed successfully
- `400` - Bad request - invalid event type or payload
- `403` - Forbidden - missing or invalid bearer token
- `404` - Not found - referenced entry or indices not found
- `500` - Internal server error

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Webhook Receiver QUAL
  version: "1.0"
servers:
  - url: https://api-qual.migros.ch
paths:
  /migros/enterprise-support/content/v1/webhooks/receive:
    post:
      operationId: WebHookController_receive-internal
      parameters:
        - description: "This value originates from Contentful and contains the event type.
            Example: ContentManagement.Entry.auto_save"
          in: header
          name: x-contentful-topic
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ContentfulPayloadDto"
        required: true
      responses:
        "204":
          description: Webhook processed successfully
        "400":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Bad request - invalid event type or payload
        "403":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Forbidden - missing or invalid bearer token
        "404":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Not found - referenced entry or indices not found
        "500":
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
          description: Internal server error
      summary: The endpoint receives internal webhooks for testing purposes.
security:
  - bearerAuth: []
components:
  schemas:
    ContentfulPayloadDto:
      properties:
        contentType:
          description: Contentful content type
          example: article
          type: string
        entryId:
          description: Contentful entry id
          example: 3aVP1JMlTfho9xXBcikB6o
          type: string
        environmentId:
          description: Contentful environment id
          example: staging
          type: string
        revision:
          description: Contentful entry revision
          example: 5
          type: number
        spaceId:
          description: Contentful space id
          example: 7b58bfib3n9x
          type: string
      required:
        - spaceId
        - environmentId
        - contentType
        - entryId
      type: object
    ErrorResponse:
      description: Standard error response returned by the API on failures.
      properties:
        exception:
          description: Detailed exception payload.
          type: object
        path:
          description: Request path that caused the error.
          type: string
        statusCode:
          description: HTTP status code of the error.
          format: int32
          type: integer
        timestamp:
          description: ISO8601 timestamp when the error occurred.
          format: date-time
          type: string
      required:
        - statusCode
        - timestamp
        - path
        - exception
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
```
