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.
2,908
questions
-4
votes
0
answers
11
views
Live chat website connects to slack for communication's [closed]
I was given a task to complete regarding the live customer chat that connects to the Slack channel so that customer service can respond to customers. I have made the connection between the Clinets ...
0
votes
0
answers
6
views
Invalid scope requested: chat:write:bot
I am implementing slack bot where user will execute the slash command and bot will post the ephemeral message to the chhanel.
Bot should be able to respond even to the private channels if user sends ...
0
votes
0
answers
15
views
Slack API: post a message composed by several blocks with files attached
I can't find the way to post a message with files attached. I've verified that I'm able to upload files using files.upload, which gives me the id and permalink.
I've found examples in other posts on ...
0
votes
0
answers
11
views
I want to trigger a function when the app gets added to slack
I want to send an onboarding flow to the user when they add the app to their slack. And, I am using slack bolt.
I tried using callbackOptions, but I get this error:
res is not a function
Here is the ...
0
votes
1
answer
34
views
Jenkins pipeline upload file to Slack
I have a Jenkins pipeline that sends an alert to Slack. Now I want to add the ability to upload files to Slack. But the file is not sent.
This is sending messages to slack. And it works.
slackSend(
...
-2
votes
0
answers
16
views
Slack api conversations_history in DM
solved I have a slack bot set up that can send a private message(DM) to the user using the user ID but when using the conversations_history with the same user ID to collect the reply the Slack API ...
0
votes
0
answers
13
views
I have an slack bot, and somehow i need to authenticate the users of the bot(actuall individual users) to a backend service
in short i need it so that my bot can do authenticated requests
think of as slack trello app
that at first it tries to login with users trello account to get the requred permitions...
i'm listening ...
0
votes
0
answers
31
views
Slack OAuth - Duplicate Access / Refresh Token Pair Returned
I am creating a web app that integrates with Slack. I have successfully implemented the Slack OAuth v2 flow, with token rotation enabled. I have run into a problem though:
It appears that if a user ...
0
votes
0
answers
21
views
Slack Modal, Generic Connection Error Upon Submission
I have a Slack app that opens a modal when someone from my team "rejects" a colleagues access request. The modal prompts the person rejecting the request to give a reason, and then the ...
0
votes
0
answers
8
views
How do I mention groups in the body of an email sent to slack channel?
I'm trying to tag a group in the body of an email sent to a Slack channel email address (sent using an external API). I looked around and apparently, it cannot be done unless it's a Slack message (and ...
0
votes
1
answer
34
views
Slack Apps created using the CLI can only be managed through the CLI
I'm trying to setup an app which is a replica of this sample app. It works great when I do slack run using the the Slack Deno SDK (Slack CLI v2.9.0). However, when I do slack deploy, it doesn't work ...
1
vote
0
answers
30
views
Issue updating Slack modal view from Golang
I'm working on a Slack app in Go, using the slack-go library. I've found some references to what sound like similar issues, but none of the recommended solutions seem to work for me.
Here's the flow: ...
0
votes
1
answer
54
views
slack api for huddle
I did some research and I can see there is almost nothing for developers to use regarding Huddles in slack api.
But... I have found next two links so I see possibilities and questions are raising:
...
0
votes
0
answers
12
views
Slack SDK: How to add color to blocks similar to attachments
I'd like to know how to add color to slack blocks similar to attachments. In attachments I can add a color and the whole block will have a color line to the left which refine the way job output is ...
0
votes
0
answers
23
views
Custom functions and workflows with publicly distributed slack boltjs app
Background
I have a slack app that is publicly distributed and i've used boltJs with express to build this app. I have created a slash command that will let me input 3 paramters from 3 different ...
0
votes
1
answer
52
views
upload files from slack to s3 aws
I have a system that interfaces with Slack to back up each message in a channel.
I'm able to get the message object through a web hook, but there is a problem when files are included.
Inside event....
0
votes
1
answer
53
views
Post hyperlink to slack using slack sdk for python
I want to post to slack a string that includes a hyperlink, and I'm using slack SDK for python. The string is made up this way:
f":notepadicon: *{doc_to_report['desc']}*: {doc_to_report['...
0
votes
0
answers
27
views
How to get Slack User Token for Slack App to Post Message on User Behalf
I'm trying to make a Slack App that can send messages on user behalf (similar to Giphy, which apparently is different than regular Slack Apps).
In order to send messages as users (not just ...
0
votes
1
answer
41
views
pytest: assertion & test work, but do not output the correct failure reason
I have a test script I am using to validate whether or not my requests to the Slack API (using the Slack SDK for python) are valid or not. If the test fails, the output should be the specific reason ...
0
votes
1
answer
13
views
Slack bot - events api, I wanted to get trigger_id so I can create modal
My requirement is to "display modal in slack app" and I need trigger_id for the same.
Basically I wanted to display modal, when quote or Purchse order is approved.
To display modal, I need ...
0
votes
1
answer
28
views
slack is sending multiple request for same event. we have already put x-slack-retry-num check
we have 2 servers backend-api and slack-api. slack api is serving every requests from slack(ui) using backend-api for any read/write operation in db.
for some events we are receiving multiple ...
0
votes
0
answers
27
views
Slack MultiExternalSelectElement block suggestion handler taking 30 sec to respond (Slack SDK for Java)
I am using external multi select in a modal. Calling BlockSuggestionHandler when user enters some characters and calling external api in this handler with each user interaction. But the response from ...
0
votes
0
answers
26
views
Slack modal validation
I need to do custom validation in a slack modal window.
The logic is that I first open the modal window with one input field, then update the window with other fields depending on the selection in ...
0
votes
2
answers
33
views
Python Slack Bolt: Channel not found in DMs with scopes
I'm using a slash command in a DM and getting the following error message from Slack:
{'ok': False, 'error': 'channel_not_found'}
My bot currently has the following scopes and is using the say ...
0
votes
1
answer
38
views
Not able to generate Access token using Slack API
I am trying to get access token from Slack API,
With the below-given code, I get an authorisation URL which has a temporary code in the URL query.
After granting the permissions, it is redirected to /...
0
votes
1
answer
59
views
Upload files to slack with files.upload method
I have created a feedback textbox where people can send feedbacks to my personal slack channel, using slack Webhook URL, now I'm trying to add a file upload button so users can upload images/files, ...
2
votes
1
answer
137
views
Handle button click events in Interactive messages using Slack API with Python Flask
I am trying to build a Slack app where when a message is sent with a command, an ephemeral message with two buttons Confirm and Cancel is shown. If the user clicks on Confirm, the message should be ...
0
votes
1
answer
17
views
slack: how to launch outlook from slack app
how to launch outlook from slack app
I can launch outlook from web browser and below is react code
how to launch outlook from slack appconst Mailto = ({ email, subject, body, children }) => {
...
0
votes
0
answers
25
views
Slack API not sending message events for file_shared events
I am building an app which uses the Slack Bolt framework to interact with a Slack workspace. As part of this I need to be able to take action when a user uploads/shares a file in a channel. This can ...
0
votes
1
answer
26
views
Slack BoltJS on GCP Cloud Run doesn't trigger app.message
Summary
I have a very simple BoltJS app deployed to a very simple GCP Cloud Run service, but I can't Slack to trigger the BoltJS app via sending a message to a Slack channel.
Setup
Below is my setup.
...
0
votes
0
answers
15
views
Slack Apps Event Triggers not invoking the ThirdParty externalAuthProvider OAuth when invoking the Workflow
Hi I am currently working on creating a new Generation Slack App which uses a Third Party OAuth for the Workflow .
I created an Event Trigger and a Link Trigger . The link Trigger is invoking the ...
0
votes
0
answers
62
views
What is the Slack CLI and how is it used?
I'm going to develop a Slack app.
I've followed an official Slack.com tutorial on Bolt to make a simple app and I kinda get what's going on there.
I've followed another tutorial for the Slack CLI that ...
0
votes
0
answers
50
views
Slack API error when trying to update the existing message that was posted
we are running an airflow dag and triggering slack notification as soon as the dag started and updating the same notification if there's any failure/success. It is working fine for few tasks and then ...
0
votes
0
answers
20
views
How can I set the username in slackapifileoperator?
I'm trying to send a file to slack via airflow and using the Slackapifileoperator, however unlike the slackapipostoperator, there's no parameter to set the username. As a result, the file sent to ...
0
votes
0
answers
77
views
How to stop retry mechanism in slack bot chat_postmessage slackbolt
Developed a slack bot using Python to auto reply to the messages that are posted in slack channel. Bot is sometimes replying twice with same reply message.
app.client.chat_postMessage(channel=message....
0
votes
1
answer
53
views
Schema.slack.functions.SendMessage is wrapping text after certain amount of characters
I'm using the Slack SendMessage function in a Slack app I'm writing - https://api.slack.com/reference/functions/send_message
I followed the slack app hello world - https://github.com/slack-samples/...
0
votes
0
answers
13
views
Slack api - why does the App Manifest link not appear?
In my Slack API account, I am trying to locate the App Manifest in order to export my current apps manifest. The Slack API guide (https://api.slack.com/reference/manifests#exporting) states there ...
1
vote
0
answers
71
views
Slack socket mode reconnecting
I am running a JS application which uses bolt to connect to slack via socket mode.
I am running the application on a docker container and I noticed that the the socket mode connection disconnects ...
0
votes
0
answers
51
views
Request url on my Slack app that is invoked on clicking a button requires basic auth
I have defined a request URL which gets triggerred whenever I click a button in my Slack channel.(** From the docs - Any interactions with shortcuts, modals, or interactive components (such as buttons,...
0
votes
0
answers
20
views
Obtaining Token from Frontend for Slack App (Node.js)
I have developed a Next.js application that communicates with a Java Spring Boot backend using JWT tokens for authentication. Additionally, I have implemented a Slack Bolt (Node.js) application for ...
0
votes
0
answers
19
views
How to Listen for Channel Type Changes (Public to Private and Vice Versa) in Slack Events?
I need to listen for channel type changes in Slack, like when a public channel becomes private or vice versa, for channels where my app is a member.
I couldn't find relevant events in the Slack Events ...
1
vote
0
answers
53
views
Slack bot throws channel_not_found error when bot is added to a new workspace and DMd
I have prepared a simple bot that returns a message on every new messag in either DMs or public channel. When installed to the primary workspace (the one that app was originally created) everything ...
0
votes
0
answers
50
views
auth.test method doesn't work when creating Slack App
While creating an slack app using Bolt, having trouble with the following code defined in the slack api, which is not working properly.
await client.auth.test(token);
Specifically, the token is ...
0
votes
0
answers
10
views
Slack Oauth , multiple domains
I have multiple domains hosted for my web application for different clients , i want to add multiple redirect_url's in my slack app , but adding it manually by going in the slack app , so i wanted to ...
2
votes
0
answers
262
views
This workspace is not eligible for the next generation Slack platform
I am trying to create a slack app, and learn more about the slack api.
while following the quick start. I ran into this error after entering my authorization ticket into my slack workspace
This ...
0
votes
1
answer
49
views
Slack API: block content that shows a link to existing channel
I've been using Jira automation to trigger various activities in Slack.
For example.
Set up a new Slack channel, using conversations.create, to set up a new public channel with a name based on the ...
0
votes
0
answers
22
views
Slack APP users.lookup returning "missing_scope"
I am new to Slack.
I have:
created a Slack app.
clicked on "OAuth & Permission"
selected the scopes needed by my app.
On the User Token Scopes:
users:read
users:read.email
On the Bot ...
-2
votes
1
answer
61
views
Slack post as user instead as bot
I'm trying to post on behalf of a user to slack. Created a slack app and are redirecting to:
https://slack.com/oauth/v2/authorize?scope=chat:write,incoming-webhook,channels:read,groups:read,im:read,...
0
votes
0
answers
25
views
Should the slack api x-oauth-scopes response header match what my app manifest shows?
I recently reduced the scopes my app requests. My app manifest looks like:
oauth_config:
scopes:
bot:
- app_mentions:read
- chat:write
- commands
- users:read
- ...
0
votes
1
answer
33
views
What is slack websocket payload after you receive Hello message?
I'm doing everything in here:
https://api.slack.com/apis/connections/socket
I get my:
{"type":"hello","num_connections":1,"debug_info":{"host":"...