> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nottoad.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Создать вебхук

> POST /v1/pulso/webhooks/endpoints

Создайте HTTPS-получателя для непустого набора типов событий. Ответ содержит одноразовый секрет.

> [!NOTE]
>
> Scope: `pulso.webhooks.manage`. [Аутентификация](https://docs.nottoad.com/ru/api/authentication.md).

## Заголовки

**X-Api-Key** `string` *required*

Клиентский API-ключ. Храните его на сервере.

## Тело запроса

**url** `string` *required*

HTTPS-адрес получателя.

**eventTypes** `string[]` *required*

Непустой массив допустимых типов: `pulso.call.completed.v1`, `pulso.call.enriched.v1`, `pulso.call.failed.v1`, `pulso.ping.v1`, `pulso.webhook.endpoint.disabled.v1`. Неизвестный тип вызывает 422 WEBHOOK\_EVENT\_TYPES\_INVALID.

**scenarioFilter** `string[] | null`

Ограничить доставку slug сценариев; null выбирает все.

**maskPhone** `boolean`

Управление маскировкой номера.

**payloadSections** `string[] | null`

Выбрать escalation, transcript, tools; если опущено или null — все.

## Ответ · 201

**id** `string`

ID вебхука.

**url** `string`

HTTPS-адрес получателя.

**eventTypes** `string[]`

Типы событий подписки: `pulso.call.completed.v1`, `pulso.call.enriched.v1`, `pulso.call.failed.v1`, `pulso.ping.v1`, `pulso.webhook.endpoint.disabled.v1`.

**scenarioFilter** `string[] | null`

Slug сценариев для доставки либо null для всех.

**maskPhone** `boolean`

Маскируются ли номера телефонов.

**payloadSections** `string[]`

Необязательные секции события звонка, передаваемые получателю.

**payloadSectionsDefault** `boolean`

true означает все секции, включая будущие.

**health** `string`

active, failing или disabled.

**disabledReason** `string | null`

Причина отключения адреса при наличии.

**consecutiveFailures** `integer`

Число неудачных доставок подряд.

**lastSuccessAt** `string | null`

Время последней успешной доставки.

**createdAt** `string`

Время создания адреса.

**previousExpiresAt** `string`

Срок действия прежнего секрета при ротации; иначе отсутствует.

**secret** `string`

Одноразовый секрет только при создании или ротации.

> [!WARNING]
>
> Храните одноразовый секрет защищённо. До обработки проверяйте подпись вебхука по неизменённому телу запроса.

```bash cURL theme={null}
curl -X POST 'https://console.nurrel.io/v1/pulso/webhooks/endpoints' \
  -H 'X-Api-Key: YOUR_CUSTOMER_KEY' \
  -H 'Content-Type: application/json' \
  --data '{"url":"https://example.com/pulso-webhook","eventTypes":["pulso.call.completed.v1"],"maskPhone":true}'
```

```javascript JavaScript theme={null}
const response = await fetch('https://console.nurrel.io/v1/pulso/webhooks/endpoints', {
  method: 'POST',
  headers: { 'X-Api-Key': process.env.NURREL_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({"url": "https://example.com/pulso-webhook", "eventTypes": ["pulso.call.completed.v1"], "maskPhone": true}),
});
```

```python Python theme={null}
import os, requests
response = requests.request('POST', 'https://console.nurrel.io/v1/pulso/webhooks/endpoints',
    headers={ 'X-Api-Key': os.environ['NURREL_API_KEY'] },
    json={'url': 'https://example.com/pulso-webhook', 'eventTypes': ['pulso.call.completed.v1'], 'maskPhone': True})
```

```json Ответ theme={null}
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "url": "https://example.invalid/pulso-webhook",
  "eventTypes": [
    "pulso.call.completed.v1"
  ],
  "scenarioFilter": null,
  "maskPhone": true,
  "payloadSections": [
    "escalation",
    "transcript",
    "tools"
  ],
  "payloadSectionsDefault": true,
  "health": "active",
  "disabledReason": null,
  "consecutiveFailures": 0,
  "lastSuccessAt": null,
  "createdAt": "2026-10-01T08:00:00Z",
  "secret": "whsec_<one-time-secret>"
}
```

## Что дальше

[Откройте обзор API PULSO](https://docs.nottoad.com/ru/api/pulso-calls.md) или [события и вебхуки](https://docs.nottoad.com/ru/api/pulso-events.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.