{"openapi":"3.1.0","info":{"title":"Autoobot API","version":"2026-11-26","summary":"Comments and messages of Facebook, Instagram, WhatsApp and TikTok, read and answered from your own system.","description":"Read the conversations of every Facebook page, Instagram account, WhatsApp number and TikTok account of your Autoobot workspace, and reply from your own system: n8n, your own AI agent, a CRM. Incoming messages and comments reach your webhook. At most 5 requests a second per workspace; every reply goes through Autoobot's queue at each channel's safe pace. Docs: https://autoobot.com/developers","contact":{"name":"Autoobot","url":"https://autoobot.com/developers"}},"servers":[{"url":"https://autoobot.com/api"}],"security":[{"apiKey":[]}],"tags":[{"name":"Workspace"},{"name":"Assets"},{"name":"Conversations"},{"name":"Messages"},{"name":"Contacts"},{"name":"Automation"},{"name":"Reports"}],"paths":{"/workspace":{"get":{"operationId":"getWorkspace","tags":["Workspace"],"summary":"Get the workspace","description":"The workspace this key belongs to, its API & MCP package and its rate limit. A cheap way to check a key works.","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"get_workspace"}},"/assets":{"get":{"operationId":"listAssets","tags":["Assets"],"summary":"List the assets","description":"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`).","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"list_assets"}},"/conversations":{"get":{"operationId":"listConversations","tags":["Conversations"],"summary":"List conversations","description":"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.","parameters":[{"name":"asset_id","in":"query","required":false,"description":"Only this asset’s conversations.","schema":{"type":"string","maxLength":64}},{"name":"channel","in":"query","required":false,"description":"The channel: Facebook page, Instagram account, WhatsApp number or TikTok account.","schema":{"type":"string","enum":["facebook","instagram","whatsapp","tiktok"]}},{"name":"kind","in":"query","required":false,"description":"`message`: direct messages (Messenger, Instagram DM, WhatsApp, TikTok DM). `comment`: the comments of one person on one post.","schema":{"type":"string","enum":["message","comment"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["open","snoozed","resolved"]}},{"name":"updated_after","in":"query","required":false,"description":"Only conversations with a message at or after this time.","schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"limit","in":"query","required":false,"description":"How many to return, 1 to 100.","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationList"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"list_conversations"}},"/conversations/{id}":{"get":{"operationId":"getConversation","tags":["Conversations"],"summary":"Get a conversation","description":"One conversation with its person, its post (comments), whether the bot is paused and until when a reply can be sent.","parameters":[{"name":"id","in":"path","required":true,"description":"The conversation.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"get_conversation"},"patch":{"operationId":"updateConversation","tags":["Conversations"],"summary":"Update a conversation","description":"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).","parameters":[{"name":"id","in":"path","required":true,"description":"The conversation.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string: the same request sent again with it within 24 hours is answered as the first, never done twice.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["open","snoozed","resolved"]},"assignee_id":{"description":"A team member of this workspace, or null.","anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"update_conversation"}},"/conversations/{id}/automation":{"post":{"operationId":"setConversationBot","tags":["Conversations"],"summary":"Pause or resume the bot","description":"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.","parameters":[{"name":"id","in":"path","required":true,"description":"The conversation.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string: the same request sent again with it within 24 hours is answered as the first, never done twice.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["pause","resume"]},"minutes":{"description":"pause: resume by itself after this many minutes. Without it, the bot waits to be resumed.","type":"integer","minimum":1,"maximum":43200}},"required":["action"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotState"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"set_bot_state"}},"/conversations/{id}/messages":{"get":{"operationId":"listMessages","tags":["Messages"],"summary":"List a conversation’s messages","description":"The messages and comments of a conversation, the newest first, with the team’s internal notes (`note: true`).","parameters":[{"name":"id","in":"path","required":true,"description":"The conversation.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"limit","in":"query","required":false,"description":"How many to return, 1 to 100.","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageList"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"list_messages"},"post":{"operationId":"sendMessage","tags":["Messages"],"summary":"Reply in a conversation","description":"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.","parameters":[{"name":"id","in":"path","required":true,"description":"The conversation.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string: the same request sent again with it within 24 hours is answered as the first, never done twice.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"default":"","description":"The reply. Up to 4,000 characters (1,200 on TikTok comments).","example":"Hi Sara! Yes, the blue dress is in stock in size M.","type":"string","maxLength":4000},"attachment":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"A direct https link to the file (picture, video, audio or document), fetched once by Autoobot. Direct messages only; TikTok takes JPG or PNG pictures."}},"required":["url"]},"reply_to_message_id":{"description":"Comments: the comment (a message id) to answer. By default the person’s latest comment.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"private_reply":{"default":false,"description":"Facebook and Instagram comments: answer the comment with a private message instead of a public reply, within 7 days of the comment.","type":"boolean"}}}}}},"responses":{"202":{"description":"Accepted: queued, sent at the channel’s safe pace.","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Message"}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"send_reply"}},"/conversations/{id}/notes":{"post":{"operationId":"addNote","tags":["Messages"],"summary":"Add an internal note","description":"A note for the team in the conversation: never sent to the person, free, and it does not pause the bot.","parameters":[{"name":"id","in":"path","required":true,"description":"The conversation.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string: the same request sent again with it within 24 hours is answered as the first, never done twice.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":4000,"example":"Asked for a refund: check order #4512."}},"required":["text"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"add_note"}},"/messages/{id}":{"get":{"operationId":"getMessage","tags":["Messages"],"summary":"Get a message","description":"One message, with its status: a reply sent through the API goes from `sending` to `sent` (or `failed`).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/contacts":{"get":{"operationId":"listContacts","tags":["Contacts"],"summary":"List contacts","description":"The people who wrote to the workspace’s assets, the newest first, with their labels, custom fields and the team’s note.","parameters":[{"name":"asset_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"channel","in":"query","required":false,"description":"The channel: Facebook page, Instagram account, WhatsApp number or TikTok account.","schema":{"type":"string","enum":["facebook","instagram","whatsapp","tiktok"]}},{"name":"q","in":"query","required":false,"description":"Part of a name, @username, phone or email.","schema":{"type":"string","maxLength":100}},{"name":"label","in":"query","required":false,"description":"Only people with this label.","schema":{"type":"string","maxLength":100}},{"name":"limit","in":"query","required":false,"description":"How many to return, 1 to 100.","schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page.","schema":{"type":"string","maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactList"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"list_contacts"}},"/contacts/{id}":{"get":{"operationId":"getContact","tags":["Contacts"],"summary":"Get a contact","description":"One person, with their labels, custom fields and the team’s note.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"get_contact"},"patch":{"operationId":"updateContact","tags":["Contacts"],"summary":"Update a contact","description":"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#.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string: the same request sent again with it within 24 hours is answered as the first, never done twice.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"email":{"anyOf":[{"type":"string","maxLength":255,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"labels":{"description":"Exactly these labels.","example":["vip","lead"],"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"fields":{"example":{"city":"Riyadh","order":"4512"},"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"type":"string","maxLength":500}},"note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"update_contact"}},"/messages/{id}/moderation":{"post":{"operationId":"moderateComment","tags":["Messages"],"summary":"Hide, delete or like a comment","description":"Hides, deletes or likes a person’s comment on a Facebook page’s post, through the page’s queue.","parameters":[{"name":"id","in":"path","required":true,"description":"The comment, a message of a comment conversation.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string: the same request sent again with it within 24 hours is answered as the first, never done twice.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["hide","delete","like"]}},"required":["action"]}}}},"responses":{"202":{"description":"Accepted: queued, sent at the channel’s safe pace.","content":{"application/json":{"schema":{"type":"object","properties":{"queued":{"type":"boolean"}},"required":["queued"],"additionalProperties":false}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"moderate_comment"}},"/assets/{id}/automation":{"get":{"operationId":"getAutomation","tags":["Automation"],"summary":"Get who answers direct messages","description":"Who answers the asset’s direct messages automatically.","parameters":[{"name":"id","in":"path","required":true,"description":"The asset.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Automation"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"get_automation"},"patch":{"operationId":"setAutomation","tags":["Automation"],"summary":"Change who answers direct messages","description":"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.","parameters":[{"name":"id","in":"path","required":true,"description":"The asset.","schema":{"type":"string","minLength":1,"maxLength":64}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string: the same request sent again with it within 24 hours is answered as the first, never done twice.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Automation"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Automation"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"set_automation"}},"/campaigns":{"get":{"operationId":"listCampaigns","tags":["Automation"],"summary":"List comment campaigns","description":"The comment campaigns of every Facebook page, Instagram account and TikTok account, on or off.","parameters":[{"name":"asset_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Campaign"}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"list_campaigns"}},"/campaigns/{id}":{"patch":{"operationId":"setCampaignState","tags":["Automation"],"summary":"Turn a comment campaign on or off","description":"Turns one campaign on or off; nothing else in it changes. Turn a campaign off where your own system answers the comments.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":36}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string: the same request sent again with it within 24 hours is answered as the first, never done twice.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string","enum":["on","off"]}},"required":["state"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Campaign"}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"set_campaign_state"}},"/assets/{id}/flows":{"get":{"operationId":"listFlows","tags":["Automation"],"summary":"List an asset’s flows","description":"The published flows that can be started in the asset’s conversations (Facebook, Instagram, WhatsApp, TikTok).","parameters":[{"name":"id","in":"path","required":true,"description":"The asset.","schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Flow"}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"list_flows"}},"/conversations/{id}/flows":{"post":{"operationId":"startFlow","tags":["Automation"],"summary":"Start a flow in a conversation","description":"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.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any unique string: the same request sent again with it within 24 hours is answered as the first, never done twice.","schema":{"type":"string","maxLength":255}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"flow_id":{"type":"string","minLength":1,"maxLength":36,"description":"A flow from GET /assets/{id}/flows."}},"required":["flow_id"]}}}},"responses":{"202":{"description":"Accepted: queued, sent at the channel’s safe pace.","content":{"application/json":{"schema":{"type":"object","properties":{"started":{"type":"boolean"}},"required":["started"],"additionalProperties":false}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"start_flow"}},"/reports":{"get":{"operationId":"getReport","tags":["Reports"],"summary":"Figures for a period","description":"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.","parameters":[{"name":"from","in":"query","required":true,"description":"Start of the period.","schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"to","in":"query","required":false,"description":"End of the period, now by default.","schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"asset_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Figures"}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"invalid_request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"missing_api_key, invalid_api_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"package_required, reply_limit_reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"api_suspended, asset_not_covered, asset_disconnected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"not_found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"405":{"description":"method_not_allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"conversation_paused, idempotency_conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"body_too_large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"unsupported_media_type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"outside_reply_window, not_supported_on_channel","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"rate_limited, queue_full, ip_blocked","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"internal_error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"api_disabled, temporarily_unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-mcp-tool":"get_report"}}},"components":{"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string"},"code":{"type":"string","example":"rate_limited"},"message":{"type":"string"},"param":{"type":"string"},"doc_url":{"type":"string"}},"required":["type","code","message","doc_url"],"additionalProperties":false},"request_id":{"type":"string","example":"req_Jk3l2nQ8xY0aBcDe"}},"required":["error","request_id"],"additionalProperties":false},"Workspace":{"type":"object","properties":{"id":{"type":"string","description":"The workspace.","example":"0b7c2f8e-4a51-4d0e-9a39-2a2f6c1d5e77"},"name":{"type":"string"},"package":{"type":"object","properties":{"active":{"type":"boolean"},"until":{"anyOf":[{"type":"string","description":"When the API & MCP package ends. ISO 8601, UTC.","example":"2026-11-26T09:30:00.000Z"},{"type":"null"}]}},"required":["active","until"],"additionalProperties":false},"rate_limit":{"type":"object","properties":{"requests_per_second":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":5}},"required":["requests_per_second"],"additionalProperties":false}},"required":["id","name","package","rate_limit"],"additionalProperties":false},"Asset":{"type":"object","properties":{"id":{"type":"string","description":"The asset: a Facebook page, an Instagram account, a WhatsApp number or a TikTok account.","example":"0b7c2f8e-4a51-4d0e-9a39-2a2f6c1d5e77"},"channel":{"type":"string","enum":["facebook","instagram","whatsapp","tiktok"],"description":"The channel: Facebook page, Instagram account, WhatsApp number or TikTok account."},"type":{"type":"string","enum":["facebook_page","instagram_account","whatsapp_number","tiktok_account"]},"name":{"type":"string","description":"The name people know it by: the page name, @username or number.","example":"Rose Bakery"},"covered":{"type":"boolean","description":"It has a running package or trial, so replies can be sent through it."},"covered_until":{"anyOf":[{"type":"string","description":"When its package or trial ends. ISO 8601, UTC.","example":"2026-11-26T09:30:00.000Z"},{"type":"null"}]},"connected":{"type":"boolean","description":"Autoobot reaches it on its platform. When false, reconnect it in Autoobot."},"kinds":{"type":"array","items":{"type":"string","enum":["message","comment"],"description":"`message`: direct messages (Messenger, Instagram DM, WhatsApp, TikTok DM). `comment`: the comments of one person on one post."},"description":"The kinds of conversations it has."}},"required":["id","channel","type","name","covered","covered_until","connected","kinds"],"additionalProperties":false},"ConversationList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Conversation"}},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"additionalProperties":false},"Conversation":{"type":"object","properties":{"id":{"type":"string","description":"The conversation.","example":"0b7c2f8e-4a51-4d0e-9a39-2a2f6c1d5e77"},"asset_id":{"type":"string"},"channel":{"type":"string","enum":["facebook","instagram","whatsapp","tiktok"],"description":"The channel: Facebook page, Instagram account, WhatsApp number or TikTok account."},"kind":{"type":"string","enum":["message","comment"],"description":"`message`: direct messages (Messenger, Instagram DM, WhatsApp, TikTok DM). `comment`: the comments of one person on one post."},"status":{"type":"string","enum":["open","snoozed","resolved"]},"contact":{"type":"object","properties":{"id":{"type":"string","description":"The person, as they wrote to one asset.","example":"0b7c2f8e-4a51-4d0e-9a39-2a2f6c1d5e77"},"name":{"type":"string"},"username":{"description":"Their @username on Instagram or TikTok.","type":["string","null"]},"avatar_url":{"type":["string","null"]}},"required":["id","name","username","avatar_url"],"additionalProperties":false},"post":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]}},"required":["id","title"],"additionalProperties":false},{"type":"null"}],"description":"The post the comments are on (comment conversations)."},"assignee_id":{"description":"The team member in charge.","type":["string","null"]},"bot":{"$ref":"#/components/schemas/BotState"},"reply_window_ends_at":{"anyOf":[{"type":"string","description":"Until when a message can be sent (direct messages); null for comments. ISO 8601, UTC.","example":"2026-11-26T09:30:00.000Z"},{"type":"null"}]},"last_message_at":{"type":"string","description":"The last message. ISO 8601, UTC.","example":"2026-11-26T09:30:00.000Z"},"created_at":{"type":"string","description":"When it started. ISO 8601, UTC.","example":"2026-11-26T09:30:00.000Z"}},"required":["id","asset_id","channel","kind","status","contact","post","assignee_id","bot","reply_window_ends_at","last_message_at","created_at"],"additionalProperties":false},"BotState":{"type":"object","properties":{"state":{"type":"string","enum":["active","paused"],"description":"`paused`: a person on the team stepped in, or the bot was paused; bot replies are refused until it resumes."},"paused_until":{"anyOf":[{"type":"string","description":"When the bot resumes by itself, or null when it waits to be resumed. ISO 8601, UTC.","example":"2026-11-26T09:30:00.000Z"},{"type":"null"}]}},"required":["state","paused_until"],"additionalProperties":false},"MessageList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Message"}},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"additionalProperties":false},"Message":{"type":"object","properties":{"id":{"type":"string","description":"The message.","example":"0b7c2f8e-4a51-4d0e-9a39-2a2f6c1d5e77"},"conversation_id":{"type":"string"},"direction":{"type":"string","enum":["in","out"]},"sender":{"type":"string","enum":["contact","bot","team","api","app"],"description":"`contact`: the person. `bot`: Autoobot. `team`: a team member in Autoobot. `api`: your system, through this API or MCP. `app`: the owner, from the platform’s own app."},"type":{"type":"string","description":"text, comment, image, video, audio, file, sticker, location, contact, call, order, story_mention…","example":"text"},"text":{"type":["string","null"]},"attachments":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","example":"image"},"url":{"type":"string","description":"A link to the file, valid at least 24 hours."}},"required":["type","url"],"additionalProperties":false}},"status":{"type":"string","enum":["sending","sent","delivered","read","failed","deleted"]},"platform_id":{"description":"The id the platform gave it (a comment id on comments).","type":["string","null"]},"reply_to_platform_id":{"description":"The message or comment it answers, on the platform.","type":["string","null"]},"note":{"type":"boolean","description":"An internal note of the team: never sent to the person."},"via":{"description":"The app that sent it through the API or MCP.","example":"ChatGPT","type":["string","null"]},"created_at":{"type":"string","description":"When it was written. ISO 8601, UTC.","example":"2026-11-26T09:30:00.000Z"}},"required":["id","conversation_id","direction","sender","type","text","attachments","status","platform_id","reply_to_platform_id","note","via","created_at"],"additionalProperties":false},"ContactList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"next_cursor":{"type":["string","null"]}},"required":["data","next_cursor"],"additionalProperties":false},"Contact":{"type":"object","properties":{"id":{"type":"string","description":"The person, as they wrote to one asset.","example":"0b7c2f8e-4a51-4d0e-9a39-2a2f6c1d5e77"},"asset_id":{"type":"string"},"channel":{"type":"string","enum":["facebook","instagram","whatsapp","tiktok"],"description":"The channel: Facebook page, Instagram account, WhatsApp number or TikTok account."},"name":{"type":"string"},"username":{"description":"Their @username on Instagram or TikTok.","type":["string","null"]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"avatar_url":{"type":["string","null"]},"labels":{"type":"array","items":{"type":"string"},"description":"The labels the team gave them, by name."},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Their custom fields, used in replies as #field#.","example":{"city":"Riyadh"}},"note":{"description":"The team's note about them.","type":["string","null"]},"created_at":{"type":"string","description":"When they first wrote. ISO 8601, UTC.","example":"2026-11-26T09:30:00.000Z"}},"required":["id","asset_id","channel","name","username","phone","email","avatar_url","labels","fields","note","created_at"],"additionalProperties":false},"Automation":{"type":"object","properties":{"mode":{"type":"string","enum":["off","rules","simple_ai","octo","external"],"description":"`off`: nobody; `rules`: keyword replies; `simple_ai`: AI from your instructions; `octo`: an Octo assistant; `external`: your system, through this API (Autoobot sends nothing automatic)."}},"required":["mode"],"additionalProperties":false},"Campaign":{"type":"object","properties":{"id":{"type":"string"},"asset_id":{"type":"string"},"channel":{"type":"string","enum":["facebook","instagram","whatsapp","tiktok"],"description":"The channel: Facebook page, Instagram account, WhatsApp number or TikTok account."},"name":{"type":"string"},"state":{"type":"string","enum":["on","off"]},"scope":{"type":"string","description":"Which comments it answers: one post, every post, a live, mentions…","example":"post"},"post_id":{"type":["string","null"]}},"required":["id","asset_id","channel","name","state","scope","post_id"],"additionalProperties":false},"Flow":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"steps":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","steps"],"additionalProperties":false},"Figures":{"type":"object","properties":{"asset_id":{"type":"string"},"channel":{"type":"string","enum":["facebook","instagram","whatsapp","tiktok"],"description":"The channel: Facebook page, Instagram account, WhatsApp number or TikTok account."},"kind":{"type":"string","enum":["message","comment"],"description":"`message`: direct messages (Messenger, Instagram DM, WhatsApp, TikTok DM). `comment`: the comments of one person on one post."},"people_who_wrote":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversations_started":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"messages_from_people":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bot_replies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"team_replies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"with_a_person_now":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["asset_id","channel","kind","people_who_wrote","conversations_started","messages_from_people","bot_replies","team_replies","with_a_person_now"],"additionalProperties":false}},"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"abot_sk_…","description":"The workspace's API key, from Autoobot › API & MCP."}}}}