Questions tagged [slack-api]

Slack is a real-time messaging, archiving and search tool for modern teams. Use this tag for programming questions related to the Slack API including the Web API, the RTM API and the Events API.

Slack is a real-time messaging, archiving and search tool for modern teams.

Use this tag for programming questions related to the Slack API including the Web API and the Events API.

Read more about the Slack API here.

2911 questions
236
votes
15 answers

Slack Markdown for Links Are Not Resolving

What am I doing wrong? None of the example Markdown links work so far in my Slack app. I pasted in the example below in a chat in my Slack app. I got this example from slack markdown syntax and it still treats it as literal text in the Slack…
PositiveGuy
  • 17,621
  • 26
  • 79
  • 138
196
votes
7 answers

Slack URL to open a channel from browser

This iTunes URL will open The Hitchhiker's Guide to the Galaxy in your iTunes: itmss://itunes.apple.com/us/audiobook/hitchhikers-guide-to-galaxy/id315596797 This Spotify URL will open ALL by the Descendents in…
MattDiamant
  • 8,561
  • 4
  • 37
  • 46
168
votes
11 answers

What is the simplest way to find a slack team ID and a channel ID?

We are trying to setup deep linking into slack, as described here: https://api.slack.com/docs/deep-linking The document states that to open a specific team, the following URL should be used: slack://open?team={TEAM_ID} Open Slack and switch teams…
lfboulanger
  • 2,140
  • 2
  • 17
  • 20
114
votes
5 answers

How do I jump to a specific date in history or the oldest message in a Slack channel in the desktop app?

My specific question is how to do this in the Slack desktop app, but I wouldn't mind settling for a way to do this via a web browser, and then worst case, a web api. I often want to jump to the beginning of a channel and just read, but it takes…
successhawk
  • 3,071
  • 3
  • 28
  • 44
108
votes
7 answers

Slack api conversations.history returns error: not_in_channel

I'm starting out with the Slack API and trying to just get a list of messages. Here are my steps: Created a Slack app and gave it channels:read and channels:history scope (also re-installed it) Queried the list of channels with…
Eric Jorgensen
  • 1,682
  • 2
  • 14
  • 23
99
votes
11 answers

Slack clean all messages (~8K) in a channel

We currently have a Slack channel with ~8K messages all comes from Jenkins integration. Is there any programmatic way to delete all messages from that channel? The web interface can only delete 100 messages at a time.
Hann
  • 1,783
  • 1
  • 10
  • 6
71
votes
2 answers

How to mention user in slack.client

This might be a simple question, but I can not get it work. I am using Slack Python Api to mention a user in a channel, and I am referring to the document here, https://api.slack.com/methods/chat.postMessage, and my code is simple as, from…
Haipeng Su
  • 2,341
  • 2
  • 15
  • 30
64
votes
4 answers

Does Slack support Markdown tables?

I want to send a Markdown table to Slack with its postMessage API, but I got raw content in Slack instead of a rendered table. Does Slack support Markdown tables? Ir is there any other way to present tabular data in Slack? I know Slack doesn't…
cece2048
  • 1,121
  • 2
  • 11
  • 17
62
votes
5 answers

Schedule a message in Slack

I need to send a message in slack at a time set in advance. Is there a way to do it through the Slack API or do I need to have a script running and checking if it's time to send the message and then send it?
LLL
  • 3,566
  • 2
  • 25
  • 44
57
votes
2 answers

Is it possible to post files to Slack using the incoming Webhook?

I am trying out the Slack's API using the incoming webhook feature, posting messages works flawlessly, but it doesn't seem to allow any file attachments. Looking through I understand I have to use a completely different OAuth based API, but creating…
Saifis
  • 2,197
  • 1
  • 22
  • 36
55
votes
10 answers

Slack webhook html table

I have a HTML table that I am trying to post to Slack via webhook. Is there a way to post the HTML table to Slack? Here is the HTML code: HTML Tables
Punter Vicky
  • 15,954
  • 56
  • 188
  • 315
46
votes
3 answers

Slack API team invitation

I am looking for a call which could send a Slack team invitation email to a new user from my application. I searched it in the SlackAPI but I didn't find anything. Is it possible to create an application which would sent invitations on my…
warownia1
  • 2,771
  • 1
  • 22
  • 30
45
votes
2 answers

How do you tag people with a slack bot?

I built a bot for slack. It reads the message when a new user joins and I intend for it to post a message welcoming them: "Welcome @user! What are you building!?" When it posts @user it doesn't seem as though the actual "tag" is working. Do I need…
Dave Fontenot
  • 621
  • 2
  • 7
  • 10
44
votes
3 answers

Message notifications produce "This content can't be displayed"

I'm sending messages into Slack via a web hook. Message notifications using a single "text" JSON element produce the correct notification text with the Slack app for OS X and iOS. The message text is also correct in the channel. However, when…
CSR
  • 455
  • 1
  • 4
  • 6
44
votes
1 answer

Schedule a repeating Slack phone call

I would like to schedule a call in Slack to automatically call a set group of people every day at a specified time. My use case is that I want all members of my team to automatically be called by Slack at 10:45am, for example, every week day for…
Devin
  • 1,011
  • 2
  • 14
  • 30
1
2 3
99 100