
Imgur) even your own webserver, as long as you get a public URL for your image file. In our example we will use Slack as image hoster, but you can use any image hoster (e.g. This only works with a public URL to your image file, so you first need to upload your image to an image hoster (which can be your Slack workspace) to get the public URL. Post message with image block / attachmentĪlternatively you can add an image to your normal message either as image block or secondary attachment. channels: ID of one or multiple channel for the image to appear inī.This is the easiest approach, however you comment is limited to one string.ĪPI method: files.upload with these arguments: Within that request you can also add a comment that will appear as message above the images. You can upload an image directly to Slack and share it in a channel. There are two different approaches on how to post a Slack message with an image.
