> ## 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.

# Получить OpenAPI-фрагмент сценария

> GET /v1/pulso/scenarios/\{slug}/openapi

Скачайте доступный по ключу фрагмент OpenAPI одного опубликованного сценария. Он не описывает внутренние маршруты сервиса.

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

## Заголовки

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

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

## Параметры пути

**slug** `string` *required*

Стабильный slug опубликованного сценария.

## Параметры запроса

**version** `integer`

Необязательная опубликованная версия, от 1.

## Ответ · 200

Ответ содержит JSON Schema или OpenAPI-документ; поля зависят от опубликованного сценария или поддерживаемого типа события.

```bash cURL theme={null}
curl -X GET 'https://console.nurrel.io/v1/pulso/scenarios/appointment-demo/openapi' \
  -H 'X-Api-Key: YOUR_CUSTOMER_KEY'
```

```javascript JavaScript theme={null}
const response = await fetch('https://console.nurrel.io/v1/pulso/scenarios/appointment-demo/openapi', {
  method: 'GET',
  headers: { 'X-Api-Key': process.env.NURREL_API_KEY },
});
```

```python Python theme={null}
import os, requests
response = requests.request('GET', 'https://console.nurrel.io/v1/pulso/scenarios/appointment-demo/openapi',
    headers={ 'X-Api-Key': os.environ['NURREL_API_KEY'] })
```

## Что дальше

[Откройте обзор 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.