Skip to content

API reference

Errors

Every stable code a problem response can carry, with its HTTP status. The type URL in each response links to the code's page. See the errors guide for the problem document's shape.

Credentials

CodeHTTPMeaning
missing_authorization401The request carried no bearer credential.
invalid_key401The bearer key is not one we issued.
key_revoked401The bearer key was revoked.
invalid_token401An OAuth access token failed verification.
organization_not_selected403The token is genuine but names no organization, so there is no balance to spend.
organization_access_revoked403The token is valid, but its user has left the organization it acts for.
connection_revoked401The connection the token was issued under has been revoked.
forbidden403The credential is good, but its user's role cannot do this.

The request itself

CodeHTTPMeaning
invalid_request400The request does not match what the operation accepts.
unsupported_platform400The platform named is not one this operation covers.
unsupported_kind422A well-formed request for something this API does not serve yet. Nothing was run or charged.
kind_deprecated400A new Tracker or Collection of a kind that is no longer offered. Nothing was created or charged.
video_too_long422The video is over the 10-minute cap that analysis and downloads share.
not_found404Nothing with that identifier exists for this customer.
idempotency_conflict409This Idempotency-Key was already used with a different payload.
run_not_ready409A read that needs a settled Run was asked of one that has nothing to serve yet.
advertiser_ambiguous409Several Facebook Pages carry that advertiser name. Nothing was charged.
collection_kind_mismatch409A Tracker of one kind was offered to a Collection of another kind.
collection_name_taken409Another of the customer's Collections already has this name.

Money

CodeHTTPMeaning
insufficient_balance402The balance does not cover the call.

Limits

CodeHTTPMeaning
rate_limit_exceeded429Requests are arriving too quickly on this credential.
concurrency_limit_exceeded429Too many Runs are already in flight for this organization.
tracker_limit_exceeded409The customer is at the cap on active Trackers.
collection_limit_exceeded409The customer is at the cap on Collections.
webhook_limit_exceeded409The customer is at the cap on webhook endpoints.
webhook_rotation_in_progress409The previous secret rotation's overlap window is still open.

Upstream and ours

CodeHTTPMeaning
media_unavailable502We could not fetch the video's media.
vendor_error502An upstream source failed while answering.
source_unavailable503No source can answer this read right now, or it is switched off while we fix it. Never charged.
service_unavailable503The work could not be queued, so the Run failed uncharged.
internal_error500Something broke on our side.