{
  "name": "Agent posting policy (template)",
  "publisher": "APIWings",
  "source_article": "https://apiwings.com/blog/ai-agent-publish-social-media-posts",
  "license": "CC BY 4.0 for this template; the gate code is MIT",
  "notes": "Edit the accounts, domains and limits for your product. approval: required means a person approves the exact post before it goes out. Network rules force approval where the network's own terms ask for user consent or restrict automated posting; they are based on each network's official terms, checked on 25 November 2026 (sources below).",
  "paused": false,
  "accounts": {
    "acc_bsky_acme": { "platform": "bluesky", "label": "@acme.bsky.social", "approval": "required" },
    "acc_li_ana": { "platform": "linkedin", "label": "Ana Ruiz (LinkedIn profile)", "approval": "required" },
    "acc_threads_acme": { "platform": "threads", "label": "@acme on Threads", "approval": "required" },
    "acc_tt_acme": { "platform": "tiktok", "label": "@acme on TikTok", "approval": "required" }
  },
  "allowed_link_domains": ["acme.com"],
  "max_mentions": 2,
  "require_alt_text": true,
  "max_posts_per_account_per_day": 3,
  "duplicate_window_hours": 72,
  "approval_valid_hours": 24,
  "blocked_terms": ["guaranteed returns", "DM me your password"],
  "secret_patterns": {
    "APIWings API key": "aw_(live|test)_[A-Za-z0-9]{8,}",
    "OpenAI-style API key": "sk-[A-Za-z0-9_-]{20,}",
    "GitHub token": "gh[pousr]_[A-Za-z0-9]{30,}",
    "AWS access key ID": "AKIA[0-9A-Z]{16}",
    "private key": "-----BEGIN [A-Z ]*PRIVATE KEY-----"
  },
  "network_rules": {
    "linkedin": {
      "approval": "required",
      "why": "LinkedIn provides official publishing APIs (Posts API, w_member_social), but its API Terms of Use (section 3.1) restrict using them to automate posting. This template makes the member approve every post. Approval reduces the risk but does not guarantee compliance on its own: check your workflow against LinkedIn's terms.",
      "source": "https://www.linkedin.com/legal/l/api-terms-of-use"
    },
    "tiktok": {
      "approval": "required",
      "agent_must_not_set": ["privacy_level"],
      "user_must_choose": ["privacy_level"],
      "consent_required": true,
      "why": "TikTok's Content Sharing Guidelines: users must have full awareness and control of what is posted, choose the privacy status themselves with no default, and expressly consent before content is sent.",
      "source": "https://developers.tiktok.com/doc/content-sharing-guidelines"
    },
    "facebook": {
      "approval": "required",
      "why": "Meta's Developer Policies (1.7): obtain consent from people before publishing content or taking any other action on their behalf.",
      "source": "https://developers.facebook.com/devpolicy/"
    },
    "instagram": {
      "approval": "required",
      "why": "Meta's Developer Policies (1.7): obtain consent from people before publishing content or taking any other action on their behalf.",
      "source": "https://developers.facebook.com/devpolicy/"
    },
    "threads": {
      "approval": "required",
      "why": "Meta's Developer Policies (1.7): obtain consent from people before publishing content or taking any other action on their behalf.",
      "source": "https://developers.facebook.com/devpolicy/"
    }
  }
}
