Graphrt

Threads

Threads profile, publishing, replies, moderation, mentions and search

Beta v0.3.0 Node.js 16 actions ToS risk low
Use in Graphrt Desktop

About

A Graphrt plugin for the official Threads API (graph.threads.net). It reads the account's profile and posts, publishes text, image, video and carousel threads, moderates replies, and reads mentions and keyword search. Every operation is a workflow node. Agent tools are limited by the agent policy.

What it can do

  • Profile: own profile, public profile lookup by username, publishing quota, long-lived token refresh
  • Posts: list threads and own replies, list mentions, keyword/topic-tag search, repost, delete
  • Publishing: TEXT, IMAGE, VIDEO or CAROUSEL (2–20 items), as a reply or quote, with poll (2–4 options), link preview, topic tag, alt text and reply controls. The plugin waits for media processing.
  • Replies: list top-level replies or the full conversation, hide/unhide, list and approve/ignore pending replies
  • api_request: any other Threads endpoint (e.g. insights), restricted to graph.threads.net
  • Retries rate limits, gives clear error kinds, and never puts tokens in errors.

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • Get Threads profile threads-api.get_profile
  • Look up Threads profile threads-api.lookup_profile
  • Get Threads publishing limit threads-api.get_publishing_limit
  • Refresh Threads access token threads-api.refresh_access_token
  • List Threads posts threads-api.list_threads
  • List my Threads replies threads-api.list_my_replies
  • List Threads mentions threads-api.list_mentions
  • Search Threads threads-api.keyword_search
  • Repost thread threads-api.repost_thread
  • Delete thread threads-api.delete_thread
Show all 16 actions
  • Publish thread threads-api.publish_thread
  • List Threads replies threads-api.list_replies
  • Hide/unhide Threads reply threads-api.hide_reply
  • List pending Threads replies threads-api.list_pending_replies
  • Approve/ignore pending Threads reply threads-api.approve_pending_reply
  • Threads API request threads-api.api_request

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • THREADS_ACCESS_TOKEN Required
    Threads user access token (sent as a Bearer header)
  • THREADS_TOOL_ALLOW_POST Optional
    1 lets agent tools publish posts, replies and quotes and repost (see Agent policy)
  • THREADS_TOOL_ALLOW_ENGAGE Optional
    1 lets agent tools hide, unhide, approve or ignore replies
  • THREADS_API_TOOL_TOKEN_SOURCE

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Threads.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install threads-api
workflow.yaml
- id: post
  type: threads-api.publish_thread
  text: "Rilis baru sudah live!"
  topic_tag: "graphrt"
  reply_control: "followers_only"
- id: carousel
  type: threads-api.publish_thread
  media_type: CAROUSEL
  text: "Behind the scenes"
  carousel_items: '[{"image_url":"https://example.com/1.jpg"},{"video_url":"https://example.com/2.mp4"}]'
- id: hide
  type: threads-api.hide_reply
  reply_id: "{{#start.reply_id#}}"
  hidden: true
Plugins in the docs