---
title: "Webhook"
method: POST
path: "/api/v1/webhooks/{event_source_id}"
tags: ["webhook"]
---

# Webhook

`POST /api/v1/webhooks/{event_source_id}`

Webhook to receive events from external event sources.

Args:
    event_source_id: The event_source_id
    request: The request object
    background_tasks: Background task handler
    raw_body: The raw request body

Returns:
    Static dict stating that event is received.

Raises:
    AuthorizationException: If the Event Source does not exist.
    KeyError: If no appropriate Plugin found in the plugin registry
    ValueError: If the id of the Event Source is not actually a webhook event source
    WebhookInactiveError: In case this webhook has been deactivated

## Path parameters

- `event_source_id` string, uuid, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/zenml-io/apis/zenml-2.md) · [All operations](https://skmtc.net/zenml-io/apis/zenml-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zenml-io/zenml-2/revisions/febb01b8bce3/schema)
