Reference API
Doručení a analytika
Plán a skutečnost kampaní, přehrání po dnech, jednotlivá přehrání s ověřeným podpisem přehrávače a viditelností, analytické přehledy (výkon, zásah, analýza) a import měřeného publika.
Každý endpoint přijímá i hlavičku DOOHUB-Account (agentury: id klientského účtu).
/campaigns/{id}/deliveryDelivery of a campaign
Plan × delivery per booked screen (planned, played, verified, visible, interrupted, billed, cost) and plays per Prague day and screen. Default range: the campaign's dates.
Jakýkoli klíč
Parametry
| Název | Typ | Popis |
|---|---|---|
| idv cestě · povinný | string (uuid) | |
| fromv dotazu | string (date) | |
| tov dotazu | string (date) |
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).404Not found in this account.429More than 120 requests a minute; see Retry-After.
curl "https://admin.doohub.online/api/v1/campaigns/{id}/delivery" \
-H "Authorization: Bearer dh_…"{
"data": {
"campaign": {
"id": "string",
"name": "string",
"status": "string",
"starts_on": "string",
"ends_on": "string",
"currency": "string"
},
"from": "2026-11-02",
"to": "2026-11-02",
"totals": {
"planned_plays": 0,
"plays": 0,
"verified": 0,
"visible": 0,
"billed_plays": 0,
"cost_minor": 0
},
"screens": [
{}
],
"days": [
{
"date": "string",
"screen_id": "string",
"plays": 0,
"verified": 0,
"visible": 0
}
]
}
}/statsPlays per day
Of one campaign (on every screen), of one own screen (ads and own content), or of all the account's campaigns. At most 366 days at once.
Jakýkoli klíč
Parametry
| Název | Typ | Popis |
|---|---|---|
| fromv dotazu | string (date) | Default: 29 days before to. |
| tov dotazu | string (date) | Default: today. |
| campaign_idv dotazu | string (uuid) | |
| screen_idv dotazu | string (uuid) |
Chyby
400Invalid dates or filters.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/stats" \
-H "Authorization: Bearer dh_…"{
"data": [
{
"date": "2026-11-02",
"campaign_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
"content_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
"screen_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
"plays": 0,
"seconds": 0
}
],
"meta": {
"from": "string",
"to": "string",
"total_plays": 0
}
}/playback-eventsProof of play
Single plays of the account's campaigns or on its screens, in time order, with the device signature check (verified), visibility and player version. At most 31 days per request; page with cursor = meta.next_cursor (null on the last page).
Jakýkoli klíč
Parametry
| Název | Typ | Popis |
|---|---|---|
| fromv dotazu | string (date-time) | Default: 24 hours before to. |
| tov dotazu | string (date-time) | Default: now. |
| screen_idv dotazu | string (uuid) | |
| campaign_idv dotazu | string (uuid) | |
| limitv dotazu | integer | |
| cursorv dotazu | string |
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/playback-events" \
-H "Authorization: Bearer dh_…"{
"data": [
{
"id": "string",
"screen_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
"campaign_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
"content_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
"creative_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
"source": "campaign",
"started_at": "2026-11-02T09:30:00Z",
"duration_ms": 0,
"result": "completed",
"verified": false,
"visible": false,
"visibility": "string",
"player_version": "string",
"received_at": "2026-11-02T09:30:00Z"
}
],
"meta": {
"limit": 0,
"next_cursor": "string",
"from": "string",
"to": "string"
}
}/analyticsAnalytics reports
plays – plays per Prague day (as /stats); performance – campaigns: plan, delivery and cost per booking, screens: plays, verified, revenue; audience – verified plays, estimated impressions (model) and measured audience, never added up; insights – screens, campaign × screen, weekday × hour and days with reach and frequency. Audience and insights are part of the Business, Network, Pro and Agency plans (403 plan_required).
Jakýkoli klíč
Parametry
| Název | Typ | Popis |
|---|---|---|
| reportv dotazu | plays | performance | audience | insights | |
| sidev dotazu | campaigns | screens | |
| fromv dotazu | string (date) | |
| tov dotazu | string (date) | |
| campaign_idv dotazu | string (uuid) | |
| screen_idv dotazu | string (uuid) | Only for plays. |
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/analytics" \
-H "Authorization: Bearer dh_…"{
"data": null,
"meta": {
"report": "string",
"side": "string",
"from": "string",
"to": "string"
}
}/audience/measurementsImport measured audience
Write key (agencies need the client's screen manager role). People counted in a screen's viewing zone per hour, from a sensor or counting provider – aggregates only, never personal data. Up to 5 000 rows a request; the same screen, hour and source again replaces the count. Rows for screens of other accounts or older than 400 days are skipped. Part of audience analytics (Business, Network, Pro, Agency).
Klíč pro zápis
Tělo požadavku
| Pole | Typ | Popis |
|---|---|---|
| sourcepovinný | string | Name of the measurement (provider, sensor). |
| measurementspovinný | object[] |
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 campaign is no longer a draft or rejected (not_editable).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/audience/measurements" \
-H "Authorization: Bearer dh_…" \
-H "Content-Type: application/json" \
-d '{"source":"string","measurements":[{"screen_id":"3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47","hour":"2026-11-02T09:30:00Z","people":0,"dwell_seconds":1,"unique_people":0}]}'{
"source": "string",
"measurements": [
{
"screen_id": "3f2b8c1e-5d4a-4c7e-9b61-2a8e0f6d1c47",
"hour": "2026-11-02T09:30:00Z",
"people": 0,
"dwell_seconds": 1,
"unique_people": 0
}
]
}{
"data": {
"inserted": 0,
"updated": 0,
"skipped": 0
}
}