How do I send “@here” with the Slack API?
<!here> is the solution. There are other commands that work with the <!___> format. Check out this part of the official Slack documentation for an overview about all such variables.
<!here> is the solution. There are other commands that work with the <!___> format. Check out this part of the official Slack documentation for an overview about all such variables.
The correct format is <@userID> You will simply get the user ID from the event (in your screenshot, the channel_join event) { “type”: “message”, “subtype”: “channel_join”, “ts”: “1358877458.000011”, “user”: “U2147483828”, “text”: “<@U2147483828|cal> has joined the channel” } Update: (I have not checked the solution proposed in the edit) In the new Bolt SDK you can … Read more
Invite new users via API There is an undocumented method in the Slack API that allows you to programmatically invite new users to your Slack workspace: method name: users.admin.invite arguments: token, email, channels token: your slack API “test” token (required) email: email address, e.g. email=test@email.com (required) channels: comma separated list of channels the new user … Read more
As @timotree pointed out in a comment you should be able to initiate a call to a “channel” using: <team api url>/call/<channel id>. To automate this, have the call be initiated by a server you own. There you can simply set up a cron job something like 45 10 * * 1-5 <your script> >/dev/null … Read more
There are multiple “text”properties in the message structure. I believe the doc is referring to the top-level one outside all blocks definitions. Example: { “channel”: “C1H9RESGL”, “text”: “Text here for notifications”, “blocks”: [ { “type”: “section”, “text”: { “type”: “mrkdwn”, “text”: “Danny Torrence left the following review for your property:” } } ] }
I’m a bit late, but I hope this can help other people who stumble into this issue like me. I’ve just been in touch with Slack, and this is what they told me: The Slack Web API doesn’t accept JSON data at all — so along with changing the Content-Type those variables should be posted … Read more
No, its is not possible to upload files through an incoming Webhook. But you can attach image URLs to your attachments with the image_url tag. To upload files you need to use the Slack Web API and the files.upload method. Yes, it requires a different authentication, but its not that complicated if you just use … Read more
I have opened a ticket to Slack support asking if Slack’s Incoming Webhook message supports table of any form (HTML or Markdown). The official answer is that Slack messages do not support tables. They suggest to generate a table and post it as an image. They also said that they will add it to their … Read more
No, in fact, Slack doesn’t support Markdown in messages¹ at all. It uses its own similar-at-a-glance format called mrkdwn which has some notable differences with Markdown: In Markdown, both * and _ are used for emphasis In Markdown, both ** and __ are used for bold In mrkdwn * is used for bold and _ … Read more
You should be able to create a reminder sending a message to @slackbot The message should be like: /remind [@someone or #channel] [what] [when] Here’s some examples: /remind @username to do something in 24 hours or: /remind @username to do something at 16:00