# How do I add reaction GIFs and memes to Slack messages with an API?

> To post a meme to Slack with the API, get the image file, upload it with files.getUploadURLExternal and files.completeUploadExternal, then share the returned file id to a channel with chat.postMessage or by passing channel_id during the upload. For a bot reply, attach the file to the thread by setting thread_ts. Pick the image first: memecub's REST API or MCP server can search reaction memes by keyword, and the keyless trial gives you a few searches a day to test.

- **Canonical URL**: https://memecub.com/guides/add-reaction-gifs-memes-slack-api
- **Category**: For developers and AI agents (https://memecub.com/guides/c/developer)
- **Language**: en
- **Updated**: 2026-12-06

## Recommended Memes (Copy-Ready Markdown)

### Reaction Guys

- **When to send**: Send when a message gets a flat, unimpressed reaction and you want to mirror it.
- **Page**: https://memecub.com/meme/2m5d8aalserk-reaction-guys
- **License**: Web-collected · Personal use

![Reaction Guys](https://gpic.code-nav.cn/memecub/public/2m5d8aalserk.jpg)

### reaction to that information v3

- **When to send**: The go-to reply when someone drops surprising news in a channel.
- **Page**: https://memecub.com/meme/c7wqp6dbydfq-reaction-to-that-information-v3
- **License**: Web-collected · Personal use

![reaction to that information v3](https://gpic.code-nav.cn/memecub/public/c7wqp6dbydfq.jpg)

### Thanks

- **When to send**: A quick thank-you sticker for a bot reply after someone helps you out.
- **Page**: https://memecub.com/meme/3i522f3wp1rf-thanks
- **License**: Web-collected · Personal use

![Thanks](https://gpic.code-nav.cn/memecub/public/3i522f3wp1rf.gif)

### OMG

- **When to send**: Use for genuine shock moments, like an unexpected deploy failure.
- **Page**: https://memecub.com/meme/e8jg90lbi3g0-omg
- **License**: Web-collected · Personal use

![OMG](https://gpic.code-nav.cn/memecub/public/e8jg90lbi3g0.jpg)

### lol

- **When to send**: Fits when two teammates are clearly whispering about the same thread.
- **Page**: https://memecub.com/meme/lla5dsxrdwcj-lol
- **License**: Web-collected · Personal use

![lol](https://gpic.code-nav.cn/memecub/public/lla5dsxrdwcj.jpg)

### nice

- **When to send**: A soft, friendly nice for small wins and polite agreement.
- **Page**: https://memecub.com/meme/hs1cujt6oiev-nice
- **License**: Web-collected · Personal use

![nice](https://gpic.code-nav.cn/memecub/public/hs1cujt6oiev.gif)

### Reaction Guys (reversed)

- **When to send**: Send when the channel is celebrating a fix or a launch.
- **Page**: https://memecub.com/meme/awnn6ovsx9et-reaction-guys-reversed
- **License**: Web-collected · Personal use

![Reaction Guys (reversed)](https://gpic.code-nav.cn/memecub/public/awnn6ovsx9et.jpg)

### Average Reaction To Copilot

- **When to send**: A developer in-joke for replies about AI coding assistants.
- **Page**: https://memecub.com/meme/3o9bk9yqbdwn-average-reaction-to-copilot
- **License**: Web-collected · Personal use

![Average Reaction To Copilot](https://gpic.code-nav.cn/memecub/public/3o9bk9yqbdwn.jpg)

## How the Slack upload flow works

Slack no longer accepts raw image bytes in chat.postMessage. The current path is a three-step external upload: call files.getUploadURLExternal with the filename and length, PUT the bytes to the returned URL, then call files.completeUploadExternal with the file id.

To make the image appear in a channel, pass channel_id in files.completeUploadExternal, or call chat.postMessage with the file id in the files array. For a threaded bot reply, include thread_ts so the meme lands under the message it answers.

Keep the image small and in a common format such as PNG or GIF. Reaction GIFs work the same way as static memes; Slack animates them in the channel.

## Minimal example

Step 1: get an upload URL.

POST https://slack.com/api/files.getUploadURLExternal with token, filename=meme.gif and length=<bytes>.

Step 2: PUT the file bytes to the upload_url from the response.

Step 3: finish and share.

POST https://slack.com/api/files.completeUploadExternal with files=[{id: <file_id>, title: "reaction"}] and channel_id=<channel>.

For a threaded reply instead, call chat.postMessage with channel, text, thread_ts and files=[<file_id>].

If you only need an emoji-style reaction rather than an image, reactions.add with a name is lighter, but it cannot carry a custom meme.

## Where to get the meme image

Search first, generate second. memecub's REST API returns matching memes by keyword (one credit per search), and the remote MCP server at https://memecub.com/mcp lets an AI agent do the same lookup. The CLI is `npx memecub`, and `npx skills add https://memecub.com` installs a skill into Claude Code, Codex, Cursor and similar tools.

Most memes in the library are collected from the web: fine for personal chats, with copyright staying with the original creators, so do not ship them in commercial products. Use the openly licensed filter when the bot is for a commercial workspace.

If nothing fits, the AI meme maker at /generate takes a character, action and caption and returns an image in about ten seconds; it refuses real people.

## Tone and etiquette for bot memes

Post memes as replies, not as top-level noise. A thread keeps the channel readable and makes the joke land next to its context.

Rate-limit yourself. A bot that fires a meme on every message gets muted fast; trigger on explicit commands or mentions instead.

Match the room. Keep work channels to mild reaction memes and save the louder ones for social channels.

## FAQ

### How do I send a GIF or meme as a Slack message attachment?

Upload the file with files.getUploadURLExternal and files.completeUploadExternal, then share the file id to the channel. Slack renders GIFs inline, so no special attachment type is needed.

### How do I post an image meme to Slack using the API?

Get the image bytes, run the external upload flow, and pass channel_id when completing the upload or include the file id in chat.postMessage. The image then appears as a normal file message.

### How do I attach a meme image to a Slack bot reply?

Call chat.postMessage with thread_ts set to the parent message and the uploaded file id in the files array. The meme appears inside the thread as part of the bot's reply.

### Can I search for a meme from code instead of storing images?

Yes. memecub's REST API and MCP server return memes by keyword, and the keyless trial allows a limited number of searches per day for testing.

### Are memecub memes safe for a commercial Slack workspace?

Only the openly licensed filter is cleared for commercial use. Most other memes are collected from the web and are meant for personal chats, with rights staying with the original creators.

## Related Guides

- [How can I use the stonks meme in a conversation?](https://memecub.com/guides/how-to-use-stonks-meme.md) ([HTML](https://memecub.com/guides/how-to-use-stonks-meme))
- [What are the best funny memes to post on Instagram stories?](https://memecub.com/guides/best-funny-memes-for-instagram-stories.md) ([HTML](https://memecub.com/guides/best-funny-memes-for-instagram-stories))
- [How do I configure the memecub MCP server inside DeepSeek Harness?](https://memecub.com/guides/configure-memecub-mcp-server-deepseek-harness.md) ([HTML](https://memecub.com/guides/configure-memecub-mcp-server-deepseek-harness))
- [How do I add reaction GIFs to a Discord bot?](https://memecub.com/guides/add-reaction-gifs-discord-bot.md) ([HTML](https://memecub.com/guides/add-reaction-gifs-discord-bot))
- [How do I let a DeepSeek Harness agent find and send memes automatically?](https://memecub.com/guides/deepseek-harness-agent-find-send-memes.md) ([HTML](https://memecub.com/guides/deepseek-harness-agent-find-send-memes))
- [Where can I download a free Claude Code meme skill?](https://memecub.com/guides/where-to-download-free-claude-code-meme-skill.md) ([HTML](https://memecub.com/guides/where-to-download-free-claude-code-meme-skill))

---
Provided by [memecub](https://memecub.com) · Full index: [https://memecub.com/llms.txt](https://memecub.com/llms.txt) · Remote MCP: `https://memecub.com/mcp`