Mastodon

Social networking that's not for sale. Your home feed should be filled with what matters to you most, not what a corporation thinks you should see. Radically different social media, back in the hands of the people.

Go to site
Explore
/
Apps
/
Mastodon

Mastodon API Integrations

Build and run workflows using the Mastodon API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    mastodon: {
      type: "app",
      app: "mastodon",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.mastodon.$auth.site_domain}/api/v1/apps/verify_credentials`,
      headers: {
        Authorization: `Bearer ${this.mastodon.$auth.access_token}`,
      },
    })
  },
})
Bookmark Status with Mastodon API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Mastodon
 
Try it
Send Message (Advanced) with Discord Webhook API on New Status Boosted from Mastodon API
Mastodon + Discord Webhook
 
Try it
Bookmark Status with Mastodon API on New Submission from Typeform API
Typeform + Mastodon
 
Try it
Bookmark Status with Mastodon API on Custom Events from Zoom API
Zoom + Mastodon
 
Try it
Get Film with SWAPI - Star Wars API on New Status Boosted from Mastodon API
Mastodon + SWAPI - Star Wars
 
Try it
New Status from the Mastodon API

Emit new event when a new status is posted to your Profile. See the docs here

 
Try it
New Status Bookmarked from the Mastodon API

Emit new event when the specified status is bookmarked. See the docs here

 
Try it
New Status Boosted from the Mastodon API

Emit new event when the specified status is boosted. See the docs here

 
Try it
New Status Favorited from the Mastodon API

Emit new event when the specified status is favorited. See the docs here

 
Try it
Bookmark Status with the Mastodon API

Privately bookmark a status. See the docs here

 
Try it
Boost Status with the Mastodon API

Reshare a status on your own profile. See the docs here

 
Try it
Delete Status with the Mastodon API

Delete one of your own statuses. See the docs here

 
Try it
Edit Status with the Mastodon API

Edit a given status to change its text or sensitivity. See the docs here

 
Try it
Favorite Status with the Mastodon API

Add a status to your favourites list. See the docs here

 
Try it

Authentication

Mastodon uses API keys for authentication. When you connect your Mastodon account, Pipedream securely stores the keys so you can easily authenticate to Mastodon APIs in both code and no-code steps.

To connect your Mastodon account with Pipedream, you'll need to enter the below info:

Mastodon Site Domain

  • If the home timeline is https://techhub.social/home for instance, then the site_domain is techhub.social (we'll prepend the https:// protocol for you)
  • Paste the site_domain for your Mastodon instance below

Access Token

  • Create a new application in Mastodon at https://[your_site_domain]/settings/applications
  • Give your app a name and select the scopes you'd like to grant to the application
  • After creating the application, click on it then copy the access_token and paste that value below