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.
| Parameter | In | Type | Description |
|---|---|---|---|
asset_id | query | string | Only this asset’s conversations. |
channel | query | "facebook" | "instagram" | "whatsapp" | "tiktok" | The channel: Facebook page, Instagram account, WhatsApp number or TikTok account. |
kind | query | "message" | "comment" | `message`: direct messages (Messenger, Instagram DM, WhatsApp, TikTok DM). `comment`: the comments of one person on one post. |
status | query | "open" | "snoozed" | "resolved" | |
updated_after | query | string | Only conversations with a message at or after this time. |
limit | query | integer | How many to return, 1 to 100. |
cursor | query | string | The `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.
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. 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).
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. The conversation. |
| Body field | Type | Description | |
|---|---|---|---|
status | "open" | "snoozed" | "resolved" | optional | |
assignee_id | string or null | optional | A 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.
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. The conversation. |
| Body field | Type | Description | |
|---|---|---|---|
action | "pause" | "resume" | required | |
minutes | integer | optional | pause: 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`).
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. The conversation. |
limit | query | integer | How many to return, 1 to 100. |
cursor | query | string | The `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.
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. The conversation. |
| Body field | Type | Description | |
|---|---|---|---|
text | string | optional | The reply. Up to 4,000 characters (1,200 on TikTok comments). Default "". |
attachment | object | optional | |
reply_to_message_id | string | optional | Comments: the comment (a message id) to answer. By default the person’s latest comment. |
private_reply | boolean | optional | Facebook 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.
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. The conversation. |
| Body field | Type | Description | |
|---|---|---|---|
text | string | required |
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`).
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. |
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.
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. The comment, a message of a comment conversation. |
| Body field | Type | Description | |
|---|---|---|---|
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.
| Parameter | In | Type | Description |
|---|---|---|---|
asset_id | query | string | |
channel | query | "facebook" | "instagram" | "whatsapp" | "tiktok" | The channel: Facebook page, Instagram account, WhatsApp number or TikTok account. |
q | query | string | Part of a name, @username, phone or email. |
label | query | string | Only people with this label. |
limit | query | integer | How many to return, 1 to 100. |
cursor | query | string | The `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.
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. |
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#.
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. |
| Body field | Type | Description | |
|---|---|---|---|
name | string | optional | |
email | string or null | optional | |
phone | string or null | optional | |
labels | array of string | optional | Exactly these labels. |
fields | object | optional | |
note | string or null | optional |
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.
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. 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.
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. The asset. |
| Body field | Type | Description |
|---|
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.
| Parameter | In | Type | Description |
|---|---|---|---|
asset_id | query | string |
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.
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. |
| Body field | Type | Description | |
|---|---|---|---|
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).
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. 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.
| Parameter | In | Type | Description |
|---|---|---|---|
id | path | string | Required. |
| Body field | Type | Description | |
|---|---|---|---|
flow_id | string | required | A 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.
| Parameter | In | Type | Description |
|---|---|---|---|
from | query | string | Required. Start of the period. |
to | query | string | End of the period, now by default. |
asset_id | query | string |
Answers 200 with object: data.
Objects
Error
| Field | Type | Description | |
|---|---|---|---|
error | object | required | |
request_id | string | required |
Workspace
| Field | Type | Description | |
|---|---|---|---|
id | string | required | The workspace. |
name | string | required | |
package | object | required | |
rate_limit | object | required |
Asset
| Field | Type | Description | |
|---|---|---|---|
id | string | required | The asset: a Facebook page, an Instagram account, a WhatsApp number or a TikTok account. |
channel | "facebook" | "instagram" | "whatsapp" | "tiktok" | required | The channel: Facebook page, Instagram account, WhatsApp number or TikTok account. |
type | "facebook_page" | "instagram_account" | "whatsapp_number" | "tiktok_account" | required | |
name | string | required | The name people know it by: the page name, @username or number. |
covered | boolean | required | It has a running package or trial, so replies can be sent through it. |
covered_until | string or null | required | |
connected | boolean | required | Autoobot reaches it on its platform. When false, reconnect it in Autoobot. |
kinds | array of "message" | "comment" | required | The kinds of conversations it has. |
ConversationList
| Field | Type | Description | |
|---|---|---|---|
data | array of Conversation | required | |
next_cursor | string or null | required |
Conversation
| Field | Type | Description | |
|---|---|---|---|
id | string | required | The conversation. |
asset_id | string | required | |
channel | "facebook" | "instagram" | "whatsapp" | "tiktok" | required | The 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 | |
contact | object | required | |
post | object or null | required | The post the comments are on (comment conversations). |
assignee_id | string or null | required | The team member in charge. |
bot | BotState | required | |
reply_window_ends_at | string or null | required | |
last_message_at | string | required | The last message. ISO 8601, UTC. |
created_at | string | required | When it started. ISO 8601, UTC. |
BotState
| Field | Type | Description | |
|---|---|---|---|
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_until | string or null | required |
MessageList
| Field | Type | Description | |
|---|---|---|---|
data | array of Message | required | |
next_cursor | string or null | required |
Message
| Field | Type | Description | |
|---|---|---|---|
id | string | required | The message. |
conversation_id | string | required | |
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. |
type | string | required | text, comment, image, video, audio, file, sticker, location, contact, call, order, story_mention… |
text | string or null | required | |
attachments | array of object | required | |
status | "sending" | "sent" | "delivered" | "read" | "failed" | "deleted" | required | |
platform_id | string or null | required | The id the platform gave it (a comment id on comments). |
reply_to_platform_id | string or null | required | The message or comment it answers, on the platform. |
note | boolean | required | An internal note of the team: never sent to the person. |
via | string or null | required | The app that sent it through the API or MCP. |
created_at | string | required | When it was written. ISO 8601, UTC. |
ContactList
| Field | Type | Description | |
|---|---|---|---|
data | array of Contact | required | |
next_cursor | string or null | required |
Contact
| Field | Type | Description | |
|---|---|---|---|
id | string | required | The person, as they wrote to one asset. |
asset_id | string | required | |
channel | "facebook" | "instagram" | "whatsapp" | "tiktok" | required | The channel: Facebook page, Instagram account, WhatsApp number or TikTok account. |
name | string | required | |
username | string or null | required | Their @username on Instagram or TikTok. |
phone | string or null | required | |
email | string or null | required | |
avatar_url | string or null | required | |
labels | array of string | required | The labels the team gave them, by name. |
fields | object | required | Their custom fields, used in replies as #field#. |
note | string or null | required | The team's note about them. |
created_at | string | required | When they first wrote. ISO 8601, UTC. |
Automation
| Field | Type | Description | |
|---|---|---|---|
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
| Field | Type | Description | |
|---|---|---|---|
id | string | required | |
asset_id | string | required | |
channel | "facebook" | "instagram" | "whatsapp" | "tiktok" | required | The channel: Facebook page, Instagram account, WhatsApp number or TikTok account. |
name | string | required | |
state | "on" | "off" | required | |
scope | string | required | Which comments it answers: one post, every post, a live, mentions… |
post_id | string or null | required |
Flow
| Field | Type | Description | |
|---|---|---|---|
id | string | required | |
name | string | required | |
steps | integer | required |
Figures
| Field | Type | Description | |
|---|---|---|---|
asset_id | string | required | |
channel | "facebook" | "instagram" | "whatsapp" | "tiktok" | required | The 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_wrote | integer | required | |
conversations_started | integer | required | |
messages_from_people | integer | required | |
bot_replies | integer | required | |
team_replies | integer | required | |
with_a_person_now | integer | required |