---
title: "Create new Webhook"
method: POST
path: "/v1/workspaces/{workspaceId}/webhooks"
tags: ["Webhook"]
---

# Create new Webhook

`POST /v1/workspaces/{workspaceId}/webhooks`

## Request

- Base URL: `https://api-gw.sendspark.com`
- URL: `https://api-gw.sendspark.com/v1/workspaces/{workspaceId}/webhooks`
- Auth: API key in header `x-api-key` and API key in header `x-api-secret`

Create new Webhook

## Path parameters

- `workspaceId` string, required

## Request body

- CreateWebhookRequestPayloadSchema
  - `name` string, required
  - `description` string
  - `extraHeaders` string[]
  - `url` string, required
  - `module` 'global' | 'dynamics', required
  - `identifiers` string[]
  - `events` Model143[]
  - `metadata` WebhookMetadataSchema
    - `automation` Automation, required
      - `workflowId` number
      - `provider` string, required

## Response `200`

Successful

- CreateWebhookResponseSchema

## Other responses

- `400`: Bad Request
- `404`: Not Found

## Changes

- **2026-07-15** `781b5762fe77`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sendspark/apis/sendspark-api/changes/v1/workspaces/:workspaceId/webhooks/post.md)

---

[API](https://skmtc.dev/sendspark/apis/sendspark-api.md) - [All operations](https://skmtc.dev/sendspark/apis/sendspark-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sendspark/apis/sendspark-api/revisions/d8d365944ae5?raw)
