Conversions (postbacks in)
Send a conversion from your server or tracker with a campaign reference or invite link, event type and unique transaction ID. Optional revenue and currency let the reporting layer associate outcomes with spend.
Telegram counts views, clicks and joins. Your backend or tracker knows what happened next — a lead, a deposit, a sale. Send those events to Orbito Ads and each campaign shows its conversions and revenue in the panel, in reports and in automation rules.
Turn it on
On the key’s card in the panel, switch on Receive postbacks. Without it, sending returns 403 INGEST_DISABLED. For a tracker, also press Generate tracker URL — you get a write-only URL (shown once) that can post conversions but can’t read anything.
How a conversion finds its campaign
Each ad links somewhere with an identifier you control:
- a bot or mini-app:
t.me/yourbot?start=REFor?startapp=REF - a website: your tracker’s click id or sub id in the link, e.g.
https://site.com/?subid=REF
When you send a conversion, include that REF as ref. Orbito Ads finds the campaign whose link carries it, in the cabinets the key reaches. If several campaigns of one cabinet share the same ref, the conversion counts for each of them.
From your backend: POST /v1/postback
curl -s -X POST https://orbitoads.pro/api/v1/postback \
-H "X-API-Key: $ORBITO_API_KEY" -H "Content-Type: application/json" \
-d '{ "ref": "promo_oct", "event": "purchase", "amount": 49.90, "currency": "USD", "txid": "order-10087" }'{ "success": true, "data": { "id": 551203, "ad_id": 90412, "account_id": 53, "event_type": "purchase", "deduped": false } }Up to 1,000 events at once: { "events": [ {…}, {…} ] } (or a bare array). The response reports each one — { "accepted": 998, "failed": 2, "results": [ … ] } — so one bad event never sinks the batch.
From a tracker: GET /v1/ingest/{token}
Paste the tracker URL into your tracker’s postback settings, with its macros:
# Keitaro
https://orbitoads.pro/api/v1/ingest/<token>?ref={subid}&event={status}&amount={payout}¤cy={currency}&txid={subid}_{status}
# RedTrack
https://orbitoads.pro/api/v1/ingest/<token>?ref={clickid}&event={type}&status={status}&amount={sum}&txid={rdtk_event_id}
# Binom
https://orbitoads.pro/api/v1/ingest/<token>?ref={clickid}&event={status}&amount={payout}&txid={clickid}
# Voluum
https://orbitoads.pro/api/v1/ingest/<token>?ref={clickid}&event={et}&amount={payout}¤cy={currency}&txid={txid}Check the macro names against your tracker’s own documentation. The answer is plain text: OK, OK (deduped), or an error message with its HTTP status (4xx — don’t retry, 5xx — retry).
Fields
| Field | Also accepted as | Required | Meaning |
|---|---|---|---|
ref | subid, sub_id, clickid, click_id, cnv_id, cid | yes¹ | The identifier from the ad’s link. Up to 512 characters. |
invite_link | invitelink, link | yes¹ | For channel ads: the unique invite link Orbito Ads created. |
event | event_type, type, goal, cnv_status | yes | Becomes lead, conversion or purchase (words like signup, ftd, deposit, sale are understood). Unknown words are refused. |
txid | tid, transaction_id, order_id, rdtk_event_id, header X-Idempotency-Key | yes | Your id for this event. Sending the same txid again updates the event instead of counting it twice. Up to 128 characters. |
amount | payout, sum, revenue, value | no | Number; negative for chargebacks. |
currency | cur, cnv_currency | no | ISO 4217 code. Without one, an amount is recorded as USD. |
status | — | no | Your network’s own status word (approved, pending…), stored as is. |
event_time | timestamp, date | no | ISO or unix time; kept within the last 90 days. |
account_id | accountId | sometimes | Needed when the same ref exists in several of your cabinets (409 otherwise). |
meta | — | no | Your own JSON object, up to 4 KB. |
¹ ref or invite_link.
Limits and retries
20 events per second per key, with bursts up to 1,000 — separate from the read and write budgets. On 429 wait Retry-After; retrying is always safe because txid deduplicates.
GET /v1/conversions
Totals per campaign, counted once per event:
curl -s "https://orbitoads.pro/api/v1/conversions?days=30" -H "X-API-Key: $ORBITO_API_KEY"{
"success": true,
"data": [
{ "account_id": 53, "ad_id": 90412, "leads": 12, "conversions": 3, "purchases": 1, "revenue": { "USD": 49.9 } }
]
}| Parameter | Meaning |
|---|---|
adId | One campaign. |
days | Only events received in the last 1–365 days. |
revenueis per currency — amounts are never converted.ad_idisnullfor events matched by arefthat several campaigns share.- Amounts you send are your own reporting. They are not billed and don’t change anything you pay Orbito Ads.
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.
POST /api/v1/postback
Submit one conversion or a batch of up to 1,000 events.
| Parameter | Location | Format | Required |
|---|---|---|---|
X-API-Key | header | string | Yes |
curl -X POST https://orbitoads.pro/api/v1/postback \
-H 'X-API-Key: YOUR_ORBITO_KEY' \
-H 'Content-Type: application/json' \
--data '{
"ref": "club-november",
"event": "purchase",
"txid": "example-order-2048",
"amount": 18,
"currency": "EUR",
"account_id": 7401
}'{
"success": true,
"data": {
"id": 61176,
"ad_id": 38017,
"account_id": 7401,
"event_type": "purchase",
"deduped": false
}
}Request body schema
{
"oneOf": [
{
"properties": {
"account_id": {
"type": "integer"
},
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"event": {
"type": "string"
},
"event_time": {
"type": [
"string",
"integer"
]
},
"invite_link": {
"type": "string"
},
"meta": {
"type": "object"
},
"ref": {
"maxLength": 512,
"type": "string"
},
"status": {
"maxLength": 64,
"type": "string"
},
"txid": {
"maxLength": 128,
"type": "string"
}
},
"required": [
"event",
"txid"
],
"type": "object"
},
{
"properties": {
"events": {
"items": {
"properties": {
"account_id": {
"type": "integer"
},
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"event": {
"type": "string"
},
"event_time": {
"type": [
"string",
"integer"
]
},
"invite_link": {
"type": "string"
},
"meta": {
"type": "object"
},
"ref": {
"maxLength": 512,
"type": "string"
},
"status": {
"maxLength": 64,
"type": "string"
},
"txid": {
"maxLength": 128,
"type": "string"
}
},
"required": [
"event",
"txid"
],
"type": "object"
},
"maxItems": 1000,
"type": "array"
}
},
"required": [
"events"
],
"type": "object"
},
{
"items": {
"properties": {
"account_id": {
"type": "integer"
},
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"event": {
"type": "string"
},
"event_time": {
"type": [
"string",
"integer"
]
},
"invite_link": {
"type": "string"
},
"meta": {
"type": "object"
},
"ref": {
"maxLength": 512,
"type": "string"
},
"status": {
"maxLength": 64,
"type": "string"
},
"txid": {
"maxLength": 128,
"type": "string"
}
},
"required": [
"event",
"txid"
],
"type": "object"
},
"maxItems": 1000,
"type": "array"
}
]
}GET /api/v1/ingest/{token}
Send a tracker conversion through a write-only URL.
| Parameter | Location | Format | Required |
|---|---|---|---|
token | path | string | Yes |
ref | query | string | — |
event | query | string | — |
txid | query | string | — |
amount | query | string | — |
currency | query | string | — |
curl -X GET 'https://orbitoads.pro/api/v1/ingest/YOUR_ORBITO_TRACKER_TOKEN?ref=club-november&event=purchase&txid=example-order-2048&amount=18¤cy=EUR'"OK"GET /api/v1/conversions
List conversion counts and revenue grouped by the original currency.
| Parameter | Location | Format | Required |
|---|---|---|---|
adId | query | integer | — |
days | query | integer | — |
X-API-Key | header | string | Yes |
curl -X GET 'https://orbitoads.pro/api/v1/conversions?adId=38017&days=7' \
-H 'X-API-Key: YOUR_ORBITO_KEY'{
"success": true,
"data": [
{
"account_id": 7401,
"ad_id": 38017,
"leads": 2,
"conversions": 1,
"purchases": 1,
"revenue": {
"EUR": 18
}
}
]
}Implementation notes
Link an event to an ad
Enable Receive postbacks on the provider key. Send ref or invite_link, an event and a stable txid. The canonical events are lead, conversion and purchase. When a ref resolves across accounts, include account_id.
| API | Meaning |
|---|---|
| account_id / accountId | accountId is accepted as an alias for account_id. Supply the account when the same ref occurs in multiple accounts. An ambiguous match returns HTTP 409. |
Deduplication and currency
Repeating txid updates its event. A batch can contain successes and failures. Include ISO currency for revenue, otherwise USD is assumed. Negative amounts represent chargebacks. The tracker URL is write-only and returns plain text OK or OK (deduped).
Operations and fields
POST /api/v1/postback GET /api/v1/ingest/{token} GET /api/v1/conversions ref invite_link event txid amount currency
- POST /api/v1/postback
- GET /api/v1/ingest/{token}
- GET /api/v1/conversions
- ref
- invite_link
- event
- txid
- amount
- currency
Request example
GET /api/v1/conversions?days=7 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 |
|---|---|---|---|---|
| POST | /api/v1/postback | — | application/json · ConversionEvent | object | array · [ConversionEvent] · 0 … 1000 | 202, 400, 401, 403, 404, 409, 429 |
| GET | /api/v1/ingest/{token} | token, ref, event, txid, amount, currency | — | 200, 400, 401, 403, 404, 429 |
| GET | /api/v1/conversions | adId, days | — | 200, 401 |
Source · Data source
Schema fields and limits · Sending confirmed conversions
| Field | Documented value |
|---|---|
| ref | invite_link | string |
| event | lead | conversion | purchase |
| txid | string |
| amount | number |
| currency | ISO 4217 |
| GET conversions · days | 1 … 365 |
Source · Data source
ConversionEvent
| Field | Field type |
|---|---|
| ref | string |
| invite_link | string |
| event | string |
| txid | string |
| amount | number |
| currency | string |
| status | string |
| event_time | string | integer |
| account_id | integer |
| meta | object |
Source · Data source
ConversionsRow
| Field | Field type |
|---|---|
| account_id | integer |
| ad_id | integer | null |
| leads | integer |
| conversions | integer |
| purchases | integer |
| revenue | object |
Source · Data source
Reference revision