Skip to main content
Pro APIs for monitoring comments on selected posts. Prefix: /unified/ai-autoreplier

Authentication

Same as other unified routes — workspace API key or JWT session:
# API key (recommended for automation)
X-API-Key: psk_live_YOUR_KEY

# Or JWT
Authorization: Bearer YOUR_JWT
X-Workspace-Id: YOUR_WORKSPACE_UUID
With an API key, the workspace is inferred from the key. Optional X-Workspace-Id must match if sent. Requires Pro flags: auto_replier_enabled, ai_watcher_enabled, lead_detection_enabled (per endpoint).
GET /admin/overview is JWT only (cross-workspace admin).

Endpoints

MethodPathGatesDescription
POST/enableauto-replierWatch a post
POST/disableauto-replierStop watching
GET/listauto-replierList enabled posts
POST/force-runauto-replierRun all enabled
POST/force-run/{post_id}auto-replierRun one post (platform query)
GET/historyAI WatcherRun history
GET/leadslead detectionDetected leads
PATCH/ruleslead detectionKeywords / custom lead rule

Enable example (API key)

curl -X POST "https://backend.postsiva.com/unified/ai-autoreplier/enable" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: psk_live_YOUR_KEY" \
  -d '{
    "post_id": "urn:li:share:…",
    "platform": "linkedin",
    "page_id": null
  }'

Lead rules

curl -X PATCH "https://backend.postsiva.com/unified/ai-autoreplier/rules" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: psk_live_YOUR_KEY" \
  -d '{
    "post_id": "…",
    "platform": "linkedin",
    "lead_keywords": ["pricing", "demo", "buy"],
    "lead_custom_rule": "Mark as lead if the commenter asks for a sales call."
  }'

Product overview

See AI Watcher feature.