Skip to content
Docs

Errors And Limits

Every Instagram error in Unipile's types, what it means for what was sent, each account's pace, and write receipts.

Early access. Tell us what you're building and we'll set you up. Contact us

Errors are Unipile's problem JSON: { "type": "errors/…", "title", "status", "detail" }, with retry_after (seconds) and retry_at when waiting helps. detail says in words what happened and whether anything was done. Two exceptions answer { "error": "…", "message": "…" } instead: a missing or invalid API key (401) and an inactive subscription (402).

The rule to read every answer by: a 4xx means nothing was done on Instagram; a 5xx after a write was sent means not sure: check before sending it again.

Any Route#

HTTP Type Meaning
400 errors/invalid_parameters A field Lempile won't take (detail names it). Nothing was opened.
401 unauthorized (in error) Missing or invalid API key.
401 errors/disconnected_account Instagram signed the account out. Connect it again.
402 subscription_required (in error) The workspace has no active trial or subscription.
403 errors/insufficient_permissions The key lacks accounts.read (reads) or accounts.write (writes).
403 errors/account_restricted Instagram blocked the action, restricted the account, or asks for a check. Someone has to look at the account on Instagram.
403 errors/action_required The account waits for something done on Instagram itself (a check, a new sign-in); the answer's account_status and reason say what.
403 errors/feature_not_subscribed Connecting: Instagram isn't open to this workspace yet (early access). Nothing was done.
404 errors/resource_not_found No such account in this workspace, or no such chat, message, person or post.
429 errors/too_many_requests The account's pace, or Instagram's own "Try again later". Wait retry_after seconds. Nothing was done.
501 errors/feature_not_implemented Not done for Instagram (see Unipile Compatibility), or an account of another network on an Instagram-only route. Nothing was done.
503 errors/service_unavailable The account isn't ready yet, or its browser can't be reached right now. Nothing was done.
504 errors/request_timeout Instagram didn't answer in time (a read waits 100 seconds, a write 140). A read changed nothing: try again. A write: not sure.

Writes#

HTTP Type Meaning
400 errors/missing_idempotency_key, errors/invalid_idempotency_key Messages, new chats, comments, posts, follows and unfollows need an Idempotency-Key. Nothing was sent.
415 errors/unsupported_media_type A file Instagram doesn't take: send JPEG or PNG images, MP4 or MOV videos, or (in a message) M4A, AAC or MP3 audio. Nothing was sent.
409 errors/in_progress The same key is still running, or its outcome isn't known yet.
422 errors/idempotency_key_reused The key was used for another request. Nothing was sent.
422 errors/invalid_recipient No Instagram account by that name or id.
422 errors/user_unreachable Instagram won't let the account message this person (their settings, or a block).
422 errors/cant_send_message A message request is waiting for their answer: until they accept, one text message only.
502 errors/service_unavailable The browser's answer was lost after the write started: not sure.
504 errors/request_timeout Instagram didn't confirm in time: not sure if it was sent.

After a 502 or 504 on a write, read its receipt (below) before sending it again.

Pace#

Each account has its own pace, shared by every key that uses it. "A day" is the last 24 hours.

Write Per account
Start a chat 20 a day, 3 minutes apart
Send in a chat 80 a day, 20 seconds apart
Follow, unfollow 20 a day, 2 minutes apart
Comment 20 a day, 2 minutes apart
Like a post or comment 60 a day, 30 seconds apart
React to a message 60 a day
Create a post 3 a day
All writes together 10 an hour, 100 a day

A write past a limit answers 429:

JSON
{
  "type": "errors/too_many_requests",
  "title": "Too Many Requests",
  "status": 429,
  "detail": "Wait: this Instagram account's last message in a chat went out less than 20 seconds ago.",
  "code": "too_fast",
  "retry_at": "2026-11-25T17:41:28.000Z",
  "retry_after": 14
}

code says which limit: too_fast, daily_limit, hourly_limit or warmup_limit (below). When several apply, the answer names the one that frees up last, so a write sent again at retry_at isn't refused by another. Nothing was sent, and the refused write counts toward nothing. Dry runs aren't paced.

Warm-up#

A newly connected account starts slower, so Instagram doesn't see a new device go straight to messaging strangers. After a sign-in the account has a quiet period, then its limits grow week by week:

Write, a day Quiet Week 1 Week 2 Week 3 Week 4
Start a chat none 3 5 10 15
Send in a chat 10 20 40 60 80
Follow, unfollow none 5 10 15 20
Comment none 3 5 10 15
Like a post or comment 5 10 20 40 60
React to a message 10 20 30 45 60
Create a post none 1 1 2 3
Edit the profile none 1 2 2 2
All writes together 20 (4 an hour) 30 (5 an hour) 50 (6 an hour) 75 (8 an hour) 100 (10 an hour)
  • Quiet: 72 hours after a sign-in in the account's first week on Lempile, 24 hours after a later sign-in (a reconnect).
  • Weeks count from when the account was first added. From week 5 only the pace above applies.
  • While warming up, the time between two writes of a kind is twice the pace's (a new chat every 6 minutes, a message every 40 seconds).
  • Answering follow requests is never limited.

A write past a warm-up limit answers 429 with "code": "warmup_limit". retry_at is when it has room, counting the next phase. Dry runs and reads aren't limited.

Reads have no Lempile limit, but each one opens Instagram in the account's browser: read at a human rate.

When Instagram itself says "Try again later", that call answers 429 with retry_after: 86400: wait a day before writing from the account again. When it says "We restrict certain activity", the call answers 403 errors/account_restricted. Instagram's own word comes first: no pace above makes Instagram accept more.

Write Receipts#

An Idempotency-Key is 1 to 200 characters of A-Z a-z 0-9 . _ : -, scoped to your workspace. Messages, new chats, comments, posts, follows and unfollows need one. Likes, message reactions, answers to follow requests and profile edits take one; sent without one, Lempile makes one and gives it back in the answer's Idempotency-Key header, so every write has a receipt.

  • Same key, same request, after success: the first answer again, with Idempotent-Replayed: true. Nothing is sent.
  • Same key while the first runs, or after an unsure outcome: 409 errors/in_progress.
  • Same key after a definite failure (a 4xx): the request runs again.
  • Same key, another request: 422 errors/idempotency_key_reused.

GET /writes/{key} says what became of a write:

JSON
{
  "object": "WriteStatus",
  "key": "answer-jane-1",
  "state": "done",
  "status": 201,
  "response": { "object": "MessageSent", "message_id": "340282366841710301244276026398105347911_cAAAAB3xYz9wQkLmNo" }
}

state is done (sent: response is the answer), failed (nothing was sent: response is the problem), pending (still running, or not sure; response is null), or none (no write with that key: a dry run, for example). The browser's answer is kept 48 hours, also after the request stopped waiting.

After a not-sure post, Lempile checks the account's own profile itself: the post is there (done, with its post_id), or two complete reads of the profile, 15 and 30 minutes after the post, find nothing new (failed, 422 errors/not_sent: it can be sent again). While it checks, for 90 minutes at most, the receipt is pending with a detail and check_ends_by. When the check can't tell, the receipt stays pending: check on Instagram.

POST /writes/{key}/not-sent: after you checked on Instagram that a pending write isn't there, it becomes failed, its key can be sent again, and it stops counting toward the pace. While Lempile is still checking the profile for a post, it answers 409 with check_ends_by and a Retry-After header: read the receipt then. It also answers 409 with Retry-After for a post Lempile can't speak for yet (it restarted during the post), up to 2 hours after the post.

Was this page helpful?