Rate limits and sending
5 requests a second per workspace, whatever happens. Every reply is queued and sent at the channel’s safe pace.
5 requests a second
The limit is for the whole workspace: the API key and every app connected through MCP share it. A request over the limit is not counted and is answered at once:
Retry-After: 1
RateLimit-Limit: 5
RateLimit-Remaining: 0
{ "error": { "type": "rate_limit", "code": "rate_limited", "message": "At most 5 requests a second per workspace. Wait for Retry-After and send again.", "doc_url": "https://autoobot.com/developers/errors#rate_limited" }, "request_id": "req_…" }Every answer carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. Wait for Retry-After seconds, then send again:
async function autoobot(path, init = {}) {
for (let attempt = 0; attempt < 5; attempt++) {
const response = await fetch(`https://autoobot.com/api${path}`, {
...init,
headers: { Authorization: `Bearer ${process.env.AUTOOBOT_KEY}`, 'Content-Type': 'application/json', ...init.headers },
});
if (response.status !== 429) return response;
await new Promise((resolve) => setTimeout(resolve, Number(response.headers.get('Retry-After') || 1) * 1000));
}
throw new Error('Still rate limited');
}Replies go through the queue
Autoobot never sends a reply the moment you ask. It goes into the channel’s queue, the same one Autoobot’s own bot uses, and leaves at the pace each platform allows for that page, account or number. That is why a reply is answered 202 Accepted with the message sending; the webhook then tells message.sent or message.failed, and GET /api/messages/{id} shows its status.
| Limit | Answer |
|---|---|
| 100 of your replies waiting for one page, account or number | 429 queue_full |
| 30 automatic replies an hour in one conversation (two systems answering each other stop here) | 429 rate_limited |
| The person last wrote outside the channel’s reply window | 422 outside_reply_window |
| A person on your team took the conversation over | 409 conversation_paused |
| 20 requests with a wrong key in a minute from one address (blocked 15 minutes) | 429 ip_blocked |
Idempotency
Send an Idempotency-Key header with a POST or PATCH. The same key within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of doing it again, so a reply retried after a timeout is never sent twice. A key reused with another body is refused with 409 idempotency_conflict.
Pagination
Lists answer { "data": [...], "next_cursor": "…" }. Send next_cursor back as cursor for the next page; it is null at the end. limit is 1 to 100, 25 by default.