API reference

Base address https://autoobot.com/api, the key as Authorization: Bearer, JSON in and out. The same document as OpenAPI 3.1, to import in Postman or generate a client.

Workspace

Get the workspace

GET/api/workspaceMCP tool get_workspace

The workspace this key belongs to, its API & MCP package and its rate limit. A cheap way to check a key works.

Answers 200 with Workspace.

Assets

List the assets

GET/api/assetsMCP tool list_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`).

Answers 200 with object: data.

Conversations

List conversations

GET/api/conversationsMCP tool 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.

ParameterInTypeDescription
asset_idquerystringOnly this asset’s conversations.
channelquery"facebook" | "instagram" | "whatsapp" | "tiktok"The channel: Facebook page, Instagram account, WhatsApp number or TikTok account.
kindquery"message" | "comment"`message`: direct messages (Messenger, Instagram DM, WhatsApp, TikTok DM). `comment`: the comments of one person on one post.
statusquery"open" | "snoozed" | "resolved"
updated_afterquerystringOnly conversations with a message at or after this time.
limitqueryintegerHow many to return, 1 to 100.
cursorquerystringThe `next_cursor` of the previous page.

Answers 200 with ConversationList.

Get a conversation

GET/api/conversations/{id}MCP tool get_conversation

One conversation with its person, its post (comments), whether the bot is paused and until when a reply can be sent.

ParameterInTypeDescription
idpathstringRequired. The conversation.

Answers 200 with Conversation.

Update a conversation

PATCH/api/conversations/{id}MCP tool update_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).

ParameterInTypeDescription
idpathstringRequired. The conversation.
Body fieldTypeDescription
status"open" | "snoozed" | "resolved"optional
assignee_idstring or nulloptionalA team member of this workspace, or null.

Answers 200 with Conversation.

Pause or resume the bot

POST/api/conversations/{id}/automationMCP tool set_bot_state

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.

ParameterInTypeDescription
idpathstringRequired. The conversation.
Body fieldTypeDescription
action"pause" | "resume"required
minutesintegeroptionalpause: resume by itself after this many minutes. Without it, the bot waits to be resumed.

Answers 200 with BotState.

Messages

List a conversation’s messages

GET/api/conversations/{id}/messagesMCP tool list_messages

The messages and comments of a conversation, the newest first, with the team’s internal notes (`note: true`).

ParameterInTypeDescription
idpathstringRequired. The conversation.
limitqueryintegerHow many to return, 1 to 100.
cursorquerystringThe `next_cursor` of the previous page.

Answers 200 with MessageList.

Reply in a conversation

POST/api/conversations/{id}/messagesMCP tool send_reply

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.

ParameterInTypeDescription
idpathstringRequired. The conversation.
Body fieldTypeDescription
textstringoptionalThe reply. Up to 4,000 characters (1,200 on TikTok comments). Default "".
attachmentobjectoptional
reply_to_message_idstringoptionalComments: the comment (a message id) to answer. By default the person’s latest comment.
private_replybooleanoptionalFacebook and Instagram comments: answer the comment with a private message instead of a public reply, within 7 days of the comment. Default false.

Answers 202 with object: data.

Add an internal note

POST/api/conversations/{id}/notesMCP tool add_note

A note for the team in the conversation: never sent to the person, free, and it does not pause the bot.

ParameterInTypeDescription
idpathstringRequired. The conversation.
Body fieldTypeDescription
textstringrequired

Answers 201 with Message.

Get a message

GET/api/messages/{id}

One message, with its status: a reply sent through the API goes from `sending` to `sent` (or `failed`).

ParameterInTypeDescription
idpathstringRequired.

Answers 200 with Message.

Hide, delete or like a comment

POST/api/messages/{id}/moderationMCP tool moderate_comment

Hides, deletes or likes a person’s comment on a Facebook page’s post, through the page’s queue.

ParameterInTypeDescription
idpathstringRequired. The comment, a message of a comment conversation.
Body fieldTypeDescription
action"hide" | "delete" | "like"required

Answers 202 with object: queued.

Contacts

List contacts

GET/api/contactsMCP tool list_contacts

The people who wrote to the workspace’s assets, the newest first, with their labels, custom fields and the team’s note.

ParameterInTypeDescription
asset_idquerystring
channelquery"facebook" | "instagram" | "whatsapp" | "tiktok"The channel: Facebook page, Instagram account, WhatsApp number or TikTok account.
qquerystringPart of a name, @username, phone or email.
labelquerystringOnly people with this label.
limitqueryintegerHow many to return, 1 to 100.
cursorquerystringThe `next_cursor` of the previous page.

Answers 200 with ContactList.

Get a contact

GET/api/contacts/{id}MCP tool get_contact

One person, with their labels, custom fields and the team’s note.

ParameterInTypeDescription
idpathstringRequired.

Answers 200 with Contact.

Update a contact

PATCH/api/contacts/{id}MCP tool update_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#.

ParameterInTypeDescription
idpathstringRequired.
Body fieldTypeDescription
namestringoptional
emailstring or nulloptional
phonestring or nulloptional
labelsarray of stringoptionalExactly these labels.
fieldsobjectoptional
notestring or nulloptional

Answers 200 with Contact.

Automation

Get who answers direct messages

GET/api/assets/{id}/automationMCP tool get_automation

Who answers the asset’s direct messages automatically.

ParameterInTypeDescription
idpathstringRequired. The asset.

Answers 200 with Automation.

Change who answers direct messages

PATCH/api/assets/{id}/automationMCP tool set_automation

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.

ParameterInTypeDescription
idpathstringRequired. The asset.
Body fieldTypeDescription

Answers 200 with Automation.

List comment campaigns

GET/api/campaignsMCP tool list_campaigns

The comment campaigns of every Facebook page, Instagram account and TikTok account, on or off.

ParameterInTypeDescription
asset_idquerystring

Answers 200 with object: data.

Turn a comment campaign on or off

PATCH/api/campaigns/{id}MCP tool set_campaign_state

Turns one campaign on or off; nothing else in it changes. Turn a campaign off where your own system answers the comments.

ParameterInTypeDescription
idpathstringRequired.
Body fieldTypeDescription
state"on" | "off"required

Answers 200 with Campaign.

List an asset’s flows

GET/api/assets/{id}/flowsMCP tool list_flows

The published flows that can be started in the asset’s conversations (Facebook, Instagram, WhatsApp, TikTok).

ParameterInTypeDescription
idpathstringRequired. The asset.

Answers 200 with object: data.

Start a flow in a conversation

POST/api/conversations/{id}/flowsMCP tool start_flow

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.

ParameterInTypeDescription
idpathstringRequired.
Body fieldTypeDescription
flow_idstringrequiredA flow from GET /assets/{id}/flows.

Answers 202 with object: started.

Reports

Figures for a period

GET/api/reportsMCP tool get_report

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.

ParameterInTypeDescription
fromquerystringRequired. Start of the period.
toquerystringEnd of the period, now by default.
asset_idquerystring

Answers 200 with object: data.

Objects

Error

FieldTypeDescription
errorobjectrequired
request_idstringrequired

Workspace

FieldTypeDescription
idstringrequiredThe workspace.
namestringrequired
packageobjectrequired
rate_limitobjectrequired

Asset

FieldTypeDescription
idstringrequiredThe asset: a Facebook page, an Instagram account, a WhatsApp number or a TikTok account.
channel"facebook" | "instagram" | "whatsapp" | "tiktok"requiredThe channel: Facebook page, Instagram account, WhatsApp number or TikTok account.
type"facebook_page" | "instagram_account" | "whatsapp_number" | "tiktok_account"required
namestringrequiredThe name people know it by: the page name, @username or number.
coveredbooleanrequiredIt has a running package or trial, so replies can be sent through it.
covered_untilstring or nullrequired
connectedbooleanrequiredAutoobot reaches it on its platform. When false, reconnect it in Autoobot.
kindsarray of "message" | "comment"requiredThe kinds of conversations it has.

ConversationList

FieldTypeDescription
dataarray of Conversationrequired
next_cursorstring or nullrequired

Conversation

FieldTypeDescription
idstringrequiredThe conversation.
asset_idstringrequired
channel"facebook" | "instagram" | "whatsapp" | "tiktok"requiredThe channel: Facebook page, Instagram account, WhatsApp number or TikTok account.
kind"message" | "comment"required`message`: direct messages (Messenger, Instagram DM, WhatsApp, TikTok DM). `comment`: the comments of one person on one post.
status"open" | "snoozed" | "resolved"required
contactobjectrequired
postobject or nullrequiredThe post the comments are on (comment conversations).
assignee_idstring or nullrequiredThe team member in charge.
botBotStaterequired
reply_window_ends_atstring or nullrequired
last_message_atstringrequiredThe last message. ISO 8601, UTC.
created_atstringrequiredWhen it started. ISO 8601, UTC.

BotState

FieldTypeDescription
state"active" | "paused"required`paused`: a person on the team stepped in, or the bot was paused; bot replies are refused until it resumes.
paused_untilstring or nullrequired

MessageList

FieldTypeDescription
dataarray of Messagerequired
next_cursorstring or nullrequired

Message

FieldTypeDescription
idstringrequiredThe message.
conversation_idstringrequired
direction"in" | "out"required
sender"contact" | "bot" | "team" | "api" | "app"required`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.
typestringrequiredtext, comment, image, video, audio, file, sticker, location, contact, call, order, story_mention…
textstring or nullrequired
attachmentsarray of objectrequired
status"sending" | "sent" | "delivered" | "read" | "failed" | "deleted"required
platform_idstring or nullrequiredThe id the platform gave it (a comment id on comments).
reply_to_platform_idstring or nullrequiredThe message or comment it answers, on the platform.
notebooleanrequiredAn internal note of the team: never sent to the person.
viastring or nullrequiredThe app that sent it through the API or MCP.
created_atstringrequiredWhen it was written. ISO 8601, UTC.

