---
title: "Create a webhook"
method: POST
path: "/webhooks"
---

# Create a webhook

`POST /webhooks`

## Query parameters

- `pipelineKey` string
- `teamKey` string

## Request body

- object
  - `event` string, required — For a complete list of events, please check [the list above](ref:webhooks).
  - `targetUrl` string, required — The url to which the event will be sent.

## Response `200`

200

- object
  - `event` string
  - `targetUrl` string
  - `pipelineKey` string
  - `userKey` string
  - `key` string
  - `creationDate` integer
  - `lastSavedTimestamp` integer

## Other responses

- `400` — 400

---

[API](https://skmtc.net/streakyc/apis/directory-fields.md) · [All operations](https://skmtc.net/streakyc/apis/directory-fields/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/streakyc/directory-fields/versions/f9ece0b33f19/schema)
