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).
Parametry
| Název | Typ | Popis |
|---|---|---|
| cityv dotazu | string | |
| environmentv dotazu | outdoor | indoor | window | |
| limitv dotazu | integer | |
| offsetv dotazu | integer |
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.
curl "https://admin.doohub.online/api/v1/marketplace/screens" \
-H "Authorization: Bearer dh_…"{
"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
}
}/inventoryScreens 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ázev | Typ | Popis |
|---|---|---|
| cityv dotazu | string | |
| environmentv dotazu | outdoor | indoor | window | |
| fromv dotazu | string (date) | |
| tov dotazu | string (date) | |
| limitv dotazu | integer | |
| offsetv dotazu | integer |
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.
curl "https://admin.doohub.online/api/v1/inventory" \
-H "Authorization: Bearer dh_…"{
"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
}
}/reservationsBookings 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ázev | Typ | Popis |
|---|---|---|
| sidev dotazu | advertiser | owner | |
| statusv dotazu | pending | approved | rejected | expired | |
| campaign_idv dotazu | string (uuid) | |
| screen_idv dotazu | string (uuid) | |
| limitv dotazu | integer | |
| offsetv dotazu | integer |
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.
curl "https://admin.doohub.online/api/v1/reservations" \
-H "Authorization: Bearer dh_…"{
"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
}
}/reservations/{campaignId}/{screenId}/decisionApprove 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ázev | Typ | Popis |
|---|---|---|
| campaignIdv cestě · povinný | string (uuid) | |
| screenIdv cestě · povinný | string (uuid) |
Tělo požadavku
| Pole | Typ | Popis |
|---|---|---|
| approvepovinný | boolean | |
| reason | string | Required 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.
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"}'{
"approve": false,
"reason": "string"
}{
"data": {
"campaign_id": "string",
"screen_id": "string",
"status": "approved"
}
}