Skip to main content

Build a Slack Bot for File Sharing with EasySend API

March 27, 2026 - EasySend Team

Build a Slack bot that lets your team upload and share files without leaving Slack. Uses the EasySend API (no authentication needed).

How It Works

  1. User types /share report.pdf in Slack
  2. Bot uploads the file to EasySend via API
  3. Bot posts the share link back to the channel

Implementation (Node.js)

const { App } = require('@slack/bolt');
const FormData = require('form-data');
const fetch = require('node-fetch');

app.command('/share', async ({ command, ack, say }) => {
  await ack();
  // Upload to EasySend
  const form = new FormData();
  form.append('files[]', fileBuffer, filename);
  const res = await fetch('https://easysend.co/api/v1/upload',
    { method: 'POST', body: form });
  const data = await res.json();
  await say('Shared: https://easysend.co' + data.share_url);
});

Why EasySend API for Slack Bots

More examples: build upload in 10 min, CLI automation.

View API Docs

Get notified about new features and tips

No spam. Unsubscribe anytime.

More from the blog

How to Share Large Files for Free in 2026
Feb 10, 2026
E2E Encrypted File Sharing: Why It Matters
Feb 10, 2026
The Developer's Guide to EasySend API
Feb 11, 2026