Orbitoads
Browse documentation

Orbito Ads API — overview and quickstart

Use a server-side key to read the account list. Select one account and request its campaigns. For a first write, create a paused draft with a fresh idempotency key and follow the returned task identifier.

Markdown

The Orbito Ads API gives your code the same control over your Telegram Ads cabinets that you have in the Orbito Ads panel. One key, one base URL, the same calls for Euro, TON and Stars cabinets.

You want to…Use
Pull campaigns and stats into a dashboard or BICampaigns, Stats
Launch campaigns from a script, a bot or your CRMCreate campaigns
Raise bids, pause losers, top up winners automaticallyManage campaigns
Know the moment a campaign is approved, declined or runs out of budgetWebhooks
Count leads and sales from your tracker against each campaignConversions

Base URL

Example
https://orbitoads.pro/api/v1

Every request carries your key in the X-API-Key header. Request and response bodies are JSON. All times are UTC.

Quickstart

1. Create a key

In the panel open API & Webhooks → + New key (Pro and Agency plans). Choose which cabinets the key reaches. To create and change campaigns, tick Allow managing campaigns — without it the key only reads. Copy the key: it is shown once.

Example
export ORBITO_API_KEY="orb_…"

2. List the cabinets the key sees

Example
curl -s https://orbitoads.pro/api/v1/account/info \
  -H "X-API-Key: $ORBITO_API_KEY"
Example
{
  "success": true,
  "data": [
    {
      "id": 53,
      "name": "Main cabinet",
      "cabinet_type": "euro",
      "is_active": true,
      "access_level": "owner",
      "currency": "EUR",
      "balance": "250.00",
      "balance_updated_at": "2026-10-08T09:40:12.000Z",
      "min_budget": 1,
      "features": { "ad_button": true, "crypto_filters": true }
    }
  ]
}

Keep id — it is the account_id every other call uses. All money in a cabinet is in its currency.

3. Read campaigns

Example
curl -s "https://orbitoads.pro/api/v1/campaigns?account_id=53&status=Active&limit=50" \
  -H "X-API-Key: $ORBITO_API_KEY"

4. Create a campaign (switched off, so nothing is spent)

Example
curl -s -X POST https://orbitoads.pro/api/v1/campaigns \
  -H "X-API-Key: $ORBITO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "account_id": 53,
    "title": "API test",
    "text": "Join the channel for daily market notes",
    "promote_url": "https://t.me/yourchannel",
    "cpm": 1.5,
    "budget": 0,
    "active": false,
    "target_type": "channels",
    "channels": ["@durov"]
  }'

Creating talks to Telegram, so it runs in the background. You get 202 Accepted and a task:

Example
{ "success": true, "data": { "id": 81234, "type": "create", "status": "pending", "account_id": 53, "total": 1, "ad_ids": [] } }

5. Wait for the task

Example
curl -s https://orbitoads.pro/api/v1/tasks/81234 -H "X-API-Key: $ORBITO_API_KEY"

When status is completed, ad_ids holds the new campaign’s id. Now you can fund it and switch it on:

Example
curl -s -X POST https://orbitoads.pro/api/v1/campaigns/90412/budget \
  -H "X-API-Key: $ORBITO_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{ "account_id": 53, "action": "add", "amount": 5 }'

curl -s -X POST "https://orbitoads.pro/api/v1/campaigns/90412/resume?account_id=53" \
  -H "X-API-Key: $ORBITO_API_KEY"

Telegram reviews every new ad before it runs; the campaign’s status shows where it is (see statuses). A webhook tells you the moment it changes.

Five rules every integration follows

  1. ad_id is unique only inside a cabinet. Telegram reuses ad ids across cabinets. Store and look up campaigns by the pair (account_id, ad_id), and pass account_id whenever a key sees more than one cabinet.
  2. Send an Idempotency-Key on create, copy, bulk and budget calls — a fresh UUID per operation, the same one when you retry it. A retry then never creates a second campaign or moves money twice. See Idempotency.
  3. Create, copy and bulk return a task. Poll GET /v1/tasks/{id} until it finishes. See Tasks.
  4. Money fields are strings ("spent": "3.541000") to keep exact decimals. Parse them as decimals before doing arithmetic.
  5. Branch on code, show error. Every error has a stable machine-readable code and a human sentence in error. See Errors.

Response shape

Example
{ "success": true, "data": { … }, "meta": { … } }
{ "success": false, "error": "Human-readable message", "code": "MACHINE_CODE", "request_id": "…" }

Where to go next

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 · cURL
curl -X GET https://orbitoads.pro/api/v1/account/info \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
Example · JSON
{
  "success": true,
  "data": [
    {
      "id": 7401,
      "name": "Example language school",
      "cabinet_type": "euro",
      "is_active": true,
      "access_level": "manager",
      "currency": "EUR",
      "balance": "82.50",
      "balance_updated_at": "2026-11-03T12:00:00Z",
      "min_budget": 1,
      "features": {
        "ad_button": true,
        "crypto_filters": false
      }
    }
  ]
}

Implementation notes

Your first request

Send GET /api/v1/account/info with X-API-Key. Choose an id from data and use it as account_id in the next request. All identifiers and values in the examples are fictional.

Account and campaign identifiers

Store account_id and ad_id together. Different accounts can contain the same ad_id. Include account_id to select the intended record when a key reaches more than one account.

Accepted work and completion

Create, copy and bulk requests return HTTP 202 with a task id. Poll GET /api/v1/tasks/{id}, respecting Retry-After. Check failed and errors even when status is completed.

Operations and fields

GET /api/v1/account/info GET /api/v1/campaigns POST /api/v1/campaigns GET /api/v1/tasks/{id}

  • GET /api/v1/account/info
  • GET /api/v1/campaigns
  • POST /api/v1/campaigns
  • GET /api/v1/tasks/{id}

Request example

GET /api/v1/campaigns?limit=10&cursor= 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/account/info——200, 401, 429
GET/api/v1/campaignsaccount_id, status, title, bot_username, promote_domain, promote_domain_mode, type, limit, cursor, offset, sortBy, sortOrder—200, 400, 401, 404, 429
POST/api/v1/campaignsIdempotency-Keyapplication/json · CreateSingleRequest | CreateBatchRequest202, 400, 401, 403, 404, 409, 422, 429, 503
GET/api/v1/tasks/{id}id—200, 400, 401, 404

Source · Data source

Schema fields and limits · API quickstart

FieldDocumented value
X-API-KeyHTTP header
Content-Typeapplication/json
202Location, Retry-After

Source · Data source

CampaignStatus

FieldField type
CampaignStatusActive | In Review | Declined | On Hold | Stopped | Paused | Deleted

Source · Data source

Reference revision

Pro Panel
Pro Panel