01
Connect Mastodon
- On your server, open Preferences → Development → New application with read and write scopes.
- Copy Your access token.
- Paste it in the dashboard with your server’s address.
Posting for clients? Send them a connect link so they connect their own Mastodon account without a Reelspan login.
02
Get an API key
In the dashboard, open Developers → API keys and create one. Keep it in an environment variable such as REELSPAN_KEY; never in code you share.
03
Post with one request
Send the video as a file, or as a public URL like below. Add more platform[] fields to post the same thing everywhere at once.
curl -X POST https://api.reelspan.com/v1/posts/video \
-H "Authorization: Bearer $REELSPAN_KEY" \
-F user=my-brand \
-F "platform[]=mastodon" \
-F "video=https://example.com/clip.mp4" \
-F "title=Your post" \
-F "mastodon_visibility=…"const form = new FormData();
form.append('user', 'my-brand');
form.append('platform[]', 'mastodon');
form.append('video', 'https://example.com/clip.mp4');
form.append('title', 'Your post');
const res = await fetch('https://api.reelspan.com/v1/posts/video', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.REELSPAN_KEY}` },
body: form,
});
console.log(await res.json());import os, requests
res = requests.post(
"https://api.reelspan.com/v1/posts/video",
headers={"Authorization": f"Bearer {os.environ['REELSPAN_KEY']}"},
files=[
("user", (None, "my-brand")),
("platform[]", (None, "mastodon")),
("video", (None, "https://example.com/clip.mp4")),
("title", (None, "Your post")),
],
)
print(res.json())mastodon_title sets the text for Mastodon only, when it should differ from the other networks’.
04
Mastodon options
- mastodon_visibility
- public, unlisted, private or direct.
- mastodon_spoiler_text
- A content warning shown before the post.
- mastodon_sensitive
- Mark the media as sensitive.
- Works with any Mastodon server.
- Up to 4 images per post; set visibility and a content warning.
Every field, with its limits: the docs.
05
Schedule it and check the result
- Add
scheduled_date(ISO 8601) andtimezoneto post later, oradd_to_queue=trueto take the next slot of your posting schedule. - The response has Mastodon’s status and the post’s link. For big files send
async_upload=trueand checkGET /v1/posts/status?request_id=…, or get a signed webhook when it’s live. - If Mastodon refuses a post, the error says why in plain words, and you can retry just that network.
06
Without code
07
Ideas
- Cross-post to Mastodon alongside X and Bluesky.
- Share every blog post on your server.
More on Mastodon: what you can post there. Other networks: all upload guides.