---
title: "POST /v2/webhooks"
method: POST
path: "/v2/webhooks"
---

# POST /v2/webhooks

`POST /v2/webhooks`

Creates a new webhook to receive call event notifications.

The webhook secret is returned only once during creation and should be saved securely.

## Request body

- CreateWebhookRequest
  - `agent_id` string, uuid, required — The UUID of the agent this webhook is associated with.
  - `name` string, required — A friendly name for this webhook.
  - `url` string, uri, required — The HTTPS URL where webhook payloads will be sent.
  - `events` string[], required — List of event types to subscribe to.
  - `data_options` DataOptions
    - `include_transcript` boolean — Include the full call transcript in webhook payload.
    - `include_recording_url` boolean — Include the call recording URL in webhook payload.
  - `custom_headers` CustomHeaders — Custom HTTP headers to send with webhook requests.

## Response `201`

Webhook created successfully

- object
  - `message` string, required
  - `data` WebhookResponse, required
    - `id` string, uuid — Unique identifier for the webhook.
    - `agent_id` string, uuid — The agent this webhook is associated with.
    - `name` string — The webhook name.
    - `url` string, uri — The webhook URL.
    - `secret` string — The webhook signing secret. Returned only on creation.
    - `events` string[] — Subscribed event types.
    - `data_options` DataOptions
      - `include_transcript` boolean — Include the full call transcript in webhook payload.
      - `include_recording_url` boolean — Include the call recording URL in webhook payload.
    - `custom_headers` CustomHeaders — Custom HTTP headers to send with webhook requests.
    - `is_active` boolean — Whether the webhook is active.
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400` — Invalid request body
- `403` — Agent does not belong to your company

---

[API](https://skmtc.net/i-stem/apis/samora-ai-api.md) · [All operations](https://skmtc.net/i-stem/apis/samora-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/i-stem/samora-ai-api/revisions/cb390cb388d1/schema)
