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
| Code | HTTP | Retryable | Meaning | Action |
|---|---|---|---|---|
| missing_authorization | 401 | No | The request carried no bearer credential. | Send the API key as Authorization: Bearer <key>. |
| invalid_key | 401 | No | The bearer key is not one we issued. | Check the whole key was copied, or create a new key in the console. |
| key_revoked | 401 | No | The bearer key was revoked. | Create a new key in the console and use it instead. |
| key_expired | 401 | No | The bearer key is past its expiry date. | Create a new key in the console and use it instead. |
| invalid_token | 401 | No | An OAuth access token failed verification. | Refresh the access token, then retry once with the new token. |
| organization_not_selected | 403 | No | The token is genuine but names no organization, so there is no balance to spend. | Re-authorize the connection and choose an organization. |
| organization_access_revoked | 403 | No | The token is valid, but its user has left the organization it acts for. | Re-authorize against an organization the user still belongs to. |
| connection_revoked | 401 | No | The connection the token was issued under has been revoked. | Re-authorize the connection; the old token will not work again. |
| forbidden | 403 | No | The 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_insufficient | 403 | No | A 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
| Code | HTTP | Retryable | Meaning | Action |
|---|---|---|---|---|
| invalid_request | 400 | No | The request does not match what the operation accepts. | Fix the field named in detail, then send the corrected request. |
| unsupported_platform | 400 | No | The platform named is not one this operation covers. | Use a platform this operation lists as supported. |
| unsupported_kind | 422 | No | A 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_deprecated | 400 | No | A 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_kind | 422 | No | A 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_long | 422 | No | The 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_found | 404 | No | Nothing with that identifier exists for this customer. | Check the id or handle; list your resources to find the right one. |
| comment_not_found | 404 | No | We 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_conflict | 409 | No | This 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_ready | 409 | Yes | A 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_ambiguous | 409 | No | Several advertisers carry that name. Nothing was charged. | Ask again with one of candidates' page_id or url. |
| collection_kind_mismatch | 409 | No | A Tracker of one kind was offered to a Collection of another kind. | Add this target to a Collection of its own kind. |
| collection_name_taken | 409 | No | Another of the customer's Collections already has this name. | Use the Collection in collection_id, or pick another name. |
Money
| Code | HTTP | Retryable | Meaning | Action |
|---|---|---|---|---|
| insufficient_balance | 402 | No | The balance does not cover the call. | Tell the Customer to top up the Balance, then repeat the same request. |
| max_credits_exceeded | 402 | No | The 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_exceeded | 402 | No | The call would pass the API Key's monthly Credit cap. | Wait until resets_at, or ask the Customer to raise the cap. |
Limits
| Code | HTTP | Retryable | Meaning | Action |
|---|---|---|---|---|
| rate_limit_exceeded | 429 | Yes | Requests are arriving too quickly on this credential. | Wait retry_after_seconds, then retry the same request. |
| concurrency_limit_exceeded | 429 | Yes | Too many Runs are already in flight for this organization. | Wait retry_after_seconds for a running Run to finish, then retry. |
| tracker_limit_exceeded | 409 | No | The customer is at the cap on active Trackers. | Pause or delete a Tracker, then retry. |
| collection_limit_exceeded | 409 | No | The customer is at the cap on Collections. | Delete a Collection you no longer use, then retry. |
| webhook_limit_exceeded | 409 | No | The customer is at the cap on webhook endpoints. | Delete an endpoint you no longer deliver to, then retry. |
| webhook_rotation_in_progress | 409 | Yes | The previous secret rotation's overlap window is still open. | Wait until overlap_expires_at, then rotate again. |
Upstream and ours
| Code | HTTP | Retryable | Meaning | Action |
|---|---|---|---|---|
| media_unavailable | 502 | No | We could not fetch the video's media. | Tell the Customer the video is deleted, private or blocked; pick another. |
| vendor_error | 502 | Yes | An upstream source failed while answering. | Retry with a backoff; nothing was charged. |
| source_unavailable | 503 | Yes | No 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_unavailable | 503 | Yes | The work could not be queued, so the Run failed uncharged. | Wait retry_after_seconds, then retry; nothing was charged. |
| internal_error | 500 | Yes | Something broke on our side. | Retry with a backoff, reusing any Idempotency-Key; report reference_id if it persists. |