ContactList

FieldTypeDescription
dataarray of Contactrequired
next_cursorstring or nullrequired

Contact

FieldTypeDescription
idstringrequiredThe person, as they wrote to one asset.
asset_idstringrequired
channel"facebook" | "instagram" | "whatsapp" | "tiktok"requiredThe channel: Facebook page, Instagram account, WhatsApp number or TikTok account.
namestringrequired
usernamestring or nullrequiredTheir @username on Instagram or TikTok.
phonestring or nullrequired
emailstring or nullrequired
avatar_urlstring or nullrequired
labelsarray of stringrequiredThe labels the team gave them, by name.
fieldsobjectrequiredTheir custom fields, used in replies as #field#.
notestring or nullrequiredThe team's note about them.
created_atstringrequiredWhen they first wrote. ISO 8601, UTC.

Automation

FieldTypeDescription
mode"off" | "rules" | "simple_ai" | "octo" | "external"required`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).

Campaign

FieldTypeDescription
idstringrequired
asset_idstringrequired
channel"facebook" | "instagram" | "whatsapp" | "tiktok"requiredThe channel: Facebook page, Instagram account, WhatsApp number or TikTok account.
namestringrequired
state"on" | "off"required
scopestringrequiredWhich comments it answers: one post, every post, a live, mentions…
post_idstring or nullrequired

Flow

FieldTypeDescription
idstringrequired
namestringrequired
stepsintegerrequired

Figures

FieldTypeDescription
asset_idstringrequired
channel"facebook" | "instagram" | "whatsapp" | "tiktok"requiredThe channel: Facebook page, Instagram account, WhatsApp number or TikTok account.
kind"message" | "comment"required`message`: direct messages (Messenger, Instagram DM, WhatsApp, TikTok DM). `comment`: the comments of one person on one post.
people_who_wroteintegerrequired
conversations_startedintegerrequired
messages_from_peopleintegerrequired
bot_repliesintegerrequired
team_repliesintegerrequired
with_a_person_nowintegerrequired