Orbitoads
Browse documentation

Errors

Read the HTTP status and the machine-readable error code together. A missing key returns 401. Correct invalid input before retrying a write and honour the retry delay when a rate limit is reached.

Markdown

Format

Every error has the same shape:

Example
{
  "success": false,
  "error": "cpm must be greater than 0",
  "code": "VALIDATION_ERROR",
  "param": "campaigns[2].cpm",
  "request_id": "6f1c2a7e-3b0e-4f39-9a52-0c8d7f1e2b44"
}
FieldAlwaysMeaning
erroryesA sentence a person can read. Show it; don’t parse it — wording can improve.
codeyes on all v1 errorsStable, machine-readable. Branch on this.
paramon input errorsThe field that was wrong, as a path: cpm, campaigns[2].channels[0], account_id.
request_idon most errorsSame as the X-Request-Id response header. Quote it to support.

Some errors add context: min_cpm and currency when Telegram refuses a bid as too low, missing with UNKNOWN_AD_IDS, limit with QUEUE_FULL.

HTTP status codes

StatusMeaningRetry?
200Done—
202Accepted, running in the background — poll the task—
400The request is wrong (field, value, missing account_id) — or Telegram refused the changeNo — fix the request
401No key, bad key, or the key reaches no cabinetNo
403The key or plan isn’t allowed to do thisNo
404Not found among the cabinets this key reachesNo
409Conflict with the current state (cabinet locked, Telegram session expired, same request in progress)Sometimes — see the code
413File too largeNo
422Idempotency-Key reused for a different requestNo — use a new key
429Rate limit or queue fullYes, after Retry-After seconds
500Our bug — already loggedRead the state first, then retry with backoff
503Temporarily unavailableYes, after Retry-After

Codes

Authentication and access

CodeHTTPWhat to do
API_KEY_MISSING401Send X-API-Key.
API_KEY_INVALID401The key is wrong, revoked or expired. Create a new one.
NO_ACCOUNTS401The key reaches no active cabinet right now (cabinet deactivated, access removed).
FORBIDDEN403This key type isn’t allowed for its owner.
READ_ONLY_KEY403Turn on Manage campaigns for the key in the panel.
WRITE_NOT_ALLOWED403This key type (issued by Orbito Ads for partners) never writes.
VIEW_ONLY_ACCESS403Your access to this cabinet is Viewer. Ask the agency owner for Manager.
FEATURE_NOT_AVAILABLE403The plan doesn’t include this action (the response names the feature).
SUBSCRIPTION_REQUIRED403The cabinet’s owner has no active subscription.
ACCOUNT_INACTIVE403The cabinet is deactivated.

Finding things

CodeHTTPWhat to do
ACCOUNT_ID_REQUIRED400The key reaches several cabinets (or this ad_id exists in several) — pass account_id.
ACCOUNT_NOT_FOUND404That account_id isn’t reachable with this key. Check GET /v1/account/info.
CAMPAIGN_NOT_FOUND404No such campaign in the key’s cabinets (or it is deleted).
TASK_NOT_FOUND404No such task for this key’s owner.
NOT_FOUND404No stats for this campaign and period.
UNKNOWN_AD_IDS400Some ad_ids in a bulk call aren’t campaigns of that cabinet; missing lists them.

Input

CodeHTTPWhat to do
VALIDATION_ERROR400param names the field; error says what’s wrong. Unknown fields are rejected too — check spelling.
UNSUPPORTED_MEDIA400Upload JPG, PNG, GIF, WEBP or MP4 in the file field.
FILE_TOO_LARGE413Upload a smaller file (10 MB at most).

Telegram and cabinet state

CodeHTTPWhat to do
PLATFORM_REJECTED400Telegram refused the change; error carries its reason. With a low bid you also get param: "cpm", min_cpm and currency.
BUDGET_UNCHANGED400Telegram accepted the top-up but the campaign’s budget didn’t move. Check the cabinet balance (GET /v1/account/info).
INSUFFICIENT_AD_BALANCE400You asked to withdraw more than the campaign has. Withdraw less, or use withdraw_all.
CABINET_AUTH_EXPIRED409The cabinet’s Telegram session expired. The owner reconnects it in the panel; then retry.
CABINET_LOCKED409The cabinet is under automatic management; manual changes are blocked.

Limits and retries

