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.
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 BI | Campaigns, Stats |
| Launch campaigns from a script, a bot or your CRM | Create campaigns |
| Raise bids, pause losers, top up winners automatically | Manage campaigns |
| Know the moment a campaign is approved, declined or runs out of budget | Webhooks |
| Count leads and sales from your tracker against each campaign | Conversions |
Base URL
https://orbitoads.pro/api/v1Every 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.
export ORBITO_API_KEY="orb_…"2. List the cabinets the key sees
curl -s https://orbitoads.pro/api/v1/account/info \
-H "X-API-Key: $ORBITO_API_KEY"{
"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
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)
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:
{ "success": true, "data": { "id": 81234, "type": "create", "status": "pending", "account_id": 53, "total": 1, "ad_ids": [] } }5. Wait for the task
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:
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
ad_idis unique only inside a cabinet. Telegram reuses ad ids across cabinets. Store and look up campaigns by the pair(account_id, ad_id), and passaccount_idwhenever a key sees more than one cabinet.- Send an
Idempotency-Keyon 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. - Create, copy and bulk return a task. Poll
GET /v1/tasks/{id}until it finishes. See Tasks. - Money fields are strings (
"spent": "3.541000") to keep exact decimals. Parse them as decimals before doing arithmetic. - Branch on
code, showerror. Every error has a stable machine-readablecodeand a human sentence inerror. See Errors.
Response shape
{ "success": true, "data": { … }, "meta": { … } }
{ "success": false, "error": "Human-readable message", "code": "MACHINE_CODE", "request_id": "…" }Where to go next
- Keys and access — read-only vs campaign-managing keys, agency teams.
- Build with Claude and other AI assistants — let a coding agent write the integration.
- OpenAPI spec — import into Postman, Insomnia or a client generator.
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.
curl -X GET https://orbitoads.pro/api/v1/account/info \
-H 'X-API-Key: YOUR_ORBITO_KEY'{
"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
| Method | Route | Parameters | Request content | Response codes |
|---|---|---|---|---|
| GET | /api/v1/account/info | — | — | 200, 401, 429 |
| GET | /api/v1/campaigns | account_id, status, title, bot_username, promote_domain, promote_domain_mode, type, limit, cursor, offset, sortBy, sortOrder | — | 200, 400, 401, 404, 429 |
| POST | /api/v1/campaigns | Idempotency-Key | application/json · CreateSingleRequest | CreateBatchRequest | 202, 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
| Field | Documented value |
|---|---|
| X-API-Key | HTTP header |
| Content-Type | application/json |
| 202 | Location, Retry-After |
Source · Data source
CampaignStatus
| Field | Field type |
|---|---|
| CampaignStatus | Active | In Review | Declined | On Hold | Stopped | Paused | Deleted |
Source · Data source
Reference revision