ai

Policy Scan Flow Automation

Scan a draft FlowAutomation (node graph) for Meta Community Standards violations BEFORE the user persists it. Frontend calls this on flow create/edit and obeys the verdict.

Runs LLM scan + static keyword-reuse check across the account's other automations and flow triggers.

post/v1/ai/policy_scan_flow_automation

Request

  • Base URL
    https://api.linktodm.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Query parameters

exclude_flow_automation_idinteger nullable

When scanning an EDIT, pass the current flow_automation id so the keyword-reuse check doesn't flag the flow's own trigger keywords against itself.

Request body

is_activeboolean
is_deletedboolean
namestring nullable
is_draftboolean
facebook_account_idstring nullable
instagram_business_account_idstring nullable
instagram_user_idstring nullable
media_source'INSTAGRAM' | 'FACEBOOK'

Example request

{
  "nodes": [
    {
      "id": "b3c1f4a2-5d7e-4a9b-9c8d-1f2e3a4b5c6d"
    }
  ],
  "edges": [
    {
      "id": "e-b3c1f4a2-7e8d-4c5a"
    }
  ]
}

Response

Successful Response

automation_type'automation' | 'flow_automation' required
scanned_atstring required
policy_versionstring required
verdict'allow' | 'warn' | 'block' required
verdict_messagestring required
verdict_categorystring nullable
highest_severity'none' | 'low' | 'medium' | 'high' required

Changes

No recorded changes to this operation across all 1 revision of this API.