Skip to the main content

Errors and rate limits

Every failure is one of 9 types. Branch on the type, never on the message.

Error types

Each type has one status. Branch on error.type; the message is for people.

Error body

{
  "success": false,
  "error": { "type": "rate_limited", "message": "Too many requests. Retry in 42 seconds." }
}
TypeStatusMeaning and fix
invalid_input400The request body or query failed validation. Read error.message, fix the field it names, and send the request again. Retrying unchanged will fail identically.
unauthorized401No key, an unreadable key, or a key that is no longer valid. Check the Authorization header. The message does not say which part was wrong.
forbidden_scope403The key is valid but does not carry the scope this endpoint requires. Issue a key with the scope named in the message. Scopes cannot be added to an existing key.
not_found404No resource with that id inside the team the key belongs to. Check the id and the workspace. A resource in another team is a 404.
conflict409The resource is not in a state that allows this call, or an idempotency key was replayed with a different body. Read the current state, then retry if the state allows it.
insufficient_credits402The balance does not cover the media this call would generate, or the balance is empty and the call runs a language model. Top up from $5, then retry. Nothing is charged and nothing is queued. Auto top-up in Settings, Billing keeps the balance above an amount you set.
usage_limit_reached429A team limit is reached: saved posts, automations or content pieces this month, connected accounts or workspaces. The limits are the same for every team. Wait for the month to roll over, or free a workspace or account. Retrying sooner returns the same error.
rate_limited429Too many requests in the sliding window for this endpoint group. Wait for the number of seconds in Retry-After, then retry. X-RateLimit-Reset carries the same moment as a timestamp.
internal_error500Something failed on our side. Retry with backoff. If the call spends credits, send the same Idempotency-Key so a partial success is not repeated.

Retries

  • Never retry invalid_input, forbidden_scope, usage_limit_reached or conflict unchanged.
  • Retry rate_limited after Retry-After seconds.
  • Retry internal_error with backoff, and send the same Idempotency-Key on calls that spend credits or publish.

Rate limits

Counted per key on a sliding window.

GroupRequestsWindowApplies to
Generations10300sEvery endpoint under /generations.
Posts60300sEvery endpoint under /posts.
Content studio30300sEvery POST /content/* render endpoint.
Everything else600300sReads, workspaces, accounts, automations, influencers, assets, analytics and webhooks.

Headers

  • X-RateLimit-Limit: Requests allowed in the window for this endpoint group.
  • X-RateLimit-Remaining: Requests left in the current window.
  • X-RateLimit-Reset: Unix seconds at which the window rolls over.
  • Retry-After: Seconds to wait. Sent on a 429 only.

Read the headers instead of counting calls. The CLI and the MCP server follow these rules for you.

Describe it. Looptake writes, renders, scores and posts it to TikTok, Reels and Shorts.

Credits never expire. Top up from $5.