Connect Mastodon

Connecting Mastodon lets Envoycast post text, up to 4 photos, or a video to your account on any Mastodon server at the time you set. You make a small application on your own server, tick three permissions, and paste its access token into Envoycast.

Before you start

  • An account on a Mastodon server, and its address, for example mastodon.social. Envoycast works with any server.
  • An account that is ready to use. When an account is disabled, has no confirmed email address, or is still waiting for approval by the server’s moderators, Mastodon refuses the access token with messages such as “Your login is currently disabled”, “Your login is missing a confirmed e-mail address” and “Your login is currently pending approval”.

Connect Mastodon

Make the application and copy its token

  1. Sign in on your Mastodon server in a browser.
  2. Open Preferences, then Development, then New application. These are the steps Envoycast’s own sheet gives. Mastodon’s documentation doesn’t describe this page and servers can word it differently, so if you can’t find it, look for your server’s settings page that lists applications.
  3. Name the application Envoycast.
  4. For permissions (Mastodon calls them scopes), tick only read:accounts, write:statuses and write:media. Untick everything else. See Permissions for what each does.
  5. Press Submit.
  6. Open the application you just made and copy Your access token. Treat it like a password.

Paste it into Envoycast

  1. In Envoycast, open More, then Channels. On a computer, open Channels in the left menu.
  2. Pick the brand at the top. Channels belong to one brand.
  3. Scroll to Connect a channel, find the Mastodon card (“Any Mastodon server: photos, video or text”) and press Connect.
  4. Type your server in Server, for example mastodon.social. Type only the server name, with no path after it. Starting with https:// is fine.
  5. Paste the token in Access token.
  6. Press Check and connect. Envoycast asks your server who the token belongs to. A message at the bottom says “Mastodon connected” and the account appears under Connected, written as @you@yourserver.
On a computerThe Connect a channel cards, with the Mastodon card after Bluesky and its Connect button (on a computer)
On a phoneThe Connect a channel cards, with the Mastodon card after Bluesky and its Connect button (on a phone)
The Mastodon card on the Channels screen.
On a computerThe Connect Mastodon sheet with three steps, a Server field, an Access token field and the buttons Cancel and Check and connect (on a computer)
On a phoneThe Connect Mastodon sheet with three steps, a Server field, an Access token field and the buttons Cancel and Check and connect (on a phone)
The Mastodon sheet. Nothing is saved unless the server accepts the token.

Permissions

These are the three scopes Envoycast asks you to tick, and what each is for. Mastodon’s scopes are named by what they allow, and each one below is the scope Mastodon’s documentation lists for the call Envoycast makes.

  • read:accounts. Lets Envoycast ask the server which account the token belongs to. It uses this when you connect and every hour afterwards, to check the token still works. Mastodon lists read:accounts (or the narrower profile scope) as what this call needs. It must stay ticked. Without it the connection check fails and you see “That server didn’t accept the token”.
  • write:statuses. Lets Envoycast publish your posts. It must stay ticked. Without it every post fails.
  • write:media. Lets Envoycast upload your photos and video, and check that the server has finished processing them before the post goes out. It must stay ticked for posts with photos or a video. Text-only posts still work without it, but every post with media fails.

Envoycast doesn’t ask for permission to follow people, read your private messages or change your profile. Posts go out with the visibility public. Envoycast reads each post’s favourites, boosts and replies and the replies under it from the server; public posts can be read without a further permission.

If a scope was unticked, make a new application with all three ticked and connect again. You can see and remove applications you made on the same Development page of your server.

After you connect

  • The channel shows Connected. Envoycast checks every hour that the server still accepts the token. Press Check on the channel to test it at once.
  • A post can have up to 500 characters by default, and every link counts as 23. Each server can set its own limit. Envoycast’s counter assumes 500, so on a server with a lower limit a long post can be refused by the server.
  • A post can have up to 4 photos, or one video, or only text. Photo alt text from Envoycast is sent with each photo.
  • Large files take a while to process on the server. Envoycast looks again after a minute until they are ready. Each post is sent with a key, so Mastodon doesn’t create it twice if Envoycast has to retry.
  • Numbers: favourites, boosts and replies. Mastodon doesn’t share view counts, so the channel shows Numbers incomplete with the note “Mastodon doesn’t share view counts”. That is how Mastodon works; no setting changes it.

Fix a problem

“Give the server, for example mastodon.social” or “Envoycast can’t reach …”

The Server field doesn’t hold a server name. Type just the server’s name, such as mastodon.social, with no spaces and nothing after the name (no /@you, no path). Then press Check and connect. If the name is right but the server doesn’t answer, check its spelling in your browser’s address bar and try again later.

“Paste the access token”

The Access token field was empty. Open your Envoycast application on the server’s Development page, copy Your access token, paste it and press Check and connect.

“That server didn’t accept the token” or “Mastodon refused the token”

The server rejected the token. Causes: the token was copied incompletely, it belongs to a different server than the one you typed, the application was deleted, or (for the connect sheet) the read:accounts scope wasn’t ticked. A message with “The access token is invalid” in brackets means the token itself no longer works. On a connected channel this shows as Needs a reconnect and its posts wait.

  1. On your server, open Preferences, then Development. Check that the Envoycast application is still there and that read:accounts, write:statuses and write:media are ticked. If not, make a new application with the three scopes.
  2. Copy Your access token again.
  3. In Envoycast press … on the channel, then Connect again (or Connect on the Mastodon card). Check the Server, paste the token and press Check and connect.
  4. Posts that waited go out when the channel works again, unless they are more than 36 hours late.

“Mastodon refused the token (Your login is …)”

The token is fine, but the account on the server can’t be used yet: it is disabled, has no confirmed email address, or is waiting for approval by the server’s moderators. Fix it on the server (confirm your email, or wait for or ask the moderators), then press Check on the channel in Envoycast.

“Mastodon refused the token (This action is outside the authorized scopes)”

The application is missing a permission Envoycast needs for this step, most likely write:media or write:statuses. Make a new application with read:accounts, write:statuses and write:media ticked, and connect again as in the fix above.

“Mastodon asked us to slow down” or “Mastodon had a problem”

Servers limit how often an account may call them (by default 300 times in 5 minutes, and 30 media uploads in 30 minutes), or the server had a fault. Nothing is wrong with your setup. Envoycast waits (5 minutes when the server asks it to slow down) and tries again by itself, up to 5 tries. After that the post shows Needs you; press Try again later.

“Mastodon couldn’t process the media”, “couldn’t fetch the media”, “This post has no media for Mastodon”

  • Couldn’t process the media: the server rejected the file or couldn’t finish processing it. The file type may be unsupported or the file damaged (the server may say “File content type is invalid”). Replace the photo or video with another file, then press Try again.
  • Couldn’t fetch the media: Envoycast couldn’t load the file to send it. It tries again by itself when this is a short fault. If it keeps failing, upload the file again in the post.
  • This post has no media for Mastodon: the post’s Mastodon version is a photo or video post with nothing attached. Add the media or change the format, then press Try again.

“Mastodon: Validation failed” about the text being too long

The message names the text, for example that its character limit was exceeded. Your server’s limit is probably lower than 500. Shorten the caption for Mastodon in the post and press Try again. Ask your server’s administrators or read its About page for the limit.

Any other message that starts with “Mastodon:”

The words after the colon come from your server. Read them, fix what they name and press Try again on the post. If you can’t tell, press Check on the channel. If it shows Connected, the login is fine and the problem is in the post.

Checked against the app on . Something different on your screen? Tell us.