Documentation Index
Fetch the complete documentation index at: https://docs.postiz.com/llms.txt
Use this file to discover all available pages before exploring further.
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.Troubleshooting
”Failed to fetch” / “fetch failed” when connecting
The Postiz backend needs network access to reach your Mastodon instance. If the connect call fails at this stage, the backend container couldn’t resolve or reach theMASTODON_URL host.
Fix
- From inside the backend container, run
curl -I https://your-instance.example.com/. If that fails, fix DNS/egress before retrying. - If you’re behind a corporate proxy, set
HTTPS_PROXYon the backend. - Confirm
MASTODON_URLexactly matches your instance — protocol included, no trailing slash issues.

