pushbag
Documentation

Channels

Choose who can read a channel and who can publish to it, then address it by ID.

On this page

Find a channel

Your account has a permanent Personal channel. Its read and publish policies both start as restricted. Omit the channel ID to publish there. To find another channel, list the ones your credential can read:

pushbag channels --json
pushbag notify "Review is ready" --channel CHANNEL_ID

A publish-only key can have an empty list and still send to its granted channel. Get the ID from the channel owner in that case.

Set access

Manage channels in the dashboard. Read and publish policies are independent. Public publishing lets anyone who knows the channel ID send messages. A restricted publisher needs a grant on its key. Mute and minimum priority preferences affect notifications on a device. They do not grant channel access.

Read history

Open the channel in the dashboard to see its message history. To receive notifications on your phone, register it with an account or pairing code that grants access to the channel. A message that links an artifact version keeps the artifact’s visibility rules.

Choose policies for a shared channel

Read Publish Example and effect
Public Restricted A release feed. Anyone can read updates, but only authorized senders can post.
Public Public An open feed. Anyone with the ID can submit and read messages.
Restricted Restricted A private build channel. CI needs a publish grant. Receivers need read access.
Restricted Public A submission inbox. Someone can send a report without being able to browse previous reports.

For example, create a restricted build channel in the dashboard. Give CI a Notifications key granting just that channel. Supply the key through the job’s environment and copy the channel ID into its configuration:

pushbag notify "Build 184 passed" --channel "$BUILD_CHANNEL_ID" --idempotency-key build-184

Leaving out --channel targets Personal even if the key has exactly one grant for another channel. The server rejects the publish if Personal is restricted and the key lacks that grant.

Read access and subscriptions

The owner’s dashboard session and Artifacts or Both keys can read the owner’s restricted history. A device receiver can read restricted history for channels in its grant. A subscription controls mute, minimum priority and read state. Changing those preferences cannot make a restricted channel readable.

Personal cannot be deleted. If a script using an explicit ID starts returning Channel not found., check the ID and confirm the channel still exists. See HTTP publishing for anonymous requests and limits.

Last updated