{
  "name": "Postifys \u2014 TikTok creator inbox",
  "nodes": [
    {
      "parameters": {},
      "id": "manual-1",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "mode": "manual",
        "duplicateItem": false,
        "assignments": {
          "assignments": [
            {
              "id": "0",
              "name": "videoUrl",
              "value": "https://example.com/tiktok.mp4",
              "type": "string"
            },
            {
              "id": "1",
              "name": "caption",
              "value": "Inbox draft via Postifys",
              "type": "string"
            },
            {
              "id": "2",
              "name": "tiktokAccountId",
              "value": "OPEN_ID_FROM_CONNECTIONS",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "set-1",
      "name": "TikTok fields",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://postifys.com/api/tiktok/post",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ videoUrl: $json.videoUrl, caption: $json.caption, tiktokAccountId: $json.tiktokAccountId }) }}",
        "options": {}
      },
      "id": "http-1",
      "name": "Postifys TikTok Inbox",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        460,
        0
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "REPLACE_WITH_POSTIFYS_HEADER_AUTH",
          "name": "Postifys API Key (Authorization: Bearer \u2026)"
        }
      },
      "notes": "Create Header Auth credential: Name=Authorization, Value=Bearer YOUR_API_KEY"
    }
  ],
  "connections": {
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "TikTok fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "TikTok fields": {
      "main": [
        [
          {
            "node": "Postifys TikTok Inbox",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false,
    "instanceId": "postifys-public-template"
  },
  "pinData": {},
  "versionId": "1",
  "tags": [
    {
      "name": "postifys"
    }
  ]
}