As of the time of this writing, IFTTT has no integration for Mastodon. Yet, it's possible to connect the two.
-
Login to your Mastodon account
-
Go to Preferences > Developer and register a new application with
write:statuses
permission. -
Copy your access token, we're going to need this later
You might want to test your new application using cURL or Postman
cURL
curl -X POST "https://mastodon.social/api/v1/statuses?access_token=YOUR_API_KEY&status=YOLO"
-
Login to your IFTTT account
-
You can now create new applets that post to Mastodon or edit existing ones to add an extra step (e.g. for posting to both, Twitter and Mastodon)
- select the Webhooks service as target
- select “Make a web request”
- set URL to the
statuses
endpoint, e.g.https://mastodon.social/api/v1/statuses?access_token=YOUR_API_KEY
- set Method to
POST
- set Content to
application/x-www-form-urlencoded
- set Body to your message, prefixed with supported form data parameters, e.g.
status=My first automated post