App Logo
slack.com

Pin Slack message

Pin a message to its Slack channel, given the channel (name or id) and the message ts. Safe to repeat: if the message is already pinned it reports success and tells you nothing changed. Confirms the pin afterwards and reports which workspace it acted on. Pinning is not possible in an archived channel, or in a channel the signed-in account has not joined — both are reported as such. Requires login.

Input

ts required

The message's ts.

channel required

Channel name/#name or id (C…).

workspaceDomain optional

Workspace host, e.g. acme.slack.com. Defaults to the active workspace.

Output

ok required
ts required
channel required

Resolved channel id.

account_used required

Workspace host the action ran against, read back from the session.

already_present required

True when the message was already pinned before this run, so nothing changed.

verified_on_page required

True when a re-read of the channel's pins confirms the message is pinned.

channel_name optional

Resolved channel name, when Slack reports one.

Start building not clicking