OC.Automate.Mastodon 1.0.5

dotnet add package OC.Automate.Mastodon --version 1.0.5
                    
NuGet\Install-Package OC.Automate.Mastodon -Version 1.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OC.Automate.Mastodon" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OC.Automate.Mastodon" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="OC.Automate.Mastodon" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OC.Automate.Mastodon --version 1.0.5
                    
#r "nuget: OC.Automate.Mastodon, 1.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OC.Automate.Mastodon@1.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OC.Automate.Mastodon&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=OC.Automate.Mastodon&version=1.0.5
                    
Install as a Cake Tool

OC.Automate.Mastodon

Downloads NuGet GitHub license

A Mastodon connection type and action for Umbraco Automate. Post statuses to any Mastodon instance as part of an automation workflow.

Installation

dotnet add package OC.Automate.Mastodon

No further setup required. The composer registers itself automatically via Umbraco's IComposer discovery.

Setup

1. Generate a Mastodon access token

In your Mastodon account go to Preferences → Development → New application and create an application with the write:statuses scope. Copy the access token.

2. Add the token to appsettings

Access tokens are stored in configuration, not the backoffice. Add the following to your appsettings.json (or appsettings.Production.json):

{
  "OC.Automate.Mastodon": {
    "AccessTokens": {
      "myaccount": "your-access-token-here"
    }
  }
}

The key (myaccount above) is a name you choose — you will reference it when creating the connection in the backoffice. You can add multiple entries if you need to post from more than one account.

For production it is recommended to supply tokens via environment variables rather than a config file:

OC__Automate__Mastodon__AccessTokens__myaccount=your-access-token-here

3. Create the connection in the backoffice

  1. Go to Automate → Connections and create a new Mastodon connection.
  2. Enter your instance URL (e.g. https://mastodon.social).
  3. Enter the Connection Name — this must match the key you used in appsettings (e.g. myaccount).
  4. Click Test connection to verify.

Usage

Add the Send Mastodon Post action to any automation and select your Mastodon connection. Available fields:

Field Description
Content The post text. Supports ${ binding } expressions.
Visibility public, unlisted, private, or direct. Defaults to public.
Post URL Optional URL appended to the post on a new line.
Sensitive Marks the post as sensitive/NSFW.
Spoiler Text Content warning shown before the post body.

Compatibility

Package version Umbraco Automate Umbraco CMS
1.x 17.x 17.x
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.5 58 6/15/2026
1.0.4 43 6/15/2026
1.0.3 50 6/15/2026
1.0.2 50 6/15/2026
1.0.1 52 6/15/2026