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
- User types
/share report.pdfin Slack - Bot uploads the file to EasySend via API
- 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
- No API key needed (zero setup)
- One POST request, one share link
- JSON response with all metadata
More examples: build upload in 10 min, CLI automation.
View API Docs