{
  "name": "Post Threads to Mastodon",
  "nodes": [
    {
      "id": "30f525e7-1131-4cff-86d8-348505da9fb5",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        -180
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 23,
              "triggerAtMinute": 59
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "99773c0b-3d32-4819-99d2-03e3d6638813",
      "name": "Get statuses from threads.net",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        220,
        -180
      ],
      "parameters": {
        "url": "https://mastodon.social/api/v1/accounts/<ACCOUNT_ID>/statuses",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "c842ba51-42bf-466b-8128-aa8056c082a3",
      "name": "Filter today",
      "type": "n8n-nodes-base.filter",
      "position": [
        440,
        -180
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "2efb4760-9294-496b-aca7-4e6abb8dcf34",
              "operator": {
                "type": "dateTime",
                "operation": "afterOrEquals"
              },
              "leftValue": "={{ $json.created_at }}",
              "rightValue": "={{ new Date().toISOString().split('T')[0] }}\n"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "c6e8aa82-0e9c-42a3-b34a-ea130dbdaad7",
      "name": "Boost statuses",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        -180
      ],
      "parameters": {
        "url": "=https://mastodon.social/api/v1/statuses/{{ $json.id }}/reblog",
        "options": {},
        "requestMethod": "POST",
        "authentication": "headerAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Filter today": {
      "main": [
        [
          {
            "node": "Boost statuses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get statuses from threads.net",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get statuses from threads.net": {
      "main": [
        [
          {
            "node": "Filter today",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}