Skip to content
For AI agents: a documentation index is available at /llms.txt. Every docs page is also available as markdown: add .md to its URL. To connect, read /agents.md.

API reference

Errors

Every stable code a problem response can carry, with its HTTP status, whether retrying can succeed, and the next step. Every problem body carries the last two as retryable and action. The type URL in each response links to the code's page. See the errors guide for the problem document's shape.

Credentials

CodeHTTPRetryableMeaningAction
missing_authorization401NoThe request carried no bearer credential.Send the API key as Authorization: Bearer <key>.
invalid_key401NoThe bearer key is not one we issued.Check the whole key was copied, or create a new key in the console.
key_revoked401NoThe bearer key was revoked.Create a new key in the console and use it instead.
key_expired401NoThe bearer key is past its expiry date.Create a new key in the console and use it instead.
invalid_token401NoAn OAuth access token failed verification.Refresh the access token, then retry once with the new token.
organization_not_selected403NoThe token is genuine but names no organization, so there is no balance to spend.Re-authorize the connection and choose an organization.
organization_access_revoked403NoThe token is valid, but its user has left the organization it acts for.Re-authorize against an organization the user still belongs to.
connection_revoked401NoThe connection the token was issued under has been revoked.Re-authorize the connection; the old token will not work again.
forbidden403NoThe credential is good, but its user's role cannot do this.Ask an organization owner or admin to do this, or to grant the role.
key_scope_insufficient403NoA read-only key tried a paid call or a write.Use a full API key, or send estimate=true to quote it.

The request itself

CodeHTTPRetryableMeaningAction
invalid_request400NoThe request does not match what the operation accepts.Fix the field named in detail, then send the corrected request.
unsupported_platform400NoThe platform named is not one this operation covers.Use a platform this operation lists as supported.
unsupported_kind422NoA well-formed request for something this API does not serve yet. Nothing was run or charged.Do not repeat this request; nothing was charged. Use an operation that serves this kind.
kind_deprecated400NoA new Tracker or Collection of a kind that is no longer offered. Nothing was created or charged.Track the Creator, a Hashtag or a Sound instead of a Video.
focus_unsupported_kind422NoA Focus was sent for a Tracker kind that cannot take one. Nothing was created or charged.Send the Tracker without focus, or pick a kind in supported_kinds.
video_too_long422NoThe video is over the 10-minute cap that analysis and downloads share.Pick a video under max_duration_seconds; this one will never qualify.
not_found404NoNothing with that identifier exists for this customer.Check the id or handle; list your resources to find the right one.
comment_not_found404NoWe do not hold that comment as a top-level comment of that video, so its replies cannot be read.Read the video's comments page first and pass one of its item ids as comment_id.
idempotency_conflict409NoThis Idempotency-Key was already used with a different payload.Resend the original payload with this key, or use a new key for the new payload.
run_not_ready409YesA read that needs a settled Run was asked of one that has nothing to serve yet.Poll the Run until it settles, then read again. If it failed, start a new Run.
advertiser_ambiguous409NoSeveral advertisers carry that name. Nothing was charged.Ask again with one of candidates' page_id or url.
collection_kind_mismatch409NoA Tracker of one kind was offered to a Collection of another kind.Add this target to a Collection of its own kind.
collection_name_taken409NoAnother of the customer's Collections already has this name.Use the Collection in collection_id, or pick another name.

Money

CodeHTTPRetryableMeaningAction
insufficient_balance402NoThe balance does not cover the call.Tell the Customer to top up the Balance, then repeat the same request.
max_credits_exceeded402NoThe call could cost more than its max_credits.Narrow the call until estimate_credits fits, or raise max_credits if the Customer allows.
key_spend_cap_exceeded402NoThe call would pass the API Key's monthly Credit cap.Wait until resets_at, or ask the Customer to raise the cap.

Limits

CodeHTTPRetryableMeaningAction
rate_limit_exceeded429YesRequests are arriving too quickly on this credential.Wait retry_after_seconds, then retry the same request.
concurrency_limit_exceeded429YesToo many Runs are already in flight for this organization.Wait retry_after_seconds for a running Run to finish, then retry.
tracker_limit_exceeded409NoThe customer is at the cap on active Trackers.Pause or delete a Tracker, then retry.
collection_limit_exceeded409NoThe customer is at the cap on Collections.Delete a Collection you no longer use, then retry.
webhook_limit_exceeded409NoThe customer is at the cap on webhook endpoints.Delete an endpoint you no longer deliver to, then retry.
webhook_rotation_in_progress409YesThe previous secret rotation's overlap window is still open.Wait until overlap_expires_at, then rotate again.

Upstream and ours

CodeHTTPRetryableMeaningAction
media_unavailable502NoWe could not fetch the video's media.Tell the Customer the video is deleted, private or blocked; pick another.
vendor_error502YesAn upstream source failed while answering.Retry with a backoff; nothing was charged.
source_unavailable503YesNo source can answer this read right now, or it is switched off while we fix it. Never charged.Wait retry_after_seconds, then retry; do not treat this as an empty result.
service_unavailable503YesThe work could not be queued, so the Run failed uncharged.Wait retry_after_seconds, then retry; nothing was charged.
internal_error500YesSomething broke on our side.Retry with a backoff, reusing any Idempotency-Key; report reference_id if it persists.