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

How to insert an iframe in a slack integration?

The youtube slack integration inserts an image and when that image is clicked a youtube.com iframe gets inserted. How can my custom slack integration also insert an iframe? For example say I'd like to insert a codepen iframe?
gman
  • 100,619
  • 31
  • 269
  • 393
7
votes
1 answer

Slack Botkit - How to get a message's content from a 'reaction_added' event

I'm using the botkit framework to respond when a reaction is added to a message but I'm not sure how to extract the message's content when the event is triggered. Below is what I currently have: controller.on('reaction_added',function(bot, event)…
Brandon Fujii
  • 179
  • 1
  • 11
7
votes
1 answer

Use a slack command as a shortcut for multiple commands

My company has recently switched to Slack, and I'm really enjoying it so far. I'm learning about Slack Custom commands, and I would like to try writing a few. One of the first ideas I had was to create a shortcut for going away -- either for lunch,…
Russell Stewart
  • 1,960
  • 4
  • 24
  • 31
7
votes
3 answers

Slack provided cURL command not working to post inline json

I'm trying to post a message to a Slack channel. Slack provides an example of a cURL command, but running this verbatim doesn't work. The command provided is: curl -X POST --data-urlencode 'payload={"channel": "#deployment", "username":…
chrismay
  • 1,384
  • 2
  • 15
  • 25
7
votes
2 answers

Is there any slack API to update profile information?

Hi I would like to update profile information of my slack account using API. I don't find any API on their documentation. Do they have any API to update profile information? See the screenshot http://screencast.com/t/f7eoAKT0Yy
rajuniit
  • 184
  • 2
  • 6
7
votes
1 answer

Slackbox - the requested URL could not be retrieved - access denied

I have slackbox running locally, have created a Spotify dev application and have successfully authenticated slackbox. It says I am logged in at http://localhost:5000/. All of my variables have been set, including the slack token, in an .env file…
tomster2300
  • 107
  • 2
  • 8
7
votes
3 answers

Send production errors to slack instead of email

I wanted to make my Django app send debugging information to slack instead of by email, which is the default. Disabling email is simple. Just don't put any emails in ADMINS setting Sending information to slack is easy. Just add an incoming…
Eldamir
  • 9,888
  • 6
  • 52
  • 73
6
votes
2 answers

I want to show "show more" in slack messages

I want to show "show more" in slack messages. I use the slack web api to send messages. If the number of characters is long, I want to use the "show more" button. What I've found so far is using the text field of secondary message attachments. But…
Ga.R
  • 65
  • 1
  • 5
6
votes
1 answer

How is a slack webhook safe?

I'm setting up slack alerts on a project I'm working on. To use slack's Incoming web hook, all you have to do is do a POST request to a slack url. I don't see any security on it. How is this secure? Wouldn't someone be able to post messages if he…
Neeraj
  • 2,376
  • 2
  • 24
  • 41
6
votes
1 answer

Why slack slash command returns "http_client_error"

I'm trying to build a very simple Slackbot using the Bolt Framework. I'm using ngrok to run this locally and when I invoke a slash command, ngrok just shows: According to the Bot documentation, the app uses app.command() to handle slash commands.…
pcdr
  • 183
  • 2
  • 12
6
votes
2 answers

Add to Slack in dotnetcore without having Identity Framework error: The oauth state was missing or invalid

I'm trying to create a very simple page for my slackbot so that users can login and register. However, even when using their generated "Login with Slack" button I receive an error "The oauth state was missing or invalid.". The same error happens…
AJ Tatum
  • 653
  • 2
  • 15
  • 35
6
votes
2 answers

Slack OAuth : Invalid permissions requested for local testing

For my local testing I am trying to get and save the user's access token from slack. The first step is to get user's permission, I am trying to redirect the user to the following URL - …
whatf
  • 6,378
  • 14
  • 49
  • 78
6
votes
2 answers

slack error "invalid_code" after sending request to oauth.access url

I am trying to authenticate my app with Slack. It was working perfectly fine for a few days, but now it's throwing me an error invalid_code const requestBody = qs.stringify({ code: code, redirect_uri: redirect_uri, client_id:…
Sumair Baloch
  • 445
  • 3
  • 15
6
votes
1 answer

How to get a thread reply's content from reaction_added event?

I'm building a slack FAQ app that uses message reactions to gather the best answers to questions. My plan is to save any Slack messages with positive reactions by using the reaction_added event to get the TS attribute and then the…
6
votes
1 answer

Bitbucket pipelines: echo environment variable

I have a very simple pipeline for the tags. When I do the tag, I want to send simple slack webhook. My issue is that environment variable $BITBUCKET_TAG is not rendered neither in echo nor in slack message. pipelines: tags: '*': - step: …
walv
  • 2,680
  • 3
  • 31
  • 36