CodeHTTPWhat to do
RATE_LIMITED429Wait Retry-After seconds. See Rate limits.
QUEUE_FULL429The cabinet already has 5 operations queued. Wait for a task to finish, then retry (same Idempotency-Key is fine).
IDEMPOTENCY_KEY_REQUIRED400Add an Idempotency-Key header.
IDEMPOTENCY_KEY_INVALID400Use 8–255 characters; a UUID is ideal.
IDEMPOTENCY_KEY_REUSED422That key was used for a different request — new operation, new key.
IDEMPOTENCY_IN_PROGRESS409The first request with this key is still running. Retry in a few seconds.
IDEMPOTENCY_UNAVAILABLE503Nothing was done. Retry with the same key.
INGEST_DISABLED403Turn on Receive postbacks for the key (Conversions).
INTERNAL_ERROR500Our side. Check the state with a GET before retrying a write; contact @orbitoads with the request_id if it persists.

Retrying safely

  • 4xx — don’t retry unchanged; fix the request. (A 4xx never consumes your Idempotency-Key, so you can retry the fixed request with the same key.)
  • 429 / 503 — retry after Retry-After.
  • 5xx after a write — the change may or may not have reached Telegram. Retrying with the same Idempotency-Key returns the same 5xx (by design — it prevents a double action). GET the campaign to see what happened, then decide; if you retry, use a new key.
  • Network timeout on a write — retry with the same Idempotency-Key. If the first attempt went through you get its result; if it didn’t, the operation runs now.

API reference

The full advertising contract requires a dedicated provider credential for this workspace. Use your Orbito API key for client calls. Account orders, provisioning and external billing are separate workflows.

Example · JSON
{
  "httpStatus": 400,
  "body": {
    "success": false,
    "error": "Choose a positive CPM.",
    "code": "VALIDATION_ERROR",
    "param": "cpm",
    "request_id": "example-request-013"
  }
}

HTTP

CodeHTTP
API_KEY_MISSING401
API_KEY_INVALID401
NO_ACCOUNTS401
FORBIDDEN403
READ_ONLY_KEY403
WRITE_NOT_ALLOWED403
VIEW_ONLY_ACCESS403
FEATURE_NOT_AVAILABLE403
SUBSCRIPTION_REQUIRED403
ACCOUNT_INACTIVE403
ACCOUNT_ID_REQUIRED400
ACCOUNT_NOT_FOUND404
CAMPAIGN_NOT_FOUND404
TASK_NOT_FOUND404
NOT_FOUND404
UNKNOWN_AD_IDS400
VALIDATION_ERROR400
UNSUPPORTED_MEDIA400
FILE_TOO_LARGE413
PLATFORM_REJECTED400
BUDGET_UNCHANGED400
INSUFFICIENT_AD_BALANCE400
CABINET_AUTH_EXPIRED409
CABINET_LOCKED409
RATE_LIMITED429
QUEUE_FULL429
IDEMPOTENCY_KEY_REQUIRED400
IDEMPOTENCY_KEY_INVALID400
IDEMPOTENCY_KEY_REUSED422
IDEMPOTENCY_IN_PROGRESS409
IDEMPOTENCY_UNAVAILABLE503
INGEST_DISABLED403
INTERNAL_ERROR500

Implementation notes

Read the error envelope

A failure contains success=false and error. Use code for programmatic handling and request_id for support. param can identify an invalid field, missing can list unknown ad ids, and min_cpm and currency can accompany a rejected bid.

Choose a retry by status

Fix input for 400, credentials for 401 and access rights for 403. Verify the account and ad ids on 404. Handle 409 by its code. Respect Retry-After on quota and transient failures. A 422 idempotency conflict requires a new identifier for a genuinely new operation.

Operations and fields

error code param request_id 401 403 409 422 429

  • error
  • code
  • param
  • request_id
  • 401
  • 403
  • 409
  • 422
  • 429

Request example

GET /api/v1/campaigns/{ad_id}?account_id={account_id} HTTP/1.1 Host: orbitoads.pro X-API-Key: {key}

Schema fields and limits

This table follows the public v1 contract. Parameter and field names are case-sensitive. For each operation, the HTTP response codes distinguish a successful result, input validation and access checks. The linked specification defines the full request and response shapes.

Protocol reference

MethodRouteParametersRequest contentResponse codes
GET/api/v1/campaigns/{ad_id}ad_id, account_id—200, 400, 401, 404, 429
POST/api/v1/mediaaccount_idmultipart/form-data · file, account_id200, 400, 401, 403, 413
POST/api/v1/campaignsIdempotency-Keyapplication/json · CreateSingleRequest | CreateBatchRequest202, 400, 401, 403, 404, 409, 422, 429, 503

Source · Data source

Schema fields and limits · Reading API errors

FieldDocumented value
errorstring
codestring
paramstring | null
request_idX-Request-Id
HTTP 429Retry-After

Source · Data source

Error

FieldField type
successfalse
errorstring
codestring
paramstring
request_idstring
min_cpmnumber
currencystring
missingarray · [integer]
limitinteger

Source · Data source

Reference revision

Pro Panel
Pro Panel