Trillboards Connect Dashboard API
SDK partner dashboard API for earnings, screen health, and analytics. Provides pre-aggregated data optimized for embedding in partner dashboards.
SDK partner dashboard API for earnings, screen health, and analytics. Provides pre-aggregated data optimized for embedding in partner dashboards.
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-connect-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 Connect 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: Connect Dashboard
description: 'SDK partner dashboard API for earnings, screen health, and analytics.
Provides pre-aggregated data optimized for embedding in partner dashboards.'
paths:
/connect/dashboard:
get:
tags:
- Connect Dashboard
summary: Get partner dashboard overview
description: 'Returns a comprehensive dashboard with screen counts, impression stats,
earnings data, daily charts, and top-performing screens.
Optimized for embedding in partner SDK dashboards.'
operationId: getConnectDashboard
security:
- BearerAuth: []
parameters:
- name: period
in: query
schema:
type: string
enum:
- 7d
- 30d
- 90d
default: 30d
description: Time period for analytics data
responses:
'200':
description: Dashboard data
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
properties:
partner:
type: object
properties:
name:
type: string
slug:
type: string
status:
type: string
stripe_status:
type: string
enum:
- pending
- active
- restricted
- not_connected
revenue_share_percent:
type: number
cpm_cents:
type: number
screens:
type: object
properties:
total:
type: integer
online:
type: integer
offline:
type: integer
pending:
type: integer
impressions:
type: object
properties:
today:
type: integer
period:
type: integer
all_time:
type: integer
daily_average:
type: number
trend_percent:
type: number
earnings:
type: object
properties:
today_cents:
type: integer
period_cents:
type: integer
lifetime_cents:
type: integer
pending_payout_cents:
type: integer
available_cents:
type: integer
daily_average_cents:
type: integer
charts:
type: object
properties:
daily_impressions:
type: array
items:
type: object
properties:
date:
type: string
format: date
impressions:
type: integer
earnings_cents:
type: integer
hourly_today:
type: array
items:
type: object
properties:
hour:
type: integer
minimum: 0
maximum: 23
impressions:
type: integer
top_screens:
type: array
items:
type: object
properties:
screen_id:
type: string
name:
type: string
location:
type:
- string
- 'null'
status:
type: string
enum:
- online
- offline
- unknown
impressions:
type: integer
earnings_cents:
type: integer
period:
type: object
properties:
days:
type: integer
start:
type: string
format: date-time
end:
type: string
format: date-time
'401':
$ref: '#/components/responses/Unauthorized'
/connect/earnings:
get:
tags:
- Connect Dashboard
summary: Get earnings chart data
description: Returns daily or weekly earnings breakdown for charting.
operationId: getConnectEarningsChart
security:
- BearerAuth: []
parameters:
- name: period
in: query
schema:
type: string
enum:
- 7d
- 30d
- 90d
default: 30d
- name: group_by
in: query
schema:
type: string
enum:
- day
- week
default: day
responses:
'200':
description: Earnings chart data
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
properties:
summary:
type: object
properties:
total_impressions:
type: integer
total_earnings_cents:
type: integer
data_points:
type: integer
group_by:
type: string
chart:
type: array
items:
type: object
properties:
label:
type: string
date:
type: string
impressions:
type: integer
earnings_cents:
type: integer
unique_screens:
type: integer
avg_view_duration_ms:
type: number
period:
type: object
properties:
days:
type: integer
start:
type: string
format: date-time
end:
type: string
format: date-time
'401':
$ref: '#/components/responses/Unauthorized'
/connect/health:
get:
tags:
- Connect Dashboard
summary: Get screen health status
description: 'Returns the online/offline status of all partner devices with heartbeat
timestamps, uptime percentages, and location data.'
operationId: getConnectScreenHealth
security:
- BearerAuth: []
parameters:
- name: status
in: query
schema:
type: string
enum:
- online
- offline
- all
default: all
description: Filter by screen status
responses:
'200':
description: Screen health data
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
properties:
summary:
type: object
properties:
total:
type: integer
online:
type: integer
offline:
type: integer
never_connected:
type: integer
screens:
type: array
items:
type: object
properties:
device_id:
type: string
external_device_id:
type: string
fingerprint:
type: string
screen_id:
type:
- string
- 'null'
name:
type: string
status:
type: string
enum:
- online
- offline
- never_connected
- unknown
screen_status:
type: string
enum:
- pending
- active
- inactive
last_heartbeat:
type:
- string
- 'null'
format: date-time
last_seen:
type:
- string
- 'null'
format: date-time
time_since_last_seen_seconds:
type:
- number
- 'null'
uptime_24h_percent:
type:
- number
- 'null'
location:
type: object
properties:
city:
type:
- string
- 'null'
state:
type:
- string
- 'null'
lat:
type:
- number
- 'null'
lng:
type:
- number
- 'null'
venue_type:
type:
- string
- 'null'
registered_at:
type: string
format: date-time
filter:
type: string
checked_at:
type: string
format: date-time
'401':
$ref: '#/components/responses/Unauthorized'
components:
schemas:
Error:
type: object
properties:
success:
type: boolean
example: false
message:
type: string
error:
type: string
responses:
Unauthorized:
description: Unauthorized - Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
success: false
message: API key required
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.
'