Get ban alerts via webhooks with any AI agent
Get TikTok/Instagram ban alerts from any of 25 agents: create_webhook_endpoint for account.banned, ban_appeal.submitted, ban_resolution.decided; list_ac…
From any MCP-capable agent, ban visibility is one create_webhook_endpoint call subscribing to account.ban_appeal.submitted (the earliest signal — the manager filed a platform appeal and the account is unavailable), account.banned (confirmed) and account.ban_resolution.decided (TokPortal's commercial outcome: refund, remake or no_remake with a reason_code), plus list_account_bans as the pollable source of truth. Deliveries are signed (TokPortal-Signature, HMAC SHA-256) and retryable with retry_webhook_delivery. No official API tells you a third-party account was banned; here it is a first-class event.
How it works
The lifecycle is explicit. When a manager can no longer use an account and files an appeal with the platform, TokPortal emits account.ban_appeal.submitted — that is the moment to pause scheduling for that account in your systems. If the appeal succeeds, account.ban_appeal.resolved reports it and the account continues; if it fails or there is no appeal path, account.banned fires and the account's banned flag flips in list_accounts. Staff then decide the commercial outcome and account.ban_resolution.decided carries resolution (refund, remake, no_remake), a reason_code (e.g. tos_ban) and refund_credits; credits.restored fires if TokPortal Coverage restores credits. Bundles tied to a banned account are cancelled (bundle.cancelled).
From any MCP-capable agent the setup is: list_webhook_events to see the catalogue, create_webhook_endpoint with your url and the four events, test_webhook_endpoint to receive a webhook.test, and get_webhook_endpoint to copy the signing secret into your receiver. Verify TokPortal-Signature (t=<timestamp>,v1=<hex>) with the raw body — the Node SDK ships verifyWebhookSignature. If your endpoint was down, list_webhook_deliveries shows failed attempts and retry_webhook_delivery replays one.
For reporting and reconciliation, list_account_bans is the only source of truth: filter status (appeal_pending, appeal_accepted, appeal_refused, no_appeal_banned), resolution (refund, remake, no_remake, pending), since as a polling watermark, and include_screenshots=true for a signed 7-day evidence URL. Agents must report these values verbatim and never infer a ban from missing analytics or a not_found profile.
Tool sequence
tokportal_list_webhook_events— Catalogue of event names and payload contract.tokportal_create_webhook_endpoint—url,events: ["account.ban_appeal.submitted","account.banned","account.ban_resolution.decided","credits.restored"].tokportal_test_webhook_endpoint— Sendswebhook.testto validate your receiver and signature check.tokportal_get_webhook_endpoint— Endpoint details incl. signing secret.tokportal_list_webhook_deliveries— Delivery log per endpoint (status, attempts).tokportal_retry_webhook_delivery— Replay a failed delivery bydelivery_id.tokportal_list_account_bans— Source of truth:status,resolution,since,include_screenshots.tokportal_list_accounts—banned=true|falsefilter and theban_appealblock per account.
Pick your agent
- Get ban alerts via webhooks with Claude — Anthropic's assistant on claude.ai, the mobile apps and Claude Desktop, with custom MCP connectors.
- Get ban alerts via webhooks with Claude Code — Anthropic's terminal coding agent; MCP servers are added with
claude mcp addand used in any session. - Get ban alerts via webhooks with ChatGPT — OpenAI's assistant; plans with developer mode can add remote MCP servers as custom connectors.
- Get ban alerts via webhooks with OpenAI Codex — OpenAI's coding agent (Codex CLI and IDE extension); MCP servers live in
~/.codex/config.toml. - Get ban alerts via webhooks with Cursor — AI code editor with an agent mode; MCP servers are configured in
.cursor/mcp.jsonor via a one-click deeplink. - Get ban alerts via webhooks with Windsurf — Codeium's agentic IDE (Cascade); MCP servers are declared in
~/.codeium/windsurf/mcp_config.json. - Get ban alerts via webhooks with Cline — Open-source autonomous coding agent for VS Code with an MCP marketplace and per-tool approval.
- Get ban alerts via webhooks with OpenClaw — Open-source autonomous agent runtime with a skills registry (ClawHub); TokPortal ships as a first-party skill.
- Get ban alerts via webhooks with Hermes Agent — Nous Research's open-source agent runtime; MCP servers are declared under
mcp_serversin~/.hermes/config.yaml. - Get ban alerts via webhooks with Gemini CLI — Google's open-source terminal agent for Gemini; MCP servers via
gemini mcp addor~/.gemini/settings.json, plus extensions. - Get ban alerts via webhooks with Goose — Block's open-source local agent; remote MCP servers are added as extensions (Streaming HTTP) or via a
goose://deeplink. - Get ban alerts via webhooks with Perplexity — Answer engine with custom MCP connectors on paid plans; good for read-only research over your TokPortal data.
- Get ban alerts via webhooks with Microsoft Copilot Studio — Microsoft's low-code agent builder; MCP servers are added as tools through the MCP onboarding wizard (Streamable transport).
- Get ban alerts via webhooks with Factory Droid — Factory's software-engineering agent (
droidCLI); HTTP MCP servers are added withdroid mcp add. - Get ban alerts via webhooks with n8n — Open-source workflow automation; use the built-in MCP Client Tool node with an AI Agent, or the community node
n8n-nodes-tokportalfor deterministic steps. - Get ban alerts via webhooks with Make — Visual automation platform (ex-Integromat); call TokPortal from HTTP modules with
X-API-Key, or from Make's MCP Client module where available. - Get ban alerts via webhooks with Zapier — Automation platform; today TokPortal is used via Webhooks by Zapier (REST) — a native TokPortal app is coming.
- Get ban alerts via webhooks with Pipedream — Serverless integration platform for developers; call TokPortal from a Node.js/Python code step or the HTTP action, and receive webhooks on an HTTP trigger.
- Get ban alerts via webhooks with Dify — Open-source LLM app platform; MCP servers are registered under Tools → MCP and used by Agent nodes and Agent apps.
- Get ban alerts via webhooks with Flowise — Open-source visual builder for LLM flows; the Custom MCP node connects any Streamable HTTP server to Agentflow / tool agents.
- Get ban alerts via webhooks with Langflow — Open-source visual framework for agents; the MCP Tools component connects to servers registered in Settings → MCP Servers.
- Get ban alerts via webhooks with CrewAI — Python multi-agent framework;
MCPServerAdapterfromcrewai-toolsturns any MCP server into agent tools. - Get ban alerts via webhooks with LangChain — LangChain / LangGraph agents load MCP tools with
langchain-mcp-adapters(MultiServerMCPClient). - Get ban alerts via webhooks with Vercel AI SDK — TypeScript toolkit for AI apps; the MCP client (
@ai-sdk/mcp, formerlyexperimental_createMCPClientinai) turns TokPortal tools intogenerateText/streamTexttools. - Get ban alerts via webhooks with Mastra — TypeScript agent framework;
MCPClientfrom@mastra/mcpconnects HTTP or stdio MCP servers and hands their tools to anAgent.