Obsah dokumentace

Reference API

Nabídka a rezervace

Plochy otevřené k rezervaci, volný vysílací čas po dnech a rezervace z obou stran – inzerent vidí své, majitel plochy žádosti o své plochy a s klíčem pro zápis o nich rozhoduje.

Každý endpoint přijímá i hlavičku DOOHUB-Account (agentury: id klientského účtu).

get/marketplace/screens

Screens open for booking

Jakýkoli klíč

Parametry

NázevTypPopis
cityv dotazustring
environmentv dotazuoutdoor | indoor | window
limitv dotazuinteger
offsetv dotazuinteger

Chyby

  • 401Missing, invalid or revoked API key.
  • 403The account's plan doesn't include the API (Business, Network, Pro or Agency), DOOHUB-Account is not a client of the agency (client_forbidden), or the endpoint needs DOOHUB Network (module_required).
  • 429More than 120 requests a minute; see Retry-After.
Požadavek
curl "https://admin.doohub.online/api/v1/marketplace/screens" \
  -H "Authorization: Bearer dh_…"
Odpověď 200
{
  "data": [
    {
      "id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "name": "string",
      "status": "string",
      "environment": "outdoor",
      "venue_type": "string",
      "address": "string",
      "city": "string",
      "location": {
        "lat": 0,
        "lng": 0
      },
      "timezone": "string",
      "resolution": {
        "width": 0,
        "height": 0
      },
      "orientation": "string",
      "max_spot_seconds": 0,
      "audience_per_day": 0,
      "price": {
        "currency": "string",
        "cpm_minor": 0,
        "slot_day_minor": 0
      },
      "tags": [
        "string"
      ],
      "created_at": "2026-11-02T09:30:00Z",
      "rating": 0,
      "reviews": 0
    }
  ],
  "meta": {
    "total": 0,
    "limit": 0,
    "offset": 0
  }
}
get/inventory

Screens open for booking, with free capacity

As /marketplace/screens; with from and to (at most 31 days) each screen gets availability per day: seconds on air and the share of the loop already booked (approved and pending bookings) and free.

Jakýkoli klíč

Parametry

NázevTypPopis
cityv dotazustring
environmentv dotazuoutdoor | indoor | window
fromv dotazustring (date)
tov dotazustring (date)
limitv dotazuinteger
offsetv dotazuinteger

Chyby

  • 401Missing, invalid or revoked API key.
  • 403The account's plan doesn't include the API (Business, Network, Pro or Agency), DOOHUB-Account is not a client of the agency (client_forbidden), or the endpoint needs DOOHUB Network (module_required).
  • 429More than 120 requests a minute; see Retry-After.
Požadavek
curl "https://admin.doohub.online/api/v1/inventory" \
  -H "Authorization: Bearer dh_…"
Odpověď 200
{
  "data": [
    {
      "id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "name": "string",
      "status": "string",
      "environment": "outdoor",
      "venue_type": "string",
      "address": "string",
      "city": "string",
      "location": {
        "lat": 0,
        "lng": 0
      },
      "timezone": "string",
      "resolution": {
        "width": 0,
        "height": 0
      },
      "orientation": "string",
      "max_spot_seconds": 0,
      "audience_per_day": 0,
      "price": {
        "currency": "string",
        "cpm_minor": 0,
        "slot_day_minor": 0
      },
      "tags": [
        "string"
      ],
      "created_at": "2026-11-02T09:30:00Z",
      "rating": 0,
      "reviews": 0,
      "availability": [
        {
          "date": "2026-11-02",
          "on_air_seconds": 0,
          "booked_share": 0,
          "free_share": 0
        }
      ]
    }
  ],
  "meta": {
    "total": 0,
    "limit": 0,
    "offset": 0
  }
}
get/reservations

Bookings of the account

Bookings of the account's campaigns (side: advertiser) and on its screens (side: owner), newest first. Drafts aren't bookings yet. Prices in the campaign's currency for the advertiser, in the screen's for the owner.

Jakýkoli klíč

Parametry

NázevTypPopis
sidev dotazuadvertiser | owner
statusv dotazupending | approved | rejected | expired
campaign_idv dotazustring (uuid)
screen_idv dotazustring (uuid)
limitv dotazuinteger
offsetv dotazuinteger

Chyby

  • 401Missing, invalid or revoked API key.
  • 403The account's plan doesn't include the API (Business, Network, Pro or Agency), DOOHUB-Account is not a client of the agency (client_forbidden), or the endpoint needs DOOHUB Network (module_required).
  • 429More than 120 requests a minute; see Retry-After.
Požadavek
curl "https://admin.doohub.online/api/v1/reservations" \
  -H "Authorization: Bearer dh_…"
Odpověď 200
{
  "data": [
    {
      "campaign_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "screen_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
      "side": "advertiser",
      "campaign": {
        "name": "string",
        "status": "string",
        "starts_on": "string",
        "ends_on": "string"
      },
      "screen": {
        "name": "string"
      },
      "pricing_model": "cpm",
      "plays": 0,
      "slots": 0,
      "max_plays_per_day": 0,
      "price": {
        "currency": "CZK",
        "amount_minor": 0
      },
      "status": "pending",
      "decide_by": "2026-11-02T09:30:00Z",
      "decided_at": "2026-11-02T09:30:00Z",
      "reason": "string",
      "created_at": "2026-11-02T09:30:00Z"
    }
  ],
  "meta": {
    "total": 0,
    "limit": 0,
    "offset": 0
  }
}
post/reservations/{campaignId}/{screenId}/decision

Approve or decline a booking on your screen

Write key (agencies need the client's screen manager role). Only a pending booking of an approved campaign before its deadline; declining needs a reason.

Klíč pro zápis

Parametry

NázevTypPopis
campaignIdv cestě · povinnýstring (uuid)
screenIdv cestě · povinnýstring (uuid)

Tělo požadavku

PoleTypPopis
approvepovinnýboolean
reasonstringRequired when declining.

Chyby

  • 401Missing, invalid or revoked API key.
  • 403The plan doesn't include the API, the key can only read (write_required) or the client's role doesn't allow it (client_role).
  • 404Not found in this account.
  • 409The booking isn't waiting for a decision (not_pending).
  • 422Invalid input or a rule of the platform (code and message say which).
  • 429More than 120 requests a minute; see Retry-After.
Požadavek
curl -X POST "https://admin.doohub.online/api/v1/reservations/{campaignId}/{screenId}/decision" \
  -H "Authorization: Bearer dh_…" \
  -H "Content-Type: application/json" \
  -d '{"approve":false,"reason":"string"}'
Příklad těla
{
  "approve": false,
  "reason": "string"
}
Odpověď 200
{
  "data": {
    "campaign_id": "string",
    "screen_id": "string",
    "status": "approved"
  }
}

Cookies jsou malé soubory, které si web ukládá ve vašem prohlížeči. Nezbytné nelze vypnout, ostatní kategorie povolujete vy.

Nezbytné

Vždy zapnuté

Přihlášení, volba účtu a jazyka, uložení vaší volby cookies a ochrana plateb. Bez nich web nefunguje.

sb-…-auth-token, doohub_account, NEXT_LOCALE, doohub_consent, doohub_ref, doohub_sidebar, doohub_menu, doohub_theme, doohub_support_return, doohub_mfa_later, doohub_signed_in, __stripe_mid, __stripe_sid

Žádné analytické ani marketingové cookies nepoužíváme, proto se vás na souhlas neptáme. Kdybychom je zavedli, zeptáme se předem.