---
title: "Create Webhook"
method: POST
path: "/api/admin/webhooks"
tags: ["admin-webhooks"]
---

# Create Webhook

`POST /api/admin/webhooks`

## Request body

- CreateWebhookRequest
  - `workspace_id` string, required
  - `provider` string, required
  - `event_type` string, required
  - `payload` object, required
  - `headers` object, nullable
  - `integration_id` string, nullable
  - `status` string
  - `attempts` integer
  - `failure_reason` string, nullable
  - `last_attempt_at` string, nullable
  - `next_retry_at` string, nullable
  - `resolved_at` string, nullable

## Response `201`

Successful Response

- CreateWebhookResponse
  - `id` string, required
  - `workspace_id` string, required
  - `workspace_name` string, required
  - `provider` string, required
  - `event_type` string, required
  - `status` string, required
  - `attempts` integer, required
  - `integration_id` string, nullable, required
  - `failure_reason` string, nullable, required
  - `last_attempt_at` string, date-time, nullable, required
  - `next_retry_at` string, date-time, nullable, required
  - `resolved_at` string, date-time, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

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