Watch the YouTube Tutorial: https://youtu.be/IAnfbE_htqg?si=z30m5qS8qLDN9R0X
curl to register a new client.
Optionally check that you have jq installed on your system. You can normally install this with brew, apt-get, yum or chocolatey. If you don’t have jq installed, you can remove it from the command below.
The examples on this page use
https://mastodon.social as the default Mastodon instance. If you are setting up Postiz to connect to a different self-hosted Mastodon instance (e.g., https://fosstodon.org), you must replace https://mastodon.social with your instance’s URL in the curl command below. You will also need to ensure the MASTODON_URL environment variable in your application’s .env file (or equivalent configuration for Docker, etc.) is set to your custom instance’s URL.Register your client
Your Mastodon OAuth2 Redirect URI:This will give you output that looks something like this;
- Production:
https://your-postiz-domain.com/integrations/social/mastodon - Local development:
http://localhost:4200/integrations/social/mastodon - Docker:
http://localhost:5000/integrations/social/mastodon
Add credentials to your environment
Make a note of your
client_id and client_secret and add them to your .env file.
