Docs · Publish options
Mastodon publish options
Every option below is a parameter of Mastodon's official API. Set it on a post in the composer, through the API or MCP, or save it as the account's default.
Options
- Visibility
visibility - Value: public, unlisted or private. (public: Public; unlisted: Quiet public (not in trends or public timelines); private: Followers only) Network default: public. Can be saved as the account's default.
- Content warning
content_warning - Shown in place of the text until someone opens it. Value: text, 500 characters at most. Set per post only.
- Mark media as sensitive
sensitive - Value: true or false. Network default: false. Can be saved as the account's default.
- Language
language - Language of the post, as a code such as en, fr or pt-BR. Value: a language code such as en, fr or pt-BR. Can be saved as the account's default.
- Poll answers
poll_options - Between 2 and 4 answers, 50 characters each. A poll post carries no media. Value: a list of 2 to 4, 50 characters each. Set per post only.
- Poll length in minutes
poll_duration_minutes - From 5 minutes to 30 days. Value: a whole number from 5 to 43200. Set per post only.
- Alt text
alt_text - Describes each image for people using a screen reader. Value: a string for every image, or a list with one string per image, 1500 characters at most. Set per post only.
From the API
Send the options in per_platform.mastodon.fields when you create or update a post (POST /api/social, or the REST tools under /api/v1). MCP tools take the same keys in per_network.mastodon. A value the network does not take is refused before anything is scheduled, with the reason.
{
"per_platform": {
"mastodon": {
"fields": {
"visibility": "unlisted",
"content_warning": "text",
"sensitive": true,
"language": "en"
}
}
}
}Read and save the account's defaults with GET and POST /api/social/options, or the postcrow_network_options MCP tool. postcrow_platform_constraints lists the same options for an AI client.