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
1
vote
1 answer

Need to access user token for Slack app

I am building a Slack App and planning to distribute it in the Slack App Directory so that other users can install it. I am using Slash commands for this app. Now when I get my API called after some user type my Slash command then I want to access…
user3336091
  • 17
  • 1
  • 6
1
vote
1 answer

Spring @RequestMapping method without @RequestBody

In a Spring Boot Controller method, how do I get the body of a POST? All of the examples I have seen use @RequestBody. How do I get the body without using @RequestBody? I am writing a method to handle Slack Events. When Slack POSTs an event, the…
Allen Cypher
  • 428
  • 5
  • 16
1
vote
1 answer

Twillio SMS forwarding Slack bot with webhook

I have enabled incoming web hooks on Slack API incoming web-hooks. Webhook URLs for Your Workspace: INSTRUCTIONS: To dispatch messages with your webhook URL, send your message in JSON as the body of an application/json POST request. Add this…
user8022517
1
vote
1 answer

Slack Bot: invite a non-bot user when @ mentioning them

I'm working on a Slack bot that @-mentions non-bot users into a particular channel. Is it possible to also invite these users to the channel when they are mentioned? (Like when a non-bot user mentions another non-bot user) I'm using the Python slack…
Tim
  • 11
  • 1
1
vote
1 answer

How do I post messages to arbitrary channels in Slack using the API?

I have a few systems where I would like to take some data and post it to arbitrary channels in our Slack instance. I would like to not have to create a separate webhook URL for every channel because I don't know beforehand where those messages might…
Tommy
  • 245
  • 4
  • 11
1
vote
1 answer

Syntax help - adding attachments to slack incoming webhooks

I'm writing up a slack integration and I'm trying to add a message attachment but I'm stuck on the syntax of putting it all together into a curl statement. This is the basic curl statement that I have right now that I want to add an attachment…
Scott Shorkey
  • 325
  • 4
  • 10
1
vote
1 answer

Processing Post Request from Slack

I've setup an asp.net MVC web application to capture post request. I've set breakpoints to see what info is coming through. When an interactive button is clicked, my breakpoint is hit but the object has no details. It simply says {Object} when i…
Master
  • 2,038
  • 2
  • 27
  • 77
1
vote
1 answer

array from recursive fetch request not returning properly

I've trying to learn cursor-based pagination with Slack's API. My goal is to return an array of all messages using the channel.history method. I have a javascript recursive fetch function, but I can't seem to get the local variable "final" to return…
DJBrandoK
  • 45
  • 1
  • 8
1
vote
1 answer

Testing Slack Interactive Messages Locally

I'm currently using SlackConnector Repo https://github.com/noobot/SlackConnector. I've created a bot and it sends interactive messages to my chat. I would like to add functionality to my interactive buttons but upon clicking them i get this…
Master
  • 2,038
  • 2
  • 27
  • 77
1
vote
1 answer

Why do I get the error "429_client_error" with my Slack bot?

I am working on a note taking Slack bot and I keep getting the 429_client_error. First of all, is it the same error as the 429 too many requests error describe in the Slack API documentation here ? If not, what is it ? If it is indeed due to the…
1
vote
1 answer

How to resolve an ok 200 error when integrating slack incoming webhook with angular 4.2.4?

As soon as I click the button to submit the message to slack, I receive the following error message. The message is however successfully sent to the slack channel. The error comes into play upon the subscribe method. I tried removing the subscribe…
zhu chen
  • 215
  • 2
  • 11
1
vote
1 answer

Can you send an image as part of the response to a slack slash command?

What I want to do is for a user to use a slash command with an argument, and for me to return an image based off of the information in the slash command argument. Looking at the slack API documentation, it appears that the only way to send an image…
user2535982
1
vote
1 answer

Post code snippet with slack slash command

I have a slash slack command which sends the request to AWS API gateway. The command works but now i have a requirement to post code snippet from slack to this API gateway using slack slash command. e.g.: /mycommand and then After clicking on '+'…
SCoder
  • 919
  • 2
  • 11
  • 26
1
vote
1 answer

Slack Send Direct Message to ALL on SLACK (Not group message I want to send individual message

my question is whether Slack can Send Direct Message to ALL persons on my group on SLACK (Not group message I want to send an individual message
1
vote
0 answers

Spring, Java : Sending slack message causing a 500 internal server error

I am working on integrating Slack into our application. As of now, for testing, I am trying to see how to simply send messages across Slack. I am getting a 500 internal server error whenever I try to send the message.. Also, Is there any way to know…
We are Borg
  • 5,117
  • 17
  • 102
  • 225
1 2 3
99
100