Trillboards Dashboard API
Dashboard overview and screen-level analytics
Dashboard overview and screen-level analytics
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/trillboards-com:trillboards-com-dashboard-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Trillboards Partner Dashboard API
version: 1.1.0
description: 'API for partner integrations with Trillboards digital advertising platform.
Use this API to integrate ads into your vending machines, kiosks, digital signage,
and other display devices. Partners receive competitive revenue share on all impressions.
## Authentication
Most endpoints require API key authentication using Bearer token:
```
Authorization: Bearer trb_partner_xxxxx
```
API keys are generated during partner registration and should be stored securely.
## Rate Limits
All endpoints return rate limit headers:
- `X-RateLimit-Limit`: Maximum requests allowed per window
- `X-RateLimit-Remaining`: Requests remaining in current window
- `X-RateLimit-Reset`: Unix timestamp when window resets
- `RateLimit-Policy`: IETF draft-7 format policy string
Rate limits by endpoint type:
| Endpoint Type | Limit | Window |
|--------------|-------|--------|
| Registration | 5 | 1 hour |
| Authenticated API | 1000 | 1 minute |
| Ad serving | 100 | 1 minute |
| Impressions | 500 | 1 minute |
| Programmatic events | 300 | 1 minute |
| Batch impressions | 100 | 1 minute |
| Heartbeat | 60 | 1 minute |
| Venue intelligence | 100 | 1 minute |
| Audience intelligence | 100 | 1 minute |
| Bulk device operations | 20 | 1 minute |
Exceeding rate limits returns HTTP 429 with a `Retry-After` header.
## Quick Start
**Option A: New Partner Registration**
1. Register as a partner via `POST /register` (returns API key)
2. Register your devices
3. Load the `embed_url` in your device''s WebView or use `/device/{id}/ads` in custom UI
4. Impressions are tracked automatically
**Option B: Existing Earner Upgrade**
If you already have a Trillboards earner account:
1. Call `POST https://api.trillboards.com/v2/earner/upgrade-to-partner` with your user JWT
2. Receive your Partner API key (one-time display - save it!)
3. Your existing screens remain visible alongside new API-registered screens
## SDK
Install the official TypeScript SDK for type-safe integration:
```
npm install @trillboards/ads-sdk
```
The SDK provides 4 entry points:
- `@trillboards/ads-sdk` — Core browser SDK with ad player, events, and caching
- `@trillboards/ads-sdk/react` — React hooks and components (TrillboardsProvider, TrillboardsAdSlot)
- `@trillboards/ads-sdk/react-native` — React Native WebView wrapper
- `@trillboards/ads-sdk/server` — Node.js PartnerClient with audience, analytics, auctions, creatives
Full documentation: https://trillboards.com/developers/partner-sdk'
contact:
name: Trillboards Developer Support
email: developers@trillboards.com
url: https://trillboards.com/developers
license:
name: Proprietary
url: https://trillboards.com/terms-of-service
servers:
- url: https://api.trillboards.com/v1/partner
description: Production API
- url: http://localhost:4004/v1/partner
description: Local development
tags:
- name: Dashboard
description: Dashboard overview and screen-level analytics
paths:
/dashboard:
get:
tags:
- Dashboard
summary: Get dashboard overview
description: 'Get comprehensive dashboard overview including partner info, screen stats,
earnings summary, top performing screens, and recent activity.'
operationId: getDashboard
security:
- BearerAuth: []
responses:
'200':
description: Dashboard data retrieved
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
$ref: '#/components/schemas/DashboardResponse'
example:
success: true
data:
partner:
name: Acme Vending Co
slug: acmevending
status: active
created_at: '2025-12-01T00:00:00.000Z'
stats:
total_screens: 3500
active_screens: 3420
offline_screens: 80
pending_screens: 0
total_impressions_today: 125000
total_impressions_week: 875000
total_impressions_month: 3500000
earnings:
total_earned_cents: 4500000
pending_payout_cents: 125000
available_payout_cents: 350000
next_payout_date: '2026-02-01'
revenue_share_percent: 80
top_screens:
- screen_id: 507f1f77bcf86cd799439011
name: Mall of America - Floor 2
location: Bloomington, MN
impressions_today: 1250
recent_activity:
- type: impression
screen_id: 507f1f77bcf86cd799439011
ad_id: ad_123
timestamp: '2026-01-26T12:30:00.000Z'
stripe_status:
account_status: active
connect_account_id: '***'
'401':
$ref: '#/components/responses/Unauthorized'
/screens/{screenId}/analytics:
get:
tags:
- Dashboard
summary: Get per-screen analytics
description: 'Get detailed analytics for a specific screen including impression trends,
daily timeline, and performance metrics over a configurable period.'
operationId: getScreenAnalytics
security:
- BearerAuth: []
parameters:
- name: screenId
in: path
required: true
description: Screen ID
schema:
type: string
- name: period
in: query
description: Time period for analytics
schema:
type: string
enum:
- 7d
- 30d
- 90d
default: 7d
responses:
'200':
description: Screen analytics retrieved
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
$ref: '#/components/schemas/ScreenAnalyticsResponse'
example:
success: true
data:
screen:
id: 507f1f77bcf86cd799439011
name: Mall of America - Floor 2
location: Bloomington, MN
status: active
online_status: online
impressions:
total: 8750
daily_average: 1250
trend_percent: 12
timeline:
- date: '2026-01-20'
impressions: 1100
avg_duration_ms: 15200
- date: '2026-01-21'
impressions: 1300
avg_duration_ms: 14800
period:
days: 7
start: '2026-01-19T00:00:00.000Z'
end: '2026-01-26T23:59:59.999Z'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
description: Screen does not belong to this partner
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
$ref: '#/components/responses/NotFound'
components:
schemas:
DashboardResponse:
type: object
properties:
partner:
type: object
properties:
name:
type: string
slug:
type: string
status:
type: string
enum:
- pending
- active
- suspended
- terminated
created_at:
type: string
format: date-time
stats:
type: object
properties:
total_screens:
type: integer
active_screens:
type: integer
offline_screens:
type: integer
pending_screens:
type: integer
total_impressions_today:
type: integer
total_impressions_week:
type: integer
total_impressions_month:
type: integer
earnings:
type: object
properties:
total_earned_cents:
type: integer
pending_payout_cents:
type: integer
available_payout_cents:
type: integer
next_payout_date:
type: string
format: date
revenue_share_percent:
type: number
top_screens:
type: array
items:
type: object
properties:
screen_id:
type: string
name:
type: string
location:
type: string
impressions_today:
type: integer
recent_activity:
type: array
items:
type: object
properties:
type:
type: string
screen_id:
type: string
ad_id:
type: string
timestamp:
type: string
format: date-time
stripe_status:
type: object
properties:
account_status:
type: string
connect_account_id:
type: string
Error:
type: object
properties:
success:
type: boolean
example: false
message:
type: string
error:
type: string
ScreenAnalyticsResponse:
type: object
properties:
screen:
type: object
properties:
id:
type: string
name:
type: string
location:
type: string
status:
type: string
online_status:
type: string
impressions:
type: object
properties:
total:
type: integer
daily_average:
type: integer
trend_percent:
type: integer
description: Percentage change compared to previous period
timeline:
type: array
items:
type: object
properties:
date:
type: string
format: date
impressions:
type: integer
avg_duration_ms:
type: integer
period:
type: object
properties:
days:
type: integer
start:
type: string
format: date-time
end:
type: string
format: date-time
responses:
Unauthorized:
description: Unauthorized - Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
success: false
message: API key required
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
success: false
message: Device not found
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: 'API key authentication. Include your API key as a Bearer token:
```
Authorization: Bearer trb_partner_xxxxx
```
'
UserJWT:
type: http
scheme: bearer
description: 'User JWT authentication for earner-to-partner upgrade.
Used only for the `/v2/earner/upgrade-to-partner` endpoint.
This is the same JWT token used for the Earner Portal.
'