App Logo

Official scripts

Explore our curated collection of scripts

slack.com

Leave Slack channel

Leave a channel (by name or id). Returns the channel id. Requires login.

slack.com

Join Slack channel

Join a public channel (by name or id). Returns the channel id and name. Requires login.

slack.com

Get Slack workspace info

Get the current workspace's identity: id, name, url domain, email domain and icon URL. Requires login.

slack.com

Get Slack message permalink

Get the shareable permalink URL for a message by channel (name or id) and message ts. Requires login.

slack.com

Archive Slack channel

Archive a channel (by name or id). Archived channels are read-only and hidden from the active list (recoverable by an admin). Requires login. The workspace's #general cannot be archived.

slack.com

List Slack drafts

List your unsent message drafts. Returns each draft's id, destination channel(s) and text. Requires login.

slack.com

Mute Slack channel

Mute a channel (by name or id) so it stops notifying and greys out in the sidebar. Idempotent. Requires login.

slack.com

Invite to Slack channel

Add one or more members to a channel, identified by channel name/id and users given as @handles or user ids (U…). Returns which users were added and any that failed. Requires login.

slack.com

Get Slack channel info

Get one channel's details by name or id: name, privacy, member count, topic, purpose, creator, created date, and archived/general flags. Requires login.

slack.com

Delete Slack message

Delete one of your own messages by channel (name or id) and message ts. Returns the channel and ts deleted. Requires login.

slack.com

Get Slack user presence

Get a user's presence (active/away) by id (U…) or @handle, plus their display name. Requires login.

slack.com

Delete Slack file

Delete a file you own by its id (F…). Permanent. Returns the deleted file id. Requires login.

slack.com

Save (star) Slack message

Save a message for later (adds it to your Saved items) by channel (name or id) and message ts. Requires login.

slack.com

List Slack invoices

List Slack billing statements from the workspace's admin billing history. Returns workspace, total and invoices (date, statement, billId, amount, status, description, pdfUrl) — metadata only. Feed a row's pdfUrl (or billId) to slack.com/download_invoice to fetch that statement's PDF. Requires a workspace billing admin; defaults to the primary workspace, or pass workspaceDomain (e.g. acme.slack.com).

slack.com

Unmute Slack channel

Unmute a channel (by name or id), re-enabling its notifications. Idempotent. Requires login.

slack.com

Open Slack DM

Open (or fetch) a direct message with one user, or a group DM with several, given as @handles or user ids (U…). Returns the conversation id you can then post to. Requires login.

slack.com

List Slack pinned items

List a channel's pinned messages (by channel name or id). Returns each pin's ts, author (resolved to a name), text and type. Requires login.

slack.com

Set Slack channel purpose

Set a channel's purpose/description by name or id. Pass an empty string to clear it. Returns the applied purpose. Requires login.

slack.com

Unsave (unstar) Slack message

Remove a message from your Saved items by channel (name or id) and message ts. Requires login.

slack.com

Create Slack channel

Create a new channel. The name is normalized to Slack's rules (lowercased, spaces/invalid chars → hyphens, max 80 chars) so 'test 123' becomes 'test-123'. Pass isPrivate for a private channel. Returns the new channel's id and (normalized) name. Requires login (and permission to create channels).

slack.com

List Slack channel bookmarks

List a channel's bookmarks (the links pinned to its header) by channel name or id. Returns each bookmark's id, title, link and type. Requires login.

slack.com

List Slack channels

List the workspace's channels (public + private) with membership, member count, topic and purpose. One page per call; pass cursor to paginate and types/excludeArchived to filter. Requires login.

slack.com

List Slack members

List the workspace's members (users) with handle, real/display name, title, email (when visible), timezone, admin/owner/bot/guest flags and status. One page per call; pass cursor to paginate and includeDeleted to include deactivated accounts. Requires login.

slack.com

Get Slack file info

Get metadata for a file by its id (F…): name, title, type, size, uploader, timestamp, and permalink/download URLs. Requires login.

slack.com

Add Slack channel bookmark

Add a link bookmark to a channel's header by channel name or id. Returns the new bookmark's id. Requires login.