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YP9AcX+gs25K/ZA63Z80rRqswNVVB792xUBcfRmln8SH86skfB/R/97o2+i5L67e+bi6ym+/fhKD+eVJf9577s+7z/153/R831/2z5cikh/T3lyd9i/O3rXOnt63Lp7OTz8kuYn7Xy5/nyd/Pt6c5Z/YZlOm9+3JyX5GRzLXimaE49WltMKufLhVBWR8VVLkhfogZEmhnGueYUWOn1UPd/q6HKQBKj58kBHs2eEzbq0WYWEPnxY6PVT5sm1YwAot2B5ryXiLZvfs0te40SJbty5XLhcT1Frp6uaASWUnfOLOJy5NtVhYbZsp15dG57JGaKw24LZQApZYm5ug3Y5xgSll2DdiJnm6FBr9SGVtjca21YKIicu2w9YiZKZ9tIesIk+GNlG04+XKuNpxm7CAtW25J3nMoF6gNm7BaeJYm5xH6ARj8xoKz0U7L0JThMxjC64F0dDRYXdTSVo3kVjAbgejz5Phdff8cq9Vb1WhYege8EVohCG5+MWAKcJY0aT0KZwxYY0KLezKgQ25EdGEOpkFd+P68ZCYW6KpG70UmAKkyJ0Z7QVk5HhDqfu82xsva9yg7e74tLlJ/edp2BiGu5lTGzn/RrY9RpOE7qbKljk+9jt+h/ZkYZ2SbVWue907NMfKRZzkspLD2gIDK6qXWsr68CJBsagzM5hulbPGpFfkSXHG09rFVpSqIm7xmUbMSJE2nqNrxp0QbUOvvYdIXDbU/XUI6522/V9eX0pmWny27TzlQtbUrmzZO2ZfXm0S6uXgjq3XITc40ulmQ5efCtTEifGuJV1reCxBHqN2bfOIKxaw8zI/rZtSHN3GyoL9ObDxqju6UYS5/a7tuCY314PhDTFy+/aVlQKq+ZJ57jNgzGPK1atc6unamqVczopST3cy9hcDrxkw sidebar_class_name: post api-method info_path: rest/signalwire-rest/endpoints/pubsub/pubsub-api custom_edit_url: null import ApiTabs from @theme/ApiTabs; import DiscriminatorTabs from @theme/DiscriminatorTabs; import SecuritySchemes from @theme/ApiExplorer/SecuritySchemes; import MimeTabs from @theme/MimeTabs; import ParamsItem from @theme/ParamsItem; import ResponseSamples from @theme/ResponseSamples; import SchemaItem from @theme/SchemaItem; import SchemaTabs from @theme/SchemaTabs; import Heading from @theme/Heading; import OperationTabs from @theme/OperationTabs; import TabItem from @theme/TabItem;
Body
required
channels object required
property name* object
Schema
Schema
Generate a new PubSub Token
Each channel with write and read objects with boolean as values. Max of 500 channels inside main channels. Either read, write, or both are required inside each channel and default to false. Each channel name can be up to 250 characters. Must be valid JSON.
The key for this object represents the name of the channel. The inner properties specify its permissions.
OK
Unprocessable Entity. You may have specified invalid parameters.