# Errors

> For the complete documentation index, see [llms.txt](https://www.shortsintel.com/llms.txt). Every docs page is also available as markdown: add .md to its URL. To connect, read [agents.md](https://www.shortsintel.com/agents.md).

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](https://www.shortsintel.com/docs/concepts/errors) for the problem document's shape.

## Credentials

| Code | HTTP | Retryable | Meaning | Action |
| --- | --- | --- | --- | --- |
| [missing_authorization](https://www.shortsintel.com/docs/reference/errors/missing_authorization) | 401 | No | The request carried no bearer credential. | Send the API key as `Authorization: Bearer <key>`. |
| [invalid_key](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/key_revoked) | 401 | No | The bearer key was revoked. | Create a new key in the console and use it instead. |
| [key_expired](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/invalid_token) | 401 | No | An OAuth access token failed verification. | Refresh the access token, then retry once with the new token. |
| [organization_not_selected](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/unsupported_platform) | 400 | No | The platform named is not one this operation covers. | Use a platform this operation lists as supported. |
| [unsupported_kind](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/advertiser_ambiguous) | 409 | No | Several advertisers carry that name. Nothing was charged. | Ask again with one of `candidates`' `page_id`, `advertiser_id` or `url`. |
| [collection_kind_mismatch](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/tracker_limit_exceeded) | 409 | No | The customer is at the cap on active Trackers. | Pause or delete a Tracker, then retry. |
| [collection_limit_exceeded](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/vendor_error) | 502 | Yes | An upstream source failed while answering. | Retry with a backoff; nothing was charged. |
| [source_unavailable](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/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](https://www.shortsintel.com/docs/reference/errors/internal_error) | 500 | Yes | Something broke on our side. | Retry with a backoff, reusing any `Idempotency-Key`; report `reference_id` if it persists. |
