platform mastodon. It posts single posts and threads on the account’s own server, each with text, photos or a video.
Connect an account
A Mastodon account signs in on its own server. A connect link withprovider mastodon also needs mastodon_instance, the server’s address, such as mastodon.social.
What you can post
- A post with text, up to 4 photos, or one video.
- A thread: each item of
contentis one post, sent as a reply to the one before. - A reply to any post, with
in_reply_to_id, or a quote, withquoted_status_id. - A poll on the first post, with
poll.
Settings
Every key is optional. Create a post has the full list.visibility, spoiler_text, sensitive, language and quoted_status_id go on every post of a thread, not only the first.
Polls
- A poll has 2 to 4 choices, each up to 50 characters, and no two exactly the same. Mastodon counts an emoji, a flag too, as one character, and takes
Yesandyesas two choices. A poll that breaks these rules is refused with a422that says what to fix. duration_minutesis how long votes are taken: a whole number of minutes, from 5 to a month (43829 minutes). A day when you leave it out. Any other length is refused with a422.multiple: truelets voters pick more than one choice.hide_totals: truehides the counts until the poll ends.- The poll goes on the first post only. Mastodon 4.6 and later take a poll on a post with media. An older server refuses it, and the post fails with words that say so: remove the media from the first post, or turn the poll off.
Text
Each post takes 500 characters, even on a server that allows more. PostSyncer cuts a longer post to 500 when it’s sent. To keep every word, split the text into more items.Media
- A post carries photos or a video, not both. In a thread, each post has its own media under these rules.
- Videos aren’t converted for Mastodon.
- A file’s alt text, set in the app’s media library, goes with it, up to 420 characters.
- PostSyncer doesn’t check a video’s length for Mastodon. The server’s own limits apply.
Threads and first comments
- Each item after the first is posted as a reply to the one before. Each item has its own text and media.
- A first comment (
is_first_comment: true) is a reply at the end of the thread. Withfirst_comment_delay0it goes out with the thread. With a delay (1 minute when you leave it out), it’s posted that many minutes later, under the thread’s last post.
Delete a post
Deleting the post in PostSyncer asks Mastodon to delete the first post. The rest of the thread and the first comment stay up. If the server refuses, the refusal is only logged: PostSyncer’s copy is deleted and the post stays live. See Test safely.Comments
- PostSyncer reads replies an hour after the post goes out, every 6 hours for its first day, then once a day until it’s 7 days old, and whenever you ask with Sync comments.
- Replies go out from the account, with photos or a video.
- Mastodon can’t hide replies: hide answers
422withMastodon can't hide comments. Delete the comment instead. - Delete removes a reply the account wrote, one sent from PostSyncer included. The server refuses to delete anyone else’s: the answer is still
200Comment deleted successfully, and nothing changes.
Analytics
Mastodon giveslikes (favourites), comments, shares (boosts) and quotes. It gives no impressions, so engagement_rate is null. See Read analytics.
Example
A draft post for followers only, with a content warning:Related
Connect social accounts
Connect links, with the Mastodon server.
Compare the 12 networks
How Mastodon differs from the other networks.