Quickstart

Five minutes from no key to replying to a person from your own code.

1. Activate API & MCP

In Autoobot, open API & MCP and activate the package for the workspace. Only a workspace admin sees this page.

2. Create the API key

On the same page press Create API key and copy it: it starts with abot_sk_ and is shown only once. Keep it on your server, never in a browser or an app people can download.

3. Read your conversations

Shell
curl "https://autoobot.com/api/conversations?limit=5" \
  -H "Authorization: Bearer $AUTOOBOT_KEY"
Answer
{
  "data": [
    {
      "id": "0b7c2f8e-4a51-4d0e-9a39-2a2f6c1d5e77",
      "asset_id": "c1e6…",
      "channel": "instagram",
      "kind": "message",
      "status": "open",
      "contact": { "id": "…", "name": "Sara", "username": "sara.styles", "avatar_url": null },
      "post": null,
      "bot": { "state": "active", "paused_until": null },
      "reply_window_ends_at": "2026-11-27T09:30:00.000Z",
      "last_message_at": "2026-11-26T09:30:00.000Z",
      "created_at": "2026-11-20T14:02:11.000Z"
    }
  ],
  "next_cursor": "WyIyMDI2LTExLTI2VDA5OjMwOjAwLjAwMFoiLCIwYjdj…"
}

4. Reply

The same call answers a direct message, or a comment (publicly under it). Add "private_reply": true on Facebook and Instagram comments to answer with a private message instead.

Shell
curl -X POST "https://autoobot.com/api/conversations/0b7c2f8e-4a51-4d0e-9a39-2a2f6c1d5e77/messages" \
  -H "Authorization: Bearer $AUTOOBOT_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-4512-shipped" \
  -d '{"text": "Hi Sara! Your order is on its way."}'

The answer is 202 Accepted with the message sending: Autoobot sends it from its queue at the channel’s safe pace. The webhook then tells message.sent (or message.failed with the reason). The Idempotency-Key makes a retried request safe: it is never sent twice.

5. Receive new messages

On the API & MCP page, set your webhook address (https) and press Send a test event. Every new message and comment now reaches it:

POST to your webhook
{
  "id": "evt_5f1c0a9e2b7d4c3a8e6f1b2c",
  "type": "message.received",
  "created_at": "2026-11-26T09:30:00.000Z",
  "workspace_id": "…",
  "data": {
    "asset": { "id": "c1e6…", "channel": "instagram", "type": "instagram_account", "name": "@rose.bakery" },
    "conversation": { "id": "0b7c2f8e-…", "kind": "message", "contact": { "name": "Sara" } },
    "message": { "id": "…", "direction": "in", "sender": "contact", "type": "text", "text": "Is the blue dress in stock?" }
  }
}

Check its signature before trusting it: see Webhooks › Signatures.

Let your system answer every message: in Autoobot, set the inbox’s automatic replies to Your system, or call PATCH /api/assets/{id}/automation with {"mode": "external"}. Autoobot then sends nothing automatic there.