All documentation
Channels

channel().create Function in Python

Create a realtime channel in Python.

Python

Overview

channel().create(...) creates a new PulseGrid channel from trusted backend Python code.

Setup

Provide: - name - optional channel_type - optional description - optional persist_events - optional retention_days

Code example

channel().create Function in Python
result = pulsegrid.channel("support-room").create(
    name="support-room",
    channel_type="public",
    description="Public support room",
    persist_events=True,
    retention_days=30,
)

print(result)

Notes

This is a trusted backend operation.