# Campaigns — list and read

[Orbito Ads · English · HTML](https://orbitoads.pro/docs/api/campaigns/)

Sources checked · 2026-11-27

### Browse documentation



[All documentation](/docs/) 
Get started

- [API quickstart](/docs/api/)
- [Keys and cabinet permissions](/docs/api/authentication/)
- [Using the API reference with an assistant](/docs/api/ai-assistants/)

Concepts

- [Reading API errors](/docs/api/errors/)
- [Request and event limits](/docs/api/rate-limits/)
- [Retrying a single operation](/docs/api/idempotency/)
- [Tracking a queued operation](/docs/api/tasks/)
- [Stepping through campaign pages](/docs/api/pagination/)

API reference

- [Accessible advertising accounts](/docs/api/accounts/)
- [Looking up a campaign](/docs/api/campaigns/)
- [Creating campaigns and media](/docs/api/create-campaigns/)
- [Changing existing campaigns](/docs/api/manage-campaigns/)
- [Campaign and account statistics](/docs/api/stats/)
- [Targeting dictionaries and groups](/docs/api/targeting/)

Integrations

- [Receiving campaign events](/docs/api/webhooks/)
- [Sending confirmed conversions](/docs/api/conversions/)
- [API versions and changes](/docs/api/changelog/)

Machine-readable

- [OpenAPI · YAML](/docs/api/openapi.yaml)
- [OpenAPI · JSON](/docs/api/openapi.json)
- [llms.txt](/en/docs/llms.txt)
- [llms-full.txt](/en/docs/llms-full.txt)



[All documentation](/docs/) 
Get started

- [API quickstart](/docs/api/)
- [Keys and cabinet permissions](/docs/api/authentication/)
- [Using the API reference with an assistant](/docs/api/ai-assistants/)

Concepts

- [Reading API errors](/docs/api/errors/)
- [Request and event limits](/docs/api/rate-limits/)
- [Retrying a single operation](/docs/api/idempotency/)
- [Tracking a queued operation](/docs/api/tasks/)
- [Stepping through campaign pages](/docs/api/pagination/)

API reference

- [Accessible advertising accounts](/docs/api/accounts/)
- [Looking up a campaign](/docs/api/campaigns/)
- [Creating campaigns and media](/docs/api/create-campaigns/)
- [Changing existing campaigns](/docs/api/manage-campaigns/)
- [Campaign and account statistics](/docs/api/stats/)
- [Targeting dictionaries and groups](/docs/api/targeting/)

Integrations

- [Receiving campaign events](/docs/api/webhooks/)
- [Sending confirmed conversions](/docs/api/conversions/)
- [API versions and changes](/docs/api/changelog/)

Machine-readable

- [OpenAPI · YAML](/docs/api/openapi.yaml)
- [OpenAPI · JSON](/docs/api/openapi.json)
- [llms.txt](/en/docs/llms.txt)
- [llms-full.txt](/en/docs/llms-full.txt)



[Orbito Ads](/en/) [Documentation](/docs/) [API](/docs/api/)



Read the campaign list with status and destination filters or request an individual record and its history. Identify each campaign by both account_id and ad_id because ad IDs can repeat in different accounts.


[Markdown](/docs/api/campaigns.md)



A campaign is one Telegram ad. It is identified by **`(account_id, ad_id)`**  — Telegram reuses `ad_id` across cabinets, so `ad_id` alone is not unique.



## The campaign object



`GET /v1/campaigns/{ad_id}` returns:


Example

```
{
  "ad_id": 90412,
  "account_id": 53,
  "title": "API test",
  "text": "Join the channel for daily market notes",
  "status": "Active",
  "active": true,
  "promote_url": "https://t.me/yourchannel",
  "tme_path": "yourchannel",
  "target_type": "channels",
  "targets": ["durov"],
  "cpm": "1.50",
  "budget": "3.54100",
  "spent": "1.45900",
  "daily_budget": null,
  "views": 1043,
  "opens": 0,
  "clicks": 12,
  "actions": 4,
  "ctr": "1.15",
  "cvr": "33.33",
  "cpc": "0.1215833333",
  "cpa": "0.3647500000",
  "views_per_user": 1,
  "schedule": {
    "days": { "mon": [9, 10, 11, 12, 13, 14, 15, 16, 17], "tue": [9, 10, 11, 12, 13, 14, 15, 16, 17],
              "wed": [9, 10, 11, 12, 13, 14, 15, 16, 17], "thu": [9, 10, 11, 12, 13, 14, 15, 16, 17],
              "fri": [9, 10, 11, 12, 13, 14, 15, 16, 17], "sat": [], "sun": [] },
    "timezone": "+03:00"
  },
  "has_media": false,
  "media_type": null,
  "button": null,
  "website_name": null,
  "group_id": 7,
  "auto_cpm_enabled": false,
  "date": "1791364800",
  "synced_at": "2026-10-08T10:29:41.000Z",
  "status_changed_at": "2026-10-08T10:31:07.112Z"
}
```

| Field | Meaning |
| --- | --- |
| `title` | Your internal name for the ad. |
| `text` | The ad text people see. |
| `status` | What Telegram is doing with the ad — see [Statuses](/docs/api/campaigns/#doc-note-statuses). |
| `active` | What you asked for: `true` = should run. A campaign with `active: true` and status `Stopped` resumes as soon as it has budget again. |
| `promote_url` / `tme_path` | What the ad leads to: a website URL, or a `t.me/<tme_path>` link (channel, bot, mini-app, post). |
| `target_type` | `channels`, `bots`, `search` or `users` — see [Create campaigns](/docs/api/create-campaigns/). |
| `targets` | Usernames the ad targets (channels or bots), when known. |
| `cpm` | Bid per 1,000 views, in the cabinet’s currency. |
| `budget` | Money **left** on the campaign. `budget + spent` is everything it was given. |
| `spent` | Money spent so far. |
| `daily_budget` | Daily spending cap, if one is set. |
| `views`, `clicks`, `actions`, `opens` | Lifetime counters. `actions` are platform actions (joins, bot starts) — not your conversions; for those see [Conversions](/docs/api/conversions/). |
| `ctr`, `cvr` | Percentages: `"1.15"` means 1.15 %. |
| `cpc`, `cpa` | Cost per click and per action. |
| `views_per_user` | How many times one person can see the ad (1–4). |
| `schedule` | Weekdays and hours the ad is shown, or `null` — it runs around the clock. See [Schedule](/docs/api/manage-campaigns/#doc-note-schedule). |
| `group_id` | The campaign’s group in the panel, if any. |
| `auto_cpm_enabled` | Orbito Ads’s Auto CPM manages the bid. |
| `date` | When the ad was created: unix seconds, as a string. |
| `status_changed_at` | Last status change. Not touched by stats updates — good for “what changed since”. |
| `synced_at` | When the ad’s own settings — `schedule`, `text`, `views_per_user`, targeting — were last read from Telegram. See [Freshness](/docs/api/campaigns/#doc-heading-freshness). |


**Money fields are decimal strings**  (`cpm`, `budget`, `spent`, `ctr`, `cvr`, `cpc`, `cpa`) so decimals stay exact. Counters (`views`, `clicks`, `actions`, `opens`) are numbers. All money is in the cabinet’s currency (see [Cabinets](/docs/api/accounts/)).



## Statuses


| Status | Meaning | What you can do |
| --- | --- | --- |
| `Active` | Running. | Pause, change bid, add budget. |
| `In Review` | Waiting for Telegram’s review; not shown yet. | Wait — a webhook tells you when it changes. |
| `Declined` | Telegram rejected the ad. | Edit the text or link (resubmits), or create a new one. |
| `On Hold` | Switched off — by you or an automation rule. | Resume. |
| `Stopped` | Budget used up. | Add budget; it runs again if `active` is `true`. |
| `Paused` | Paused by Telegram for the whole cabinet (rare). | Contact [@orbitoads](https://t.me/orbitoads). |
| `Deleted` | Removed. Kept in history, hidden from lists. | — |



## GET /v1/campaigns



Campaigns of every cabinet the key reaches.


Example

```
curl -s "https://orbitoads.pro/api/v1/campaigns?account_id=53&status=Active,On%20Hold&limit=100&cursor=" \
  -H "X-API-Key: $ORBITO_API_KEY"
```

| Parameter | Default | Meaning |
| --- | --- | --- |
| `account_id` | — | Only this cabinet. (`accountId` also works.) |
| `status` | all but Deleted | One status or several, comma-separated. |
| `title` | — | Title contains this text. |
| `bot_username` | — | Ads of one bot or channel: matches the username in `tme_path`, case-insensitive, no `@`. `foo` does not match `foobar`. |
| `promote_domain` | — | Website ads whose link is on this host. Accepts `example.com` or a full URL; `www.`, scheme, path and port are ignored. |
| `promote_domain_mode` | `exact` | `suffix` also matches subdomains (`x.example.com`). |
| `type` | — | `bot` (bots and mini-apps), `channel` (channels, groups, posts) or `site` (external websites). |
| `limit` | 100 | 1–500. |
| `cursor` | — | Pagination — see [Pagination](/docs/api/pagination/). Recommended. |
| `offset`, `sortBy`, `sortOrder` | — | Offset pagination (≤ 500 per cabinet). |


Filters combine with AND. An unknown bot or domain returns an empty list, not an error.


Example

```
{
  "success": true,
  "data": [
    { "ad_id": 90412, "account_id": 53, "title": "API test", "text": "…", "status": "Active",
      "tme_path": "yourchannel", "promote_url": null, "views": 1043, "opens": 0, "clicks": 12,
      "actions": 4, "spent": "1.45900", "budget": "3.54100", "cpm": "1.50", "cpc": "0.12",
      "cpa": "0.36", "ctr": "1.15", "cvr": "33.33", "date": "1791364800", "group_id": 7,
      "status_changed_at": "2026-10-08T10:31:07.112Z" }
  ],
  "meta": { "limit": 100, "cursor": null, "next_cursor": null, "hasMore": false }
}
```



## Get one campaign



`GET /v1/campaigns/{ad_id}` — the full object above, including targeting, creative fields and `schedule` (the list endpoint leaves those out to stay fast). Deleted campaigns are returned too, with `status: "Deleted"`.


Example

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


`account_id` is needed only when the same `ad_id` exists in several of your cabinets (`400 ACCOUNT_ID_REQUIRED` tells you).



### Freshness



Counters and status are refreshed for every campaign every hour. The ad’s own settings — `schedule`, `text`, `views_per_user`, targeting — come from reading the ad itself, so:



- `GET /v1/campaigns/{ad_id}` re-reads the ad from Telegram when our copy is older than **5 minutes** , before answering. A change someone made directly in Telegram’s ad interface shows up here within that window.
- Running campaigns (`Active`, `In Review`, `On Hold`) are also re-read in the background about every 3 hours.
- Changes made through Orbito Ads — the panel or this API — are in the copy at once.



If Telegram doesn’t answer in time, you get the stored copy; `synced_at` tells you how old it is.



## GET /v1/campaigns/{ad_id}/history



One campaign’s totals over a period — a single aggregate, not hourly points.


Example

```
curl -s "https://orbitoads.pro/api/v1/campaigns/90412/history?account_id=53&period=7d" -H "X-API-Key: $ORBITO_API_KEY"
```

Example

```
{ "success": true,
  "data": { "views": 640, "clicks": 7, "spent": 0.96, "ctr": 1.09, "cpm": 1.5, "cpa": 0.32 },
  "meta": { "adId": 90412, "accountId": 53, "period": "7d" } }
```


`period`: `24h` (default), `7d`, `30d` or `custom` with `startDate` / `endDate` (`YYYY-MM-DD`, UTC) and optional `startHour` / `endHour` (0–23). No data for the period → `404 NOT_FOUND`.



## Keeping a local copy in sync



1. Page through `GET /v1/campaigns?cursor=` and upsert by `(account_id, ad_id)`.
2. Subscribe to [webhooks](/docs/api/webhooks/) for status changes and hourly stats instead of polling every minute.
3. Re-sync fully once a day to catch anything a webhook missed.



## 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.

## GET `/api/v1/campaigns`

Read a filtered, paginated list of campaigns.

| Parameter | Location | Format | Required |
| --- | --- | --- | --- |
| `account_id` | query | `integer` | — |
| `status` | query | `string` | — |
| `title` | query | `string` | — |
| `bot_username` | query | `string` | — |
| `promote_domain` | query | `string` | — |
| `promote_domain_mode` | query | `string` | — |
| `type` | query | `string` | — |
| `limit` | query | `integer` | — |
| `cursor` | query | `string` | — |
| `offset` | query | `integer` | — |
| `sortBy` | query | `string` | — |
| `sortOrder` | query | `string` | — |
| `X-API-Key` | header | `string` | Yes |

cURL

```
curl -X GET 'https://orbitoads.pro/api/v1/campaigns?account_id=7401&status=Active%2COn+Hold&limit=25&cursor=' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
```

HTTP 200

```
{
  "success": true,
  "data": [
    {
      "ad_id": 38017,
      "account_id": 7401,
      "title": "Conversation club · November",
      "text": "See this month’s language club schedule.",
      "status": "Active",
      "tme_path": null,
      "promote_url": "https://school.example/club",
      "views": 3200,
      "opens": 0,
      "clicks": 32,
      "actions": 4,
      "spent": "4.00",
      "budget": "36.00",
      "cpm": "1.25",
      "cpc": "0.125",
      "cpa": "1.00",
      "ctr": "1.00",
      "cvr": "12.50",
      "date": "1793620800",
      "group_id": 516,
      "status_changed_at": "2026-11-03T12:00:00Z"
    }
  ],
  "meta": {
    "limit": 25,
    "cursor": null,
    "next_cursor": null,
    "hasMore": false
  }
}
```

## GET `/api/v1/campaigns/{ad_id}`

Retrieve one campaign with its targeting, creative fields and schedule.

| Parameter | Location | Format | Required |
| --- | --- | --- | --- |
| `ad_id` | path | `integer` | Yes |
| `account_id` | query | `integer` | — |
| `X-API-Key` | header | `string` | Yes |

cURL

```
curl -X GET 'https://orbitoads.pro/api/v1/campaigns/38017?account_id=7401' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
```

HTTP 200

```
{
  "success": true,
  "data": {
    "account_id": 7401,
    "ad_id": 38017,
    "title": "Conversation club · November",
    "text": "See this month’s language club schedule.",
    "status": "Active",
    "active": true,
    "promote_url": "https://school.example/club",
    "tme_path": null,
    "target_type": "users",
    "targets": [],
    "cpm": "1.25",
    "budget": "36.00",
    "spent": "4.00",
    "daily_budget": "8.00",
    "views": 3200,
    "opens": 0,
    "clicks": 32,
    "actions": 4,
    "ctr": "1.00",
    "cvr": "12.50",
    "cpc": "0.125",
    "cpa": "1.00",
    "views_per_user": 2,
    "schedule": null,
    "has_media": false,
    "media_type": null,
    "button": "learn_more",
    "website_name": "Example language school",
    "group_id": 516,
    "auto_cpm_enabled": false,
    "date": "1793620800",
    "synced_at": "2026-11-03T12:00:00Z",
    "status_changed_at": "2026-11-03T12:00:00Z"
  }
}
```

## GET `/api/v1/campaigns/{ad_id}/history`

Read the aggregate metrics for one campaign over a date or hour range.

| Parameter | Location | Format | Required |
| --- | --- | --- | --- |
| `ad_id` | path | `integer` | Yes |
| `account_id` | query | `integer` | — |
| `period` | query | `string` | — |
| `startDate` | query | `string` | — |
| `endDate` | query | `string` | — |
| `startHour` | query | `integer` | — |
| `endHour` | query | `integer` | — |
| `X-API-Key` | header | `string` | Yes |

cURL

```
curl -X GET 'https://orbitoads.pro/api/v1/campaigns/38017/history?account_id=7401&period=7d' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
```

HTTP 200

```
{
  "success": true,
  "data": {
    "views": 3200,
    "clicks": 32,
    "actions": 4,
    "spent": 4,
    "ctr": 1,
    "cpm": 1.25,
    "cpa": 1
  },
  "meta": {
    "adId": 38017,
    "accountId": 7401,
    "period": "7d"
  }
}
```



## Implementation notes

## 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.



## Filters and status

Filters combine with AND. status accepts several comma-separated values. Lists omit Deleted by default. The detail view can still return Deleted. active records the requested delivery state and status records the platform decision.



## Operations and fields

GET /api/v1/campaigns GET /api/v1/campaigns/{ad_id} GET /api/v1/campaigns/{ad_id}/history account_id ad_id



- GET /api/v1/campaigns
- GET /api/v1/campaigns/{ad_id}
- GET /api/v1/campaigns/{ad_id}/history
- account_id
- ad_id



## Request example

GET /api/v1/campaigns?account_id={account_id}&status=Active&limit=25&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/campaigns | account_id, status, title, bot_username, promote_domain, promote_domain_mode, type, limit, cursor, offset, sortBy, sortOrder | — | 200, 400, 401, 404, 429 |
| GET | /api/v1/campaigns/{ad_id} | ad_id, account_id | — | 200, 400, 401, 404, 429 |
| GET | /api/v1/campaigns/{ad_id}/history | ad_id, account_id, period, startDate, endDate, startHour, endHour | — | 200, 400, 401, 404 |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)

## Schema fields and limits · Looking up a campaign

| Field | Documented value |
| --- | --- |
| account_id + ad_id | integer + integer |
| promote_domain_mode | exact \| suffix |
| type | bot \| channel \| site |
| sortOrder | ASC \| DESC |
| status | Active \| In Review \| Declined \| On Hold \| Stopped \| Paused \| Deleted |


Source · [Data source](https://adsly.pro/docs/api/campaigns/)

## CampaignListItem

| Field | Field type |
| --- | --- |
| ad_id | integer |
| account_id | integer |
| title | string |
| text | string \| null |
| status | CampaignStatus |
| tme_path | string \| null |
| promote_url | string \| null |
| views | integer |
| opens | integer |
| clicks | integer |
| actions | integer |
| spent | Money |
| budget | Money |
| cpm | Money |
| cpc | Money |
| cpa | Money |
| ctr | string \| null |
| cvr | string \| null |
| date | string \| null |
| group_id | integer \| null |
| status_changed_at | string \| null · date-time |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)

## Campaign

| Field | Field type |
| --- | --- |
| ad_id | integer |
| account_id | integer |
| title | string |
| text | string \| null |
| status | CampaignStatus |
| active | boolean |
| promote_url | string \| null |
| tme_path | string \| null |
| target_type | channels \| bots \| search \| users \| |
| targets | array · [string] |
| cpm | Money |
| budget | Money |
| spent | Money |
| daily_budget | number \| string \| null |
| views | integer |
| opens | integer |
| clicks | integer |
| actions | integer |
| ctr | string \| null |
| cvr | string \| null |
| cpc | Money |
| cpa | Money |
| views_per_user | integer \| null |
| schedule | Schedule |
| has_media | boolean |
| media_type | image \| video \| |
| button | string \| null |
| website_name | string \| null |
| group_id | integer \| null |
| auto_cpm_enabled | boolean |
| date | string \| null |
| synced_at | string \| null · date-time |
| status_changed_at | string \| null · date-time |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)

## CampaignStatus

| Field | Field type |
| --- | --- |
| CampaignStatus | Active \| In Review \| Declined \| On Hold \| Stopped \| Paused \| Deleted |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)



## Related reading

[Accessible advertising accounts](/docs/api/accounts/)[Creating campaigns and media](/docs/api/create-campaigns/)[Changing existing campaigns](/docs/api/manage-campaigns/)[Campaign and account statistics](/docs/api/stats/)[Targeting dictionaries and groups](/docs/api/targeting/)



Reference revision 2026-10-08



[Previous topic**Accessible advertising accounts**](/docs/api/accounts/)[Next topic**Creating campaigns and media**](/docs/api/create-campaigns/)

## Sources and data

- [openapi.yaml](https://orbitoads.pro/docs/api/openapi.yaml)
- [openapi.json](https://orbitoads.pro/docs/api/openapi.json)
