UmbHost.Automate.Threads
1.1.0-rc1
Prefix Reserved
dotnet add package UmbHost.Automate.Threads --version 1.1.0-rc1
NuGet\Install-Package UmbHost.Automate.Threads -Version 1.1.0-rc1
<PackageReference Include="UmbHost.Automate.Threads" Version="1.1.0-rc1" />
<PackageVersion Include="UmbHost.Automate.Threads" Version="1.1.0-rc1" />
<PackageReference Include="UmbHost.Automate.Threads" />
paket add UmbHost.Automate.Threads --version 1.1.0-rc1
#r "nuget: UmbHost.Automate.Threads, 1.1.0-rc1"
#:package UmbHost.Automate.Threads@1.1.0-rc1
#addin nuget:?package=UmbHost.Automate.Threads&version=1.1.0-rc1&prerelease
#tool nuget:?package=UmbHost.Automate.Threads&version=1.1.0-rc1&prerelease
UmbHost.Automate.Threads
Threads connection (OAuth) and Create Threads Post and Get Threads Post Metrics actions for Umbraco Automate.
Requires Umbraco Automate 17.5+ / 18.5+, Umbraco.Automate.OpenIddict 17.1.5+, and Umbraco CMS 17.6+.
Testing status
Checked live on 2026-11-18: six posts published (12 to 28 seconds each, from container to publish, most of it waiting for the container to finish), and a post with more than five links refused in Threads' own words ("You can't add more than 5 unique links to a Threads post."). The tests use that refusal word for word (tests/UmbHost.Automate.Threads.Tests/Fixtures/Live); the other responses are mocked from Meta's published Threads API documentation.
Setup
In Meta for Developers, create an app with the Access the Threads API use case. Add the permissions
threads_basic,threads_content_publishandthreads_manage_replies.In the use case's settings, add the redirect callback URL
https://<your-site>/umbraco/automate/oauth/callback/threads.Meta decides what access the app needs, and whether it has to be reviewed. Add the Threads account as a tester.
Config, with the Threads app ID and Threads app secret from the use case's settings (not the Meta app's own id and secret):
{ "Umbraco": { "Automate": { "Providers": { "Threads": { "ClientId": "...", "ClientSecret": "..." } } } } }Without a
ClientIdthe provider is skipped and everything else still loads.Automate → Connections → Create → Threads → Authorize. Validate names the account.
Tokens
Threads issues a one-hour token at sign-in and no refresh token. The package swaps it for a 60-day token during the sign-in itself, before Automate stores it, and refreshes that token whenever it is used and is more than a week old. A connection that goes unused for 60 days has to be authorised again.
Create Threads Post
| Setting | Notes |
|---|---|
| Text | Up to 500 characters; Threads counts each emoji as its UTF-8 bytes. Links in the text are clickable. |
| Image URL | Optional public https URL of a JPEG or PNG, up to 8 MB. Threads fetches it. |
| Image Alt Text | Up to 1000 characters. |
| Thread Parts | Optional JSON array of further posts (max 10), each posted as a reply to the one before. |
Output: postId, postUrl, threadUrls.
Retries
Threads has no idempotency key. Nothing is live until a post is published, so a failure before that retries as normal; if the publish request fails without a clear answer the step fails without retrying, and a thread that fails part-way says which parts are live.
Get Threads Post Metrics
Reads posts' insights, one call per post, with GET /v1.0/{media-id}/insights?metric=views,likes,replies,reposts,quotes,shares (docs), under Threads' own names: views, likes, replies, reposts, quotes and shares.
| Setting | Notes |
|---|---|
| Ids | JSON array of 1 to 100 Threads media ids: the postId Create Threads Post outputs, the thread's first post. Anything else comes back gone and is never sent. |
Output: results, one per id: state (ok, gone, unavailable, needsPermission), values and reason.
Off by default. Insights need the threads_manage_insights permission; Meta decides what access the app needs, and whether it has to be reviewed (permissions). Add it to the use case's permissions, then turn the metrics on:
{ "Umbraco": { "Automate": { "Providers": { "Threads": { "Insights": true } } } } }
Only true (in any case, surrounding spaces ignored) turns it on; anything else, or no value, leaves it off. While it's off the action sends nothing to Threads, not even a token refresh, and returns every id as needsPermission with reason insights_off.
Existing connections must be authorised again after you turn it on. Turning it on adds threads_manage_insights to what new authorisations ask for, but a connection authorised before that doesn't have it, and its posts come back needsPermission with reason scope_missing until it is re-authorised.
Things to know:
- Meta marks
viewsandsharesas "in development". - Replies further down a thread aren't counted, so the action reads the thread's first post.
- A repost comes back with no insights, as
unavailablewith reasonunsupported. - Any other 4xx for a post (except 401, 408 and 429) is
unavailablewith reasonrejectedfor that post alone; the rest of the batch is still read. An expired token fails the step; throttling, a 5xx or a timeout fails it and Automate retries. - Not confirmed in Meta's docs: how long the figures lag and how long Threads keeps them, and which errors mean "missing permission" or "post gone" for Threads. The package uses the Graph API's codes: 10 and 200-299 for a missing permission, 100 with subcode 33 (or a 404) for a missing post.
| Product | Versions 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. |
-
net10.0
- MessagePack (>= 3.1.9)
- OpenTelemetry.Api (>= 1.15.3)
- System.Security.Cryptography.Pkcs (>= 10.0.13)
- System.Security.Cryptography.Xml (>= 10.0.13)
- Umbraco.Automate.Core (>= 17.5.0 && < 19.0.0)
- Umbraco.Automate.OpenIddict (>= 17.1.5 && < 19.0.0)
- Umbraco.Cms.Core (>= 17.6.0 && < 19.0.0)
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.1.0-rc1 | 47 | 11/25/2026 |
| 1.1.0-beta8 | 48 | 11/24/2026 |
| 1.1.0-beta7 | 57 | 11/23/2026 |
| 1.1.0-beta6 | 57 | 11/23/2026 |
| 1.1.0-beta5 | 59 | 11/23/2026 |
| 1.1.0-beta4 | 64 | 11/18/2026 |
| 1.1.0-beta3 | 58 | 11/18/2026 |
| 1.1.0-beta2 | 60 | 11/17/2026 |
| 1.1.0-beta1 | 60 | 11/16/2026 |