TAŇBA-OOH Developers

List the delivery campaigns of the organisation

GET /api/v1/delivery/campaigns

https://app.tanba-ooh.kz/api/v1/delivery/campaigns

Scope read:delivery. A campaign is a named set of approvals, with an optional reference of your own (an order number), that a certificate can cover as one document.

Authentication

API key in the Authorization header, or a console session.

Scope: read:delivery

Responses

200 The campaigns, newest first.

application/json

NameTypeRequiredDescriptionExample
itemsarray of DeliveryCampaignyesThe campaigns of the organisation.
items[].idstring (uuid)yesId of the campaign."7a1f0c2e-5b6d-4e8f-9a0b-1c2d3e4f5a6b"
items[].namestringyesName of the campaign, unique within the organisation."Autumn campaign"
items[].external_refstringyesThe organisation's own reference, such as an order number; may be empty."PO-2026-17"
items[].period_fromstring (date)yesFirst day of the campaign."2026-10-01"
items[].period_tostring (date)yesLast day of the campaign."2026-10-31"
items[].approvalsarray of stringyesNumbers of the approvals of the campaign.
items[].created_atstringyesWhen the campaign was created, Almaty time."2026-10-01T09:00:00+05:00"
items[].updated_atstringyesWhen the campaign was last changed, Almaty time."2026-10-02T10:00:00+05:00"

Example

{
  "items": [
    {
      "id": "7a1f0c2e-5b6d-4e8f-9a0b-1c2d3e4f5a6b",
      "name": "Autumn campaign",
      "external_ref": "PO-2026-17",
      "period_from": "2026-10-01",
      "period_to": "2026-10-31",
      "approvals": [
        "TNB-2026-000123"
      ],
      "created_at": "2026-10-01T09:00:00+05:00",
      "updated_at": "2026-10-02T10:00:00+05:00"
    }
  ]
}

Errors

Errors are problem documents (application/problem+json) with a stable code.

StatusMeaning
401No valid session or API key (unauthenticated, session_expired, invalid_api_key).
403The role or the key's scope does not allow this (forbidden, key_scope_denied, key_route_denied).
defaultAn error as a problem document.

Code samples

curl

curl 'https://app.tanba-ooh.kz/api/v1/delivery/campaigns' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Python
import requests

response = requests.get(
    "https://app.tanba-ooh.kz/api/v1/delivery/campaigns",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
    },
)
print(response.status_code, response.text)
Go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, err := http.NewRequest("GET", "https://app.tanba-ooh.kz/api/v1/delivery/campaigns", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()
	data, _ := io.ReadAll(resp.Body)
	fmt.Println(resp.Status, string(data))
}