# Autoobot API & MCP > Autoobot (https://autoobot.com) answers the comments and direct messages of Facebook pages, Instagram accounts, WhatsApp numbers and TikTok accounts. Its API, webhook and MCP server let a business receive every comment and message on its own server and reply from its own system: n8n, its own AI agent, a CRM, or ChatGPT and Claude through MCP. Docs: https://autoobot.com/developers. OpenAPI 3.1: https://autoobot.com/api/openapi.json. ## Access and price - The API & MCP package: $10 a month or $100 a year per workspace, on every page, account and number it holds. Activated by a workspace admin in the dashboard: https://autoobot.com/dash/developers. - One API key per workspace (abot_sk_…), sent as "Authorization: Bearer ". One webhook URL per workspace. - MCP server: https://autoobot.com/mcp (Streamable HTTP; protocol 2026-07-28 and the 2025 revisions). Sign-in with OAuth 2.1 (client ID metadata documents, dynamic registration, PKCE S256) or the API key as a Bearer token. - Replies sent through the API count as automatic replies of the asset's own package. ## Rules - At most 5 requests a second per workspace (the key and MCP apps together); over it: 429 rate_limited with Retry-After. - Every reply goes into Autoobot's queue for its channel and is sent at the channel's safe pace: answered 202 with the message "sending", then the webhook tells message.sent or message.failed. - At most 100 replies waiting per page, account or number (429 queue_full); 30 automatic replies an hour per conversation. - Replies only to people who wrote, inside the platform's reply window (422 outside_reply_window). No new conversations, no bulk messages. - When a person on the team takes a conversation over, API replies are refused (409 conversation_paused) until the bot resumes. - Idempotency-Key on POST and PATCH: the same key within 24 hours answers the first result. - Lists: { data, next_cursor }; send next_cursor back as cursor. ## Channels - Facebook pages: direct messages: Messenger, within 24 hours of the person’s last message; comments: Public reply, or private reply within 7 days; files: Pictures, videos, audio, documents; Hide, delete or like a comment. - Instagram: direct messages: Instagram Direct, within 24 hours; comments: Public reply, or private reply within 7 days; files: Pictures, videos, audio. - WhatsApp: direct messages: Within 24 hours of the person’s last message; comments: —; files: Pictures, videos, audio, documents (the text as caption); Sent at a safe pace that protects your number. - TikTok: direct messages: Direct messages of business accounts, within 48 hours; comments: Public reply, up to 1,200 characters; files: Pictures (JPG or PNG, up to 5 MB). ## Webhook Each event is POSTed once to the workspace's URL as { id, type, created_at, workspace_id, data: { asset, conversation, message } }, with headers Autoobot-Event-Id, Autoobot-Event-Type and Autoobot-Signature: t=,v1=." with the webhook secret>. Refuse a signature older than 5 minutes. - message.received: A person sent a direct message: Messenger, Instagram Direct, WhatsApp or TikTok. - comment.received: A person commented on a post of a Facebook page, Instagram account or TikTok account, or replied in a comment thread. - message.sent: A reply went out: from your system (sender api), the bot, the team in Autoobot, or the owner in the platform’s own app (sender app). - message.failed: A reply could not be sent; the message carries the reason. - conversation.updated: A conversation’s status or assignee changed. - conversation.handoff: A person on the team took the conversation over (the bot and the API pause), or the bot resumed. - asset.connection: A page, account or number lost its connection to its platform, or got it back. - ping: A test event sent from the dashboard. ## Let your own system answer Set an inbox's automatic replies to "Your system" (PATCH /api/assets/{id}/automation with {"mode":"external"}): Autoobot then sends nothing automatic there, and your system replies with POST /api/conversations/{id}/messages. ## Operations ### GET /api/workspace — Get the workspace The workspace this key belongs to, its API & MCP package and its rate limit. A cheap way to check a key works. MCP tool: get_workspace ### GET /api/assets — List the assets Every Facebook page, Instagram account, WhatsApp number and TikTok account the workspace holds, with whether replies can be sent through it now (`covered` and `connected`). MCP tool: list_assets ### GET /api/conversations — List conversations The conversations of every asset, the latest message first. A direct-message conversation is one person on one asset; a comment conversation is one person’s comments on one post. Use `updated_after` to read only what changed since your last look. Query: asset_id, channel, kind, status, updated_after, limit, cursor MCP tool: list_conversations ### GET /api/conversations/{id} — Get a conversation One conversation with its person, its post (comments), whether the bot is paused and until when a reply can be sent. MCP tool: get_conversation ### PATCH /api/conversations/{id} — Update a conversation Changes its status (resolving it may resume the bot, as the inbox’s settings say) or the team member in charge (`assignee_id`, null for nobody). Body (JSON): status, assignee_id MCP tool: update_conversation ### POST /api/conversations/{id}/automation — Pause or resume the bot Pauses Autoobot’s automatic replies (and the API’s) in one conversation, for some minutes or until resumed; or resumes them, also after a person on the team stepped in. Body (JSON): action, minutes MCP tool: set_bot_state ### GET /api/conversations/{id}/messages — List a conversation’s messages The messages and comments of a conversation, the newest first, with the team’s internal notes (`note: true`). Query: limit, cursor MCP tool: list_messages ### POST /api/conversations/{id}/messages — Reply in a conversation Replies to the person: a direct message, or a public reply under their comment (or a private message about it on Facebook and Instagram with `private_reply`). The reply goes into Autoobot’s queue and is sent at the channel’s safe pace: the answer is 202 with the message `sending`, then the webhook tells `message.sent` or `message.failed`. It counts as an automatic reply of the asset’s package. Refused with 409 while a person on the team has taken the conversation over. Body (JSON): text, attachment, reply_to_message_id, private_reply MCP tool: send_reply ### POST /api/conversations/{id}/notes — Add an internal note A note for the team in the conversation: never sent to the person, free, and it does not pause the bot. Body (JSON): text MCP tool: add_note ### GET /api/messages/{id} — Get a message One message, with its status: a reply sent through the API goes from `sending` to `sent` (or `failed`). ### GET /api/contacts — List contacts The people who wrote to the workspace’s assets, the newest first, with their labels, custom fields and the team’s note. Query: asset_id, channel, q, label, limit, cursor MCP tool: list_contacts ### GET /api/contacts/{id} — Get a contact One person, with their labels, custom fields and the team’s note. MCP tool: get_contact ### PATCH /api/contacts/{id} — Update a contact Sets what the team keeps about a person: name, email, phone, labels (by name; a new name becomes a label of their asset), custom fields (merged: an empty value removes a field) and the note. Fields are used in replies as #field#. Body (JSON): name, email, phone, labels, fields, note MCP tool: update_contact ### POST /api/messages/{id}/moderation — Hide, delete or like a comment Hides, deletes or likes a person’s comment on a Facebook page’s post, through the page’s queue. Body (JSON): action MCP tool: moderate_comment ### GET /api/assets/{id}/automation — Get who answers direct messages Who answers the asset’s direct messages automatically. MCP tool: get_automation ### PATCH /api/assets/{id}/automation — Change who answers direct messages Switches the asset’s automatic replies, for example to `external` so your system answers every message through this API. The keyword replies, AI instructions and Octo settings stay as they are. Body (JSON): mode MCP tool: set_automation ### GET /api/campaigns — List comment campaigns The comment campaigns of every Facebook page, Instagram account and TikTok account, on or off. Query: asset_id MCP tool: list_campaigns ### PATCH /api/campaigns/{id} — Turn a comment campaign on or off Turns one campaign on or off; nothing else in it changes. Turn a campaign off where your own system answers the comments. Body (JSON): state MCP tool: set_campaign_state ### GET /api/assets/{id}/flows — List an asset’s flows The published flows that can be started in the asset’s conversations (Facebook, Instagram, WhatsApp, TikTok). MCP tool: list_flows ### POST /api/conversations/{id}/flows — Start a flow in a conversation Sends one of the asset’s flows to the person, through the channel’s queue, within its reply window. It counts as one automatic reply, whatever its length. Body (JSON): flow_id MCP tool: start_flow ### GET /api/reports — Figures for a period For each asset and kind of conversation: people who wrote, conversations started, messages from people, automatic and team replies in the period, and conversations a person has taken over now. At most 92 days. Query: from, to, asset_id MCP tool: get_report ## Errors Shape: { error: { type, code, message, param?, doc_url }, request_id }. - invalid_request (400) - body_too_large (413) - unsupported_media_type (415) - missing_api_key (401) - invalid_api_key (401) - package_required (402) - reply_limit_reached (402) - api_suspended (403) - asset_not_covered (403) - asset_disconnected (403) - not_found (404) - method_not_allowed (405) - conversation_paused (409) - idempotency_conflict (409) - outside_reply_window (422) - not_supported_on_channel (422) - rate_limited (429) - queue_full (429) - ip_blocked (429) - api_disabled (503) - temporarily_unavailable (503) - internal_error (